]>
Commit | Line | Data |
---|---|---|
2072864a | 1 | %define pre pre9 |
cff82a45 | 2 | Summary: Wireless ethernet configuration tools |
abe5bf5d ER |
3 | Summary(pl.UTF-8): Narzędzia do konfiguracji sieci bezprzewodowej |
4 | Summary(pt_BR.UTF-8): Ferramentas para redes sem fio | |
cff82a45 | 5 | Name: wireless-tools |
2072864a AM |
6 | Version: 30 |
7 | Release: 0.%{pre}.1 | |
616a2b66 | 8 | Epoch: 1 |
5ef30fc2 | 9 | License: GPL v2 |
cff82a45 | 10 | Group: Networking/Admin |
f46be763 | 11 | Source0: https://hewlettpackard.github.io/wireless-tools/wireless_tools.%{version}.%{pre}.tar.gz |
2072864a AM |
12 | # Source0-md5: ca91ba7c7eff9bfff6926b1a34a4697d |
13 | Patch0: %{name}-optflags.patch | |
14 | Patch1: %{name}-debian.patch | |
f46be763 | 15 | URL: https://hewlettpackard.github.io/wireless-tools/Tools.html |
cff82a45 AM |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
9b86bdef AM |
18 | %define _sbindir /sbin |
19 | ||
8115ce7d PS |
20 | %define specflags -fno-strict-aliasing |
21 | ||
cff82a45 | 22 | %description |
f73a40c1 | 23 | This package contains the Wireless tools, used to manipulate the |
22089add | 24 | Wireless Extensions. The Wireless Extension is an interface allowing |
25 | you to set Wireless LAN specific parameters and get the specific stats | |
26 | for wireless networking equipment. | |
cff82a45 | 27 | |
61536937 JR |
28 | %description -l pl.UTF-8 |
29 | Narzędzie używane do manipulacji Rozszerzeniami Bezprzewodowymi. | |
30 | Rozszerzenia Bezprzewodowe to interfejs pozwalający na ustawianie | |
31 | parametrów i uzyskiwanie statystyk na temat bezprzewodowych urządzeń. | |
cff82a45 | 32 | |
61536937 JR |
33 | %description -l pt_BR.UTF-8 |
34 | Este pacote contém ferramentas para redes sem fio, utilizadas para | |
35 | manipular as wireless extensions. Wireless extensions é uma interface | |
36 | que permite que você modifique parâmetros específicos para redes sem | |
37 | fio e verificar estatísticas sobre estas. | |
5ef30fc2 | 38 | |
b39ad7c0 AM |
39 | %package -n libiw |
40 | Summary: Wireless Extension library | |
abe5bf5d | 41 | Summary(pl.UTF-8): Biblioteka rozszerzeń bezprzewodowych |
b39ad7c0 AM |
42 | Group: Libraries |
43 | ||
44 | %description -n libiw | |
45 | Wireless Extension library. | |
46 | ||
61536937 JR |
47 | %description -n libiw -l pl.UTF-8 |
48 | Biblioteka rozszerzeń bezprzewodowych. | |
b39ad7c0 AM |
49 | |
50 | %package -n libiw-devel | |
51 | Summary: Wireless Extension library (development files) | |
abe5bf5d | 52 | Summary(pl.UTF-8): Biblioteka rozszerzeń bezprzewodowych (pliki developerskie) |
b39ad7c0 | 53 | Group: Development/Libraries |
172f774f | 54 | Requires: libiw = %{epoch}:%{version}-%{release} |
b39ad7c0 AM |
55 | |
56 | %description -n libiw-devel | |
57 | Wireless Extension library (development files). | |
58 | ||
61536937 JR |
59 | %description -n libiw-devel -l pl.UTF-8 |
60 | Biblioteka rozszerzeń bezprzewodowych (pliki developerskie). | |
b39ad7c0 AM |
61 | |
62 | %package -n libiw-static | |
63 | Summary: Wireless Extension library (static library) | |
abe5bf5d | 64 | Summary(pl.UTF-8): Biblioteka rozszerzeń bezprzewodowych (biblioteka statyczna) |
b39ad7c0 | 65 | Group: Development/Libraries |
172f774f | 66 | Requires: libiw-devel = %{epoch}:%{version}-%{release} |
b39ad7c0 AM |
67 | |
68 | %description -n libiw-static | |
69 | Wireless Extension library (static library). | |
70 | ||
61536937 JR |
71 | %description -n libiw-static -l pl.UTF-8 |
72 | Biblioteka rozszerzeń bezprzewodowych (biblioteka statyczna). | |
b39ad7c0 | 73 | |
cff82a45 | 74 | %prep |
31861323 | 75 | %setup -q -n wireless_tools.%{version} |
36ac7bbc | 76 | %patch0 -p1 |
a43e08ce | 77 | %patch1 -p1 |
cff82a45 AM |
78 | |
79 | %build | |
b6d33db9 | 80 | %{__make} \ |
9d1fdc68 | 81 | CC="%{__cc}" \ |
2072864a | 82 | OPTFLAGS="%{rpmcflags} %{rpmcppflags}" |
cff82a45 | 83 | |
b6d33db9 | 84 | %{__make} libiw.a \ |
9d1fdc68 | 85 | CC="%{__cc}" \ |
2072864a | 86 | OPTFLAGS="%{rpmcflags} %{rpmcppflags}" |
b6d33db9 | 87 | |
cff82a45 AM |
88 | %install |
89 | rm -rf $RPM_BUILD_ROOT | |
5025ab1f | 90 | install -d $RPM_BUILD_ROOT{%{_sbindir},/%{_lib},%{_libdir},%{_includedir},%{_mandir}/man8} |
cff82a45 | 91 | |
b6d33db9 | 92 | %{__make} install install-dynamic install-static \ |
c7b0ef6b | 93 | INSTALL_DIR=$RPM_BUILD_ROOT%{_sbindir} \ |
94 | INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir} \ | |
95 | INSTALL_INC=$RPM_BUILD_ROOT%{_includedir} \ | |
a3a6f62f | 96 | INSTALL_MAN=$RPM_BUILD_ROOT%{_mandir} |
cff82a45 | 97 | |
357181ba | 98 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libiw.so.* $RPM_BUILD_ROOT/%{_lib} |
5025ab1f JR |
99 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libiw.so |
100 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libiw.so.*) \ | |
101 | $RPM_BUILD_ROOT%{_libdir}/libiw.so | |
102 | ||
357181ba JB |
103 | %{__rm} -r $RPM_BUILD_ROOT%{_mandir}/fr.ISO* |
104 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/fr{.UTF-8,} | |
f2be7e51 | 105 | |
cff82a45 AM |
106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
f2be7e51 JB |
109 | %post -n libiw -p /sbin/ldconfig |
110 | %postun -n libiw -p /sbin/ldconfig | |
b39ad7c0 | 111 | |
cff82a45 AM |
112 | %files |
113 | %defattr(644,root,root,755) | |
357181ba JB |
114 | %doc CHANGELOG.h ESSID-BUG.txt HOTPLUG-UDEV.txt IFRENAME-VS-XXX.txt PCMCIA.txt README |
115 | %lang(fr) %doc README.fr | |
116 | %attr(755,root,root) %{_sbindir}/ifrename | |
117 | %attr(755,root,root) %{_sbindir}/iwconfig | |
118 | %attr(755,root,root) %{_sbindir}/iwevent | |
119 | %attr(755,root,root) %{_sbindir}/iwgetid | |
120 | %attr(755,root,root) %{_sbindir}/iwlist | |
121 | %attr(755,root,root) %{_sbindir}/iwpriv | |
122 | %attr(755,root,root) %{_sbindir}/iwspy | |
123 | %{_mandir}/man5/iftab.5* | |
124 | %{_mandir}/man7/wireless.7* | |
125 | %{_mandir}/man8/ifrename.8* | |
126 | %{_mandir}/man8/iwconfig.8* | |
127 | %{_mandir}/man8/iwevent.8* | |
128 | %{_mandir}/man8/iwgetid.8* | |
129 | %{_mandir}/man8/iwlist.8* | |
130 | %{_mandir}/man8/iwpriv.8* | |
131 | %{_mandir}/man8/iwspy.8* | |
f2be7e51 JB |
132 | %lang(cs) %{_mandir}/cs/man[578]/* |
133 | %lang(fr) %{_mandir}/fr/man[578]/* | |
b39ad7c0 AM |
134 | |
135 | %files -n libiw | |
136 | %defattr(644,root,root,755) | |
5025ab1f | 137 | %attr(755,root,root) /%{_lib}/libiw.so.* |
b39ad7c0 AM |
138 | |
139 | %files -n libiw-devel | |
140 | %defattr(644,root,root,755) | |
9d1fdc68 | 141 | %attr(755,root,root) %{_libdir}/libiw.so |
357181ba JB |
142 | %{_includedir}/iwlib.h |
143 | %{_includedir}/wireless.h | |
b39ad7c0 AM |
144 | |
145 | %files -n libiw-static | |
146 | %defattr(644,root,root,755) | |
9d1fdc68 | 147 | %{_libdir}/libiw.a |