Name: kernel-module-ipw2100 Version: 0.40 Release: 0.fdr.1 Epoch: 0 Summary: kernel module for Intel Pro Wireless 2100 network adaptor. Group: System Environment/Kernel License: GPL URL: http://ipw2100.sourceforge.net/ Source: http://download.sourceforge.net/ipw2100/ipw2100-%{version}.tgz Patch: ipw2100.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 -) BuildRequires: kernel = %{krel} BuildRequires: kernel-source = %{krel} # We require the hostap.ver file from another kernel module package BuildRequires: kernel-module-hostap-%{krel} # since we have a patch to the build and run autogen.sh BuildRequires: automake BuildRequires: autoconf # We require the hostap module Requires: kernel-module-hostap-%{krel} Requires: /boot/vmlinuz-%{kernel} %description This package contains a kernel module for the Intel Pro Wireless 2100 network adaptor. 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-ipw2100 = %{epoch}:%{version}-%{release} Requires: /boot/vmlinuz-%{kernel} Requires(pre): modutils %description %{kernel} This package contains a kernel module for the qc-usb Logitech QuickCam USB driver. You can rebuild this RPM by using --target target_arch --define "kernel (uname -r value)" %prep %setup -q -n ipw2100-%{version} %patch -p1 %build # we supply arguments to autogen.sh so its configure doesn't fail bash autogen.sh --with-redhat-target=%{_target_cpu} --with-kernel-release=%{kernel} --with-linuxdir=/usr/src/linux-%{krel} %configure --with-redhat-target=%{_target_cpu} --with-kernel-release=%{kernel} --with-linuxdir=/usr/src/linux-%{krel} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # if we want to package binaries, it should be in a separate package rm -rf $RPM_BUILD_ROOT/%{_bindir}/qcset %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 %files %{kernel} %defattr(-,root,root,-) /lib/modules/%{kernel}/kernel/drivers/net/ipw2100.o %changelog * Thu Apr 15 2004 Thomas Vander Stichele - Initial package