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