1 Summary: Wireless ethernet configuration tools
2 Summary(pl.UTF-8): Narzędzia do konfiguracji sieci bezprzewodowej
3 Summary(pt_BR.UTF-8): Ferramentas para redes sem fio
9 Group: Networking/Admin
10 Source0: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.%{version}.tar.gz
11 # Source0-md5: e06c222e186f7cc013fd272d023710cb
12 Patch0: %{name}-llh.patch
13 Patch1: %{name}-optflags.patch
14 URL: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _sbindir /sbin
19 %define specflags -fno-strict-aliasing
22 This package contains the Wireless tools, used to manipulate the
23 Wireless Extensions. The Wireless Extension is an interface allowing
24 you to set Wireless LAN specific parameters and get the specific stats
25 for wireless networking equipment.
27 %description -l pl.UTF-8
28 Narzędzie używane do manipulacji Rozszerzeniami Bezprzewodowymi.
29 Rozszerzenia Bezprzewodowe to interfejs pozwalający na ustawianie
30 parametrów i uzyskiwanie statystyk na temat bezprzewodowych urządzeń.
32 %description -l pt_BR.UTF-8
33 Este pacote contém ferramentas para redes sem fio, utilizadas para
34 manipular as wireless extensions. Wireless extensions é uma interface
35 que permite que você modifique parâmetros específicos para redes sem
36 fio e verificar estatísticas sobre estas.
39 Summary: Wireless Extension library
40 Summary(pl.UTF-8): Biblioteka rozszerzeń bezprzewodowych
44 Wireless Extension library.
46 %description -n libiw -l pl.UTF-8
47 Biblioteka rozszerzeń bezprzewodowych.
49 %package -n libiw-devel
50 Summary: Wireless Extension library (development files)
51 Summary(pl.UTF-8): Biblioteka rozszerzeń bezprzewodowych (pliki developerskie)
52 Group: Development/Libraries
53 Requires: libiw = %{epoch}:%{version}-%{release}
55 %description -n libiw-devel
56 Wireless Extension library (development files).
58 %description -n libiw-devel -l pl.UTF-8
59 Biblioteka rozszerzeń bezprzewodowych (pliki developerskie).
61 %package -n libiw-static
62 Summary: Wireless Extension library (static library)
63 Summary(pl.UTF-8): Biblioteka rozszerzeń bezprzewodowych (biblioteka statyczna)
64 Group: Development/Libraries
65 Requires: libiw-devel = %{epoch}:%{version}-%{release}
67 %description -n libiw-static
68 Wireless Extension library (static library).
70 %description -n libiw-static -l pl.UTF-8
71 Biblioteka rozszerzeń bezprzewodowych (biblioteka statyczna).
74 %setup -q -n wireless_tools.%{version}
78 sed -i -e 's#__user##g' iwlib.h wireless.22.h
83 OPTFLAGS="%{rpmcflags}"
87 OPTFLAGS="%{rpmcflags}"
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir},%{_includedir},%{_mandir}/man8}
93 %{__make} install install-dynamic install-static \
94 INSTALL_DIR=$RPM_BUILD_ROOT%{_sbindir} \
95 INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir} \
96 INSTALL_INC=$RPM_BUILD_ROOT%{_includedir} \
97 INSTALL_MAN=$RPM_BUILD_ROOT%{_mandir}
99 install -d $RPM_BUILD_ROOT%{_mandir}/{cs,fr}/man{5,7,8}
100 install cs/*.5 $RPM_BUILD_ROOT%{_mandir}/cs/man5
101 install cs/*.7 $RPM_BUILD_ROOT%{_mandir}/cs/man7
102 install cs/*.8 $RPM_BUILD_ROOT%{_mandir}/cs/man8
103 install fr/*.5 $RPM_BUILD_ROOT%{_mandir}/fr/man5
104 install fr/*.7 $RPM_BUILD_ROOT%{_mandir}/fr/man7
105 install fr/*.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8
108 rm -rf $RPM_BUILD_ROOT
110 %post -n libiw -p /sbin/ldconfig
111 %postun -n libiw -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %doc READ* INSTA* PCM*
116 %attr(755,root,root) %{_sbindir}/*
117 %{_mandir}/man[578]/*
118 %lang(cs) %{_mandir}/cs/man[578]/*
119 %lang(fr) %{_mandir}/fr/man[578]/*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libiw.so.*
125 %files -n libiw-devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libiw.so
130 %files -n libiw-static
131 %defattr(644,root,root,755)