2007-01-15 23:41:19 +00:00
|
|
|
#
|
2011-04-22 20:50:13 +00:00
|
|
|
# spec file for package wireless-tools
|
2007-01-15 23:41:19 +00:00
|
|
|
#
|
2011-04-22 20:50:13 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:41:19 +00:00
|
|
|
#
|
2008-11-07 15:32:23 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:41:19 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-11-07 15:32:23 +00:00
|
|
|
|
2007-01-15 23:41:19 +00:00
|
|
|
Name: wireless-tools
|
2009-03-11 16:41:42 +00:00
|
|
|
BuildRequires: openssl-devel udev
|
2007-01-15 23:41:19 +00:00
|
|
|
Summary: Tools for a wireless LAN
|
2009-06-18 00:08:53 +00:00
|
|
|
%define major_version 30
|
|
|
|
Version: %{major_version}.pre8
|
2011-04-22 20:50:13 +00:00
|
|
|
Release: 19
|
2007-08-03 00:21:11 +00:00
|
|
|
Group: Hardware/Wifi
|
2009-12-26 12:59:18 +00:00
|
|
|
License: GPLv2+
|
2007-01-15 23:41:19 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-12-21 09:24:28 +00:00
|
|
|
Url: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
|
|
|
|
AutoReqProv: on
|
2008-02-04 00:11:07 +00:00
|
|
|
Source: wireless_tools.%{version}.tar.bz2
|
2007-01-15 23:41:19 +00:00
|
|
|
Patch: wireless_tools.dif
|
2009-12-26 12:59:18 +00:00
|
|
|
Patch1: lwepgen-as-needed.patch
|
2007-01-15 23:41:19 +00:00
|
|
|
Source2: suse-files.tar.gz
|
|
|
|
Source4: ipw2200.modprobe
|
2007-12-21 09:24:28 +00:00
|
|
|
Source5: prism54.modprobe
|
2007-03-22 20:02:01 +00:00
|
|
|
Source6: lwepgen.tar.bz2
|
2009-03-11 16:41:42 +00:00
|
|
|
Source8: iwlwifi-led.sh
|
|
|
|
Source9: 99-iwlwifi-led.rules
|
2010-02-11 18:37:39 +00:00
|
|
|
Source10: iwl3945.modprobe
|
2010-12-01 15:52:25 +00:00
|
|
|
Source11: iwlagn.modprobe
|
2009-12-26 12:59:18 +00:00
|
|
|
Requires: libiw = %{version}
|
2009-06-18 00:08:53 +00:00
|
|
|
|
|
|
|
%package -n libiw30
|
2009-12-26 12:59:18 +00:00
|
|
|
License: GPLv2+
|
2009-06-18 00:08:53 +00:00
|
|
|
Summary: Tools for a wireless LAN
|
|
|
|
Group: Hardware/Wifi
|
|
|
|
Provides: libiw
|
|
|
|
|
|
|
|
%package -n libiw-devel
|
2009-12-26 12:59:18 +00:00
|
|
|
License: GPLv2+
|
2009-06-18 00:08:53 +00:00
|
|
|
Summary: Tools for a wireless LAN
|
|
|
|
Group: Hardware/Wifi
|
2009-12-26 12:59:18 +00:00
|
|
|
Requires: libiw30 = %{version} glibc-devel
|
2007-01-15 23:41:19 +00:00
|
|
|
|
|
|
|
%description
|
2011-06-01 21:23:59 +00:00
|
|
|
This package contains the wireless tools, used to manipulate the
|
2007-01-15 23:41:19 +00:00
|
|
|
wireless extensions. The wireless extension is an interface that allows
|
|
|
|
you to set wireless LAN specific parameters and get specific stats.
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-06-18 00:08:53 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jean Tourrilhes <jt@hpl.hp.com>
|
|
|
|
|
|
|
|
%description -n libiw30
|
2011-06-01 21:23:59 +00:00
|
|
|
This package contains the wireless tools, used to manipulate the
|
2009-06-18 00:08:53 +00:00
|
|
|
wireless extensions. The wireless extension is an interface that allows
|
|
|
|
you to set wireless LAN specific parameters and get specific stats.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jean Tourrilhes <jt@hpl.hp.com>
|
|
|
|
|
|
|
|
%description -n libiw-devel
|
2011-06-01 21:23:59 +00:00
|
|
|
This package contains the wireless tools, used to manipulate the
|
2009-06-18 00:08:53 +00:00
|
|
|
wireless extensions. The wireless extension is an interface that allows
|
|
|
|
you to set wireless LAN specific parameters and get specific stats.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-15 23:41:19 +00:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jean Tourrilhes <jt@hpl.hp.com>
|
|
|
|
|
|
|
|
%prep
|
2007-03-22 20:02:01 +00:00
|
|
|
%setup6 -q -T -b 6 -n lwepgen
|
2008-11-07 15:32:23 +00:00
|
|
|
%setup -q -n wireless_tools.30
|
2007-01-15 23:41:19 +00:00
|
|
|
%patch
|
2009-12-26 12:59:18 +00:00
|
|
|
pushd ../lwepgen
|
|
|
|
%patch1
|
|
|
|
popd
|
2007-01-15 23:41:19 +00:00
|
|
|
|
|
|
|
%build
|
2010-01-14 15:31:27 +00:00
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" -C ../lwepgen
|
2007-01-15 23:41:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
make INSTALL_DIR="${RPM_BUILD_ROOT}/%{_sbindir}" \
|
|
|
|
INSTALL_INC="${RPM_BUILD_ROOT}/%{_includedir}" \
|
|
|
|
INSTALL_LIB="${RPM_BUILD_ROOT}/%{_libdir}" \
|
|
|
|
INSTALL_MAN="${RPM_BUILD_ROOT}/%{_mandir}" \
|
|
|
|
DOCDIR=%{_defaultdocdir}/wireless-tools \
|
|
|
|
PREFIX="${RPM_BUILD_ROOT}/usr" \
|
|
|
|
install
|
|
|
|
tar xvvzf %{SOURCE2}
|
|
|
|
install -m755 install_intersil_firmware %{buildroot}/usr/sbin
|
|
|
|
install -m755 install_acx100_firmware %{buildroot}/usr/sbin
|
2007-03-22 20:02:01 +00:00
|
|
|
install -m755 ../lwepgen/lwepgen %{buildroot}/usr/sbin
|
2007-01-15 23:41:19 +00:00
|
|
|
mkdir -p %{buildroot}/etc/modprobe.d
|
2009-03-11 16:41:42 +00:00
|
|
|
install -m644 %{SOURCE4} %{buildroot}/etc/modprobe.d/50-ipw2200.conf
|
2010-02-11 18:37:39 +00:00
|
|
|
install -m644 %{SOURCE10} %{buildroot}/etc/modprobe.d/50-iwl3945.conf
|
2011-02-08 13:47:00 +00:00
|
|
|
install -m644 %{SOURCE11} %{buildroot}/etc/modprobe.d/50-iwlagn.conf
|
2007-09-10 22:48:29 +00:00
|
|
|
%ifarch %ix86 x86_64
|
2009-03-11 16:41:42 +00:00
|
|
|
install -m644 %{SOURCE5} %{buildroot}/etc/modprobe.d/50-prism54.conf
|
2007-09-11 00:08:17 +00:00
|
|
|
%endif
|
2009-03-11 16:41:42 +00:00
|
|
|
mkdir -p %{buildroot}/lib/udev
|
|
|
|
install -m755 %{SOURCE8} %{buildroot}/lib/udev/iwlwifi-led.sh
|
|
|
|
mkdir -p %{buildroot}/etc/udev/rules.d
|
|
|
|
install -m644 %{SOURCE9} %{buildroot}/etc/udev/rules.d/99-iwlwifi-led.rules
|
2009-12-26 12:59:18 +00:00
|
|
|
%find_lang %{name} --with-man --all-name
|
2007-01-15 23:41:19 +00:00
|
|
|
|
|
|
|
%clean
|
2008-01-12 02:22:42 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-06-18 00:08:53 +00:00
|
|
|
%post -n libiw30 -p /sbin/ldconfig
|
2008-01-12 02:22:42 +00:00
|
|
|
|
2009-06-18 00:08:53 +00:00
|
|
|
%postun -n libiw30 -p /sbin/ldconfig
|
2007-01-15 23:41:19 +00:00
|
|
|
|
2009-12-26 12:59:18 +00:00
|
|
|
%files -f %{name}.lang
|
2007-01-15 23:41:19 +00:00
|
|
|
%defattr(-,root,root)
|
2007-03-29 16:31:40 +00:00
|
|
|
%dir /etc/modprobe.d
|
2007-01-15 23:41:19 +00:00
|
|
|
%{_sbindir}/*
|
2009-06-18 00:08:53 +00:00
|
|
|
%config /etc/modprobe.d/*
|
2009-12-26 12:59:18 +00:00
|
|
|
%doc CHANGELOG.h INSTALL PCMCIA.txt README*
|
|
|
|
/lib/udev/iwlwifi-led.sh
|
2008-11-07 15:32:23 +00:00
|
|
|
%dir %{_mandir}/cs
|
|
|
|
%dir %{_mandir}/fr.ISO8859-1
|
|
|
|
%dir %{_mandir}/fr.UTF-8
|
2009-12-26 12:59:18 +00:00
|
|
|
%{_mandir}/man?/*.gz
|
2009-06-18 00:08:53 +00:00
|
|
|
%config /etc/udev/rules.d/99-iwlwifi-led.rules
|
|
|
|
|
|
|
|
%files -n libiw30
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libiw.so.*
|
|
|
|
|
|
|
|
%files -n libiw-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libiw.so
|
|
|
|
%{_includedir}/*
|
2007-01-15 23:41:19 +00:00
|
|
|
|
2007-03-20 07:33:15 +00:00
|
|
|
%changelog
|