wireless-tools/wireless-tools.spec
Ismail Dönmez 2ecb172dc5 Accepting request 79608 from home:dirkmueller:branches:hardware
- update to 30.pre9:
  o Create iwlib-private.h to minimise namespace pollution [iwlib]
  o More fix to the 64->32bit band-aid for encode [iwlib]
  o Update udev rule to remove a warning [19-udev-ifrename.rules]
    (from Ritesh Raj Sarraf <rrs@researchut.com> and Guus Sliepen)
  o Propagate error codes out of main for get [iwconfig/iwlist/iwspy]
   (From Guus Sliepen <guus@debian.org>)
  o Remove spurious commands from Czech iwconfig manpage.

OBS-URL: https://build.opensuse.org/request/show/79608
OBS-URL: https://build.opensuse.org/package/show/hardware/wireless-tools?expand=0&rev=17
2011-08-23 19:51:31 +00:00

160 lines
4.6 KiB
RPMSpec

#
# spec file for package wireless-tools
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: wireless-tools
BuildRequires: openssl-devel udev
Summary: Tools for a wireless LAN
%define major_version 30
Version: %{major_version}.pre9
Release: 19
Group: Hardware/Wifi
License: GPLv2+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
AutoReqProv: on
Source: wireless_tools.%{version}.tar.gz
Patch: wireless_tools.dif
Patch1: lwepgen-as-needed.patch
Source2: suse-files.tar.gz
Source4: ipw2200.modprobe
Source5: prism54.modprobe
Source6: lwepgen.tar.bz2
Source8: iwlwifi-led.sh
Source9: 99-iwlwifi-led.rules
Source10: iwl3945.modprobe
Source11: iwlagn.modprobe
Requires: libiw = %{version}
%package -n libiw30
License: GPLv2+
Summary: Tools for a wireless LAN
Group: Hardware/Wifi
Provides: libiw
%package -n libiw-devel
License: GPLv2+
Summary: Tools for a wireless LAN
Group: Hardware/Wifi
Requires: libiw30 = %{version} glibc-devel
%description
This package contains the wireless tools, used to manipulate the
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 libiw30
This package contains the wireless tools, used to manipulate the
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
This package contains the wireless tools, used to manipulate the
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>
%prep
%setup6 -q -T -b 6 -n lwepgen
%setup -q -n wireless_tools.30
%patch
pushd ../lwepgen
%patch1
popd
%build
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" -C ../lwepgen
%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
install -m755 ../lwepgen/lwepgen %{buildroot}/usr/sbin
mkdir -p %{buildroot}/etc/modprobe.d
install -m644 %{SOURCE4} %{buildroot}/etc/modprobe.d/50-ipw2200.conf
install -m644 %{SOURCE10} %{buildroot}/etc/modprobe.d/50-iwl3945.conf
install -m644 %{SOURCE11} %{buildroot}/etc/modprobe.d/50-iwlagn.conf
%ifarch %ix86 x86_64
install -m644 %{SOURCE5} %{buildroot}/etc/modprobe.d/50-prism54.conf
%endif
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
%find_lang %{name} --with-man --all-name
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libiw30 -p /sbin/ldconfig
%postun -n libiw30 -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%dir /etc/modprobe.d
%{_sbindir}/*
%config /etc/modprobe.d/*
%doc CHANGELOG.h INSTALL PCMCIA.txt README*
/lib/udev/iwlwifi-led.sh
%dir %{_mandir}/cs
%dir %{_mandir}/fr.ISO8859-1
%dir %{_mandir}/fr.UTF-8
%{_mandir}/man?/*.gz
%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}/iwlib.h
%{_includedir}/wireless.h
%changelog