wol-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define For_Vine 1
  2. %define sversion 0.1
  3. %define srelease 4
  4. %define _bindir /usr/bin/
  5. Summary: Wakeup on LAN client
  6. Summary(ja): Wakeup on LAN クライアント
  7. Name: wol
  8. Version: %{sversion}
  9. Source0: wol-%{sversion}.tar.gz
  10. License: distributable
  11. Group: Applications/System
  12. URL: http://www.gcd.org/sengoku/freesoft.ja.html
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. %if %{For_Vine}
  15. Release: %{srelease}%{?_dist_release}
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %else
  19. Release: %{srelease}
  20. %endif
  21. %description
  22. Wakeup on LAN client program.
  23. Usage: wol <IP address> <MAC address>
  24. Wakeup a machine whose interface is <MAC address>.
  25. The wakeup packet is sent to <IP address>,
  26. so mostly <IP address> is a broadcast address.
  27. Example: wol 192.168.1.255 12:xx:56:76:9a:xx
  28. %prep
  29. %setup -c
  30. %build
  31. cc ${RPM_OPT_FLAGS} -o wol wol.c
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. install -d $RPM_BUILD_ROOT%{_bindir}
  35. install wol $RPM_BUILD_ROOT%{_bindir}
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root)
  40. %{_bindir}/wol
  41. %changelog
  42. * Sun Oct 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-4
  43. - applied new versioning policy
  44. - spec in UTF-8
  45. * Mon Jul 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.1-3vl1
  46. - rebuilt with new toolchains
  47. - changed Group to Applications/System
  48. - added Japanese summary
  49. * Sun May 12 2002 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  50. - 0.1-0vl2 / 0.1-2
  51. - for Vine 2.5
  52. * Sun May 12 2002 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  53. - 0.1-0vl1 / 0.1-1
  54. - 1st release for Vine 2.1.5