Name: kernel-module-linux-wlan-ng Version: 0.2.1 Release: 0.fdr.0.21.pre21.1 Summary: kernel module for IEEE 802.11 MAC devices. Group: System Environment/Kernel License: MPL URL: http://www.linux-wlan.com/ Source: ftp:///ftp.linux-lwan.org/pub/linux-wlan-ng-%{version}pre21.tar.bz2 Patch: linux-wlan-ng.autotools.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # what kernel are we building for ? %{!?kernel: %define kernel %(uname -r)} # get the correct kernel package release by stripping kernel modifiers %define krel %(echo %{kernel} | sed -e s/smp//g -) # get a type modifier for the kernel, (null) or -smp %if %(echo %{kernel} | grep -c smp) %{expand:%%define ktype -smp} %else %define ktype %{nil} %endif # what kernel "flavor" are we building for ? %{expand:%%define post26 %(if echo %{kernel} | grep -c "^2\.[01234]" > /dev/null; then echo 0; else echo 1; fi)} %if %{post26} BuildRequires: kernel-module-devel-%{krel} ExclusiveArch: i586 i686 i386 %else BuildRequires: kernel-source = %{krel} ExclusiveArch: i686 athlon i386 %endif # where the kernel build tree lives for 2.6 %define basedeveldir %{_libdir}/kernel-module-devel-%{krel} %define develdir %{basedeveldir}/kernel%{ktype}-%{krel}.%{_target_cpu}.rpm # since we have a patch to the build and run autogen.sh BuildRequires: automake BuildRequires: autoconf %ifnarch i386 # we don't want debuginfo packages %define __debug_package 0 %endif %description This package contains kernel modules from the linux-wlan-ng project. The linux-wlan package is a linux device driver and subsystem package that is intended to provide the full range of IEEE 802.11 MAC management capabilities for use in user-mode utilities and scripts. The package currently supports the Intersil 802.11b Prism2, Prism2.5, and Prism3 reference designs for PCMCIA, PCI, and USB. Additionally, the package includes support for PLX9052 based PCI to PCMCIA adapter with a few different PCMCIA cards. You can rebuild this RPM by using --target target_arch --define "kernel (uname -r value)" %package %{kernel} Summary: %{summary} Group: System Environment/Kernel Provides: kernel-module Provides: kernel-module-linux-wlan-ng = %{version}-%{release} Requires: /boot/vmlinuz-%{kernel} Requires(pre): modutils %description %{kernel} This package contains kernel modules from the linux-wlan-ng project. The linux-wlan package is a linux device driver and subsystem package that is intended to provide the full range of IEEE 802.11 MAC management capabilities for use in user-mode utilities and scripts. The package currently supports the Intersil 802.11b Prism2, Prism2.5, and Prism3 reference designs for PCMCIA, PCI, and USB. Additionally, the package includes support for PLX9052 based PCI to PCMCIA adapter with a few different PCMCIA cards. %package -n linux-wlan-ng-tools Summary: %{summary} Group: Applications/System Requires: kernel-module-linux-wlan-ng %description -n linux-wlan-ng-tools This package contains the user-space tools for the linux-wlan-ng project. The linux-wlan package is a linux device driver and subsystem package that is intended to provide the full range of IEEE 802.11 MAC management capabilities for use in user-mode utilities and scripts. The package currently supports the Intersil 802.11b Prism2, Prism2.5, and Prism3 reference designs for PCMCIA, PCI, and USB. Additionally, the package includes support for PLX9052 based PCI to PCMCIA adapter with a few different PCMCIA cards. %prep %setup -q -n linux-wlan-ng-%{version}pre21 %patch -p2 %build bash bootstrap %ifarch i386 %if %{post26} # provide any working devel dir %configure \ --without-modules \ --with-linuxdir=%{basedeveldir}/kernel%{ktype}-%{krel}.i686.rpm %else %configure \ --without-modules \ --with-rpm-target=i686 \ --with-kernel-release=%{kernel} \ --with-linuxdir=/usr/src/linux-%{krel} %endif # post26 make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %makeinstall docdir=${pwd}/__doc %else %if %{post26} %configure \ --without-userspace \ --with-linuxdir=%{develdir} %else %configure \ --without-userspace \ --with-rpm-target=%{_target_cpu} \ --with-kernel-release=%{kernel} \ --with-linuxdir=/usr/src/linux-%{krel} %endif # post26 make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %makeinstall modulesdir=$RPM_BUILD_ROOT/lib/modules/%{kernel}/kernel %endif # i386 %clean rm -rf $RPM_BUILD_ROOT %post %{kernel} depmod -ae -F /boot/System.map-%{kernel} %{kernel} > /dev/null %postun %{kernel} depmod -ae -F /boot/System.map-%{kernel} %{kernel} > /dev/null %ifnarch i386 %files %{kernel} %defattr(-,root,root,-) %dir /lib/modules/%{kernel}/kernel/linux-wlan-ng /lib/modules/%{kernel}/kernel/linux-wlan-ng/* %else %files -n linux-wlan-ng-tools %defattr(-,root,root,-) %{_sbindir}/nwepgen %{_sbindir}/wlancfg %{_sbindir}/wlanctl %{_sbindir}/wland %{_sbindir}/prism2dl %{_mandir}/man1/*.1.gz %endif %changelog * Fri Jun 18 2004 Thomas Vander Stichele - 0.2.1-0.21.pre21.1: initial package