remove bin/iwlist symlink [release 30.pre9-2mamba;Tue Jul 11 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 19:28:05 +01:00
parent 05d501a923
commit 094c7ebbda

View File

@ -1,19 +1,21 @@
%define majver %(echo %version | cut -d. -f1)
Name: wireless_tools
Version: 30.pre9
Release: 1mamba
Release: 2mamba
Summary: A set of tools allowing to manipulate the Wireless Extensions
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
URL: https://hewlettpackard.github.io/wireless-tools/Tools.html
Source0: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.%{version}.tar.gz
Source1: wireless_tools-ifrename_iftab
Patch0: %{name}-29-iwlib_h_fix.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: libiw = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A set of tools and a library allowing to manipulate the Wireless Extensions.
@ -32,7 +34,7 @@ Requires: libiw = %{?epoch:%epoch:}%{version}-%{release}
%description -n libiw-devel
A set of tools and a library allowing to manipulate the Wireless Extensions.
This package contains static libraries and header files need for development.
This package contains static libraries and header files needed for development.
%package -n ifrename
Summary: A tool allowing you to assign a consistent name to each of your network interface
@ -41,10 +43,12 @@ Group: System/Tools
%description -n ifrename
Ifrename is a tool allowing you to assign a consistent name to each of your network interface.
%debug_package
%prep
%setup -q -n wireless_tools.%{majver}
sed -i "s|\(BUILD_STATIC = y\)|#\1|" Makefile
%patch0 -p1
%patch 0 -p1
%build
%make \
@ -58,8 +62,8 @@ sed -i "s|\(BUILD_STATIC = y\)|#\1|" Makefile
INSTALL_LIB=%{buildroot}%{_libdir} \
INSTALL_MAN=%{buildroot}%{_mandir}
install -d %{buildroot}%{_bindir}
ln -s ../sbin/iwlist %{buildroot}%{_bindir}/iwlist
#install -d %{buildroot}%{_bindir}
#ln -s ../sbin/iwlist %{buildroot}%{_bindir}/iwlist
install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/iftab
%clean
@ -76,7 +80,6 @@ install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/iftab
%{_sbindir}/iwlist
%{_sbindir}/iwpriv
%{_sbindir}/iwspy
%{_bindir}/iwlist
%{_mandir}/man7/wireless.*
%{_mandir}/man8/iwconfig.*
%{_mandir}/man8/iwevent.*
@ -105,6 +108,9 @@ install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/iftab
%{_mandir}/man8/ifrename.*
%changelog
* Tue Jul 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 30.pre9-2mamba
- remove bin/iwlist symlink
* Thu Sep 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 30.pre9-1mamba
- update to 30.pre9