]> git.pld-linux.org Git - packages/wireless-tools.git/blob - wireless-tools.spec
- up to final 29
[packages/wireless-tools.git] / wireless-tools.spec
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
4 Name:           wireless-tools
5 Version:        29
6 Release:        1
7 Epoch:          1
8 License:        GPL v2
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)
16
17 %define         _sbindir        /sbin
18
19 %define         specflags       -fno-strict-aliasing
20
21 %description
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.
26
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ń.
31
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.
37
38 %package -n libiw
39 Summary:        Wireless Extension library
40 Summary(pl.UTF-8):      Biblioteka rozszerzeń bezprzewodowych
41 Group:          Libraries
42
43 %description -n libiw
44 Wireless Extension library.
45
46 %description -n libiw -l pl.UTF-8
47 Biblioteka rozszerzeń bezprzewodowych.
48
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}
54
55 %description -n libiw-devel
56 Wireless Extension library (development files).
57
58 %description -n libiw-devel -l pl.UTF-8
59 Biblioteka rozszerzeń bezprzewodowych (pliki developerskie).
60
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}
66
67 %description -n libiw-static
68 Wireless Extension library (static library).
69
70 %description -n libiw-static -l pl.UTF-8
71 Biblioteka rozszerzeń bezprzewodowych (biblioteka statyczna).
72
73 %prep
74 %setup -q -n wireless_tools.%{version}
75 %patch0 -p1
76 %patch1 -p1
77
78 sed -i -e 's#__user##g' iwlib.h wireless.22.h
79
80 %build
81 %{__make} \
82         CC="%{__cc}" \
83         OPTFLAGS="%{rpmcflags}"
84
85 %{__make} libiw.a \
86         CC="%{__cc}" \
87         OPTFLAGS="%{rpmcflags}"
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir},%{_includedir},%{_mandir}/man8}
92
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}
98
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
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -n libiw -p /sbin/ldconfig
111 %postun -n libiw -p /sbin/ldconfig
112
113 %files
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]/*
120
121 %files -n libiw
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libiw.so.*
124
125 %files -n libiw-devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libiw.so
128 %{_includedir}/*.h
129
130 %files -n libiw-static
131 %defattr(644,root,root,755)
132 %{_libdir}/libiw.a
This page took 0.049442 seconds and 3 git commands to generate.