diff --git a/wireless-tools-29-makefile.patch b/wireless-tools-29-makefile.patch new file mode 100644 index 0000000000000000000000000000000000000000..c4205768032d182a62b5240ad09556ca74e02e85 --- /dev/null +++ b/wireless-tools-29-makefile.patch @@ -0,0 +1,39 @@ +diff -up wireless_tools.29/Makefile.makefile wireless_tools.29/Makefile +--- wireless_tools.29/Makefile.makefile 2007-09-17 19:56:46.000000000 -0400 ++++ wireless_tools.29/Makefile 2018-06-04 14:34:29.252095389 -0400 +@@ -101,12 +101,15 @@ ifdef BUILD_WE_ESSENTIAL + WEDEF_FLAG= -DWE_ESSENTIAL=y + endif + ++ifndef OPT_FLAGS ++ OPT_FLAGS= ++endif + # Other flags + CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \ + -Wpointer-arith -Wcast-qual -Winline -I. + #CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I. + DEPFLAGS=-MMD +-XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG) ++XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG) $(OPT_FLAGS) + PICFLAG=-fPIC + + # Standard compilation targets +@@ -117,7 +120,7 @@ all:: $(IWLIB) $(PROGS) + %.o: %.c wireless.h + $(CC) $(XCFLAGS) -c $< + %.so: %.c wireless.h +- $(CC) $(XCFLAGS) $(PICFLAG) -c -o $@ $< ++ $(CC) $(LDFLAGS) $(XCFLAGS) $(PICFLAG) -c -o $@ $< + + iwconfig: iwconfig.o $(IWLIB) + +@@ -145,7 +148,8 @@ wireless.h: + + # Compilation of the dynamic library + $(DYNAMIC): $(OBJS:.o=.so) +- $(CC) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^ ++ $(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname,$@ $(STRIPFLAGS) $(LIBS) -lc $^ ++ ln -s $@ $(DYNAMIC_LINK) + + # Compilation of the static library + $(STATIC): $(OBJS:.o=.so) diff --git a/wireless-tools.spec b/wireless-tools.spec new file mode 100644 index 0000000000000000000000000000000000000000..f958afc8d1606315df498c2b03907cc2140bebd0 --- /dev/null +++ b/wireless-tools.spec @@ -0,0 +1,291 @@ +Summary: Wireless ethernet configuration tools +License: GPL+ +Name: wireless-tools +Version: 29 +Release: 23%{?dist} +Epoch: 1 +URL: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html +Source: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.%{version}.tar.gz +Patch1: wireless-tools-29-makefile.patch + +BuildRequires: gcc + +# This is artificial, for packaging purposes. The presumption is that +# wireless users will install this package, so they will want crda too. +# This avoids adding a Requires to the kernel package that would affect +# non-wireless users as well. +Requires: crda + +%description +This package contain the Wireless tools, used to manipulate +the Wireless Extensions. The Wireless Extension is an interface +allowing you to set Wireless LAN specific parameters and get the +specific stats for wireless networking equipment. + +%package devel +Summary: Development headers for the wireless-tools package +Requires: wireless-tools = %{epoch}:%{version}-%{release} + +%description devel +Development headers for the wireless-tools package. + + +%prep +%setup -q -n wireless_tools.%{version} +%patch1 -p1 -b .makefile + +%build +make clean +make OPT_FLAGS="$RPM_OPT_FLAGS" BUILD_SHARED=1 FORCE_WEXT_VERSION=16 \ + LDFLAGS="%{?__global_ldflags}" + +%install +%{__rm} -rf $RPM_BUILD_ROOT + +%{__mkdir_p} $RPM_BUILD_ROOT{/sbin,/%{_lib},%{_mandir}/man8,%{_includedir},%{_libdir}} + +make install INSTALL_DIR=$RPM_BUILD_ROOT/sbin \ + INSTALL_LIB=$RPM_BUILD_ROOT/%{_lib} \ + INSTALL_INC=$RPM_BUILD_ROOT%{_includedir} \ + INSTALL_MAN=$RPM_BUILD_ROOT%{_mandir} +%{__rm} -f $RPM_BUILD_ROOT/%{_lib}/libiw.{a,so} +ln -sf ../../%{_lib}/libiw.so.%{version} \ + $RPM_BUILD_ROOT%{_libdir}/libiw.so + +%ldconfig_scriptlets + +%files +%doc INSTALL README DISTRIBUTIONS.txt +/sbin/* +%{_mandir}/man*/* +/%{_lib}/*.so.* + +%files devel +%{_includedir}/* +%{_libdir}/*.so + + +%changelog +* Sat Jul 27 2019 Fedora Release Engineering - 1:29-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 1:29-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1:29-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jun 04 2018 John W. Linville - 1:29-20 +- Remove essentially unused pre_release tagging in spec file +- Fixup Makefile patch to include LDFLAGS in all linking commands + +* Mon Apr 30 2018 John W. Linville - 1:29-19.1 +- Respect the standard Fedora linker flags (LDFLAGS) from redhat-rpm-config + +* Fri Feb 09 2018 Fedora Release Engineering - 1:29-18.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1:29-17.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1:29-16.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1:29-15.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 1:29-14.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 1:29-13.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 1:29-12.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 1:29-11.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1:29-10.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 1:29-9.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 1:29-8.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1:29-7.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 1:29-6.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Sep 01 2009 Karsten Hopp 29-5.1 +- drop excludearch s390x as at least the headers are required to build p.e. NetworkManager + +* Mon Jul 27 2009 Fedora Release Engineering - 1:29-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1:29-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 20 2009 John W. Linville - 1:29-3 +- Add artificial crda requirement for packaging reasons + +* Mon Feb 18 2008 Christopher Aillon - 1:29-2 +- Rebuild to celebrate my birthday (and GCC 4.3) + +* Sat Dec 22 2007 Christopher Aillon - 1:29-1 +- Update to v29 stable release +- Some minor cleanups for merge review + +* Fri Aug 24 2007 Christopher Aillon - 1:29-0.2.pre22 +- Rebuild + +* Mon Aug 13 2007 Christopher Aillon - 1:29-0.1.pre22 +- Update to 29pre22 +- Update the license tag + +* Tue May 22 2007 Christopher Aillon - 1:29-0.1.pre21 +- Update to 29pre21 + +* Mon May 14 2007 Christopher Aillon - 1:28-3 +- Only the sscanf fixes this time. + +* Mon Apr 30 2007 Christopher Aillon - 1:28-2 +- Backport a few 64bit alignment fixes from the latest betas. + +* Tue Aug 29 2006 Christopher Aillon - 1:28-1 +- Update to the latest stable release +- Create -devel subpackage for headers + +* Wed Jul 12 2006 Jesse Keating - 1:28-0.pre16.1.6.1 +- rebuild + +* Thu Apr 6 2006 Dan Williams - 1:28-0.pre16.1 +- Update to 28 pre16 +- Rebuild for WE-20 + +* Sun Feb 12 2006 Christopher Aillon - 1:28-0.pre13.5.1 +- Update to 28 pre13 + +* Tue Feb 07 2006 Jesse Keating - 1:28-0.pre10.5.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Mon Oct 17 2005 Christopher Aillon 28-0pre10 +- Update to version 28 pre10 + +* Mon Sep 12 2005 Dan Williams 28-0.pre9 +- Update to version 28 pre9 + +* Wed Aug 17 2005 Dan Williams 28-0.pre8 +- Update to 28 pre8 + +* Fri Aug 05 2005 Florian La Roche +- build with current rpm + +* Mon Jan 17 2005 Dan Williams 28-0.pre4 +- Update to latest wireless-tools + +* Mon Nov 08 2004 Dan Williams 27-0.pre25-4 +- Fix massive leak in iw_process_scan() + +* Mon Sep 27 2004 Rik van Riele 27-0.pre25-2 +- compile with RPM_OPT_FLAGS (bz#133651) + +* Tue Aug 31 2004 Bill Nottingham 27-0.pre25.1 +- update to 27.pre25 + +* Wed Jun 23 2004 Dan Williams +- Upgrade to 27.pre23 to get new wireless scanning API + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Mon Mar 15 2004 Bill Nottingham +- force wireless extensions to current (#115707) + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Sun Aug 31 2003 Bill Nottingham 26-2 +- rebuild in different environment (#103475) + +* Sun Aug 10 2003 Florian La Roche +- release 26 + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Sun Mar 09 2003 Florian La Roche +- also change destination of the symlink + +* Mon Feb 17 2003 Bill Nottingham 25-8 +- fix symlink (#84021) + +* Mon Feb 10 2003 Bill Nottingham 25-7 +- fix symlink (#84021) + +* Fri Feb 7 2003 Bill Nottingham 25-6 +- remove broken specfile defines, fix makefile (#82423) + +* Wed Feb 5 2003 Bill Nottingham 25-5 +- rebuild against new glibc-kernheaders (#82423) + +* Fri Jan 31 2003 Elliot Lee 25-4 +- Fix for multilib, and fix the .so symlink location. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Wed Dec 11 2002 Tim Powers 25-2 +- rebuild on all arches + +* Mon Aug 26 2002 Trond Eivind Glomsrød 25-1 +- v25 - fixes encryption usage display, eternal loops for unknown + events and matches the v13 wireless extensions as shipped in + kernel (#72582) + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Thu Jun 20 2002 Trond Eivind Glomsrød 24-1 +- v24 + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Thu Mar 21 2002 Bill Nottingham 23-2 +- rebuild against new headers + +* Thu Feb 28 2002 Elliot Lee 23-1 +- Update to version 23, with associated fixes. + +* Sun Jul 8 2001 Bill Nottingham +- rebuild against new kernel + +* Tue Jun 19 2001 Florian La Roche +- add ExcludeArch: s390 s390x + +* Sun Apr 22 2001 Bill Nottingham +- update to version 21 + +* Wed Feb 14 2001 Bill Nottingham +- fix build with glibc-2.2 +- also, rebuild so it no longer dumps core. :) + +* Tue Dec 05 2000 Florian La Roche +- added a clean section in the spec file + +* Thu Jul 13 2000 Prospector +- automatic rebuild + +* Fri Mar 10 2000 Bill Nottingham +- initial build diff --git a/wireless_tools.29.tar.gz b/wireless_tools.29.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1767cd6d2ce2c08dc4a9059187616fd9aeb27d93 Binary files /dev/null and b/wireless_tools.29.tar.gz differ