SPECS: ipw2200.spec rev. 1.23
Bartosz Swiatek
swiatek w informatik.hu-berlin.de
Pią, 15 Lip 2005, 14:59:37 CEST
updated md5sum
-------------- następna część ---------
# $Revision: 1.23 $, $Date: 2005/07/15 15:00:48 $
#
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
%bcond_without smp # don't build SMP module
%bcond_with verbose # verbose build (V=1)
#
Summary: Intel(R) PRO/Wireless 2200 Driver for Linux
Summary(pl): Sterownik dla Linuksa do kart Intel(R) PRO/Wireless 2200
Name: ipw2200
Version: 1.0.6
%define _rel 1
Release: %{_rel}
License: GPL v2
Group: Base/Kernel
Source0: http://dl.sourceforge.net/ipw2200/%{name}-%{version}.tgz
# Source0-md5: d49f301ce8cffbd1cfbdb51061df3ac8
# Source0-size: 112932
URL: http://ipw2200.sourceforge.net/
%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.7}
BuildRequires: rpmbuild(macros) >= 1.153
BuildRequires: sed >= 4.0
Requires: ipw2200-firmware = 2.3
Requires: ieee80211 >= 1.0.1
ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This project was created by Intel to enable support for the Intel
PRO/Wireless 2200/2915 Network Connection mini PCI adapter.
%description -l pl
Ten projekt został stworzony przez Intela, aby umożliwić obsługę kart
mini PCI Intel PRO/Wireless 2200/2915 Network Connection.
%package -n kernel-net-ipw2200
Summary: Linux kernel module for the Intel(R) PRO/Wireless 2200
Summary(pl): Moduł jądra Linuksa dla kart Intel(R) PRO/Wireless 2200
Release: %{_rel}@%{_kernel_ver_str}
Group: Base/Kernel
Requires: ipw2200-firmware = 2.3
Requires: ieee80211 >= 1.0.1
Requires: hotplug
%{?with_dist_kernel:%requires_releq_kernel_up}
Requires(post,postun): /sbin/depmod
%description -n kernel-net-ipw2200
This package contains Linux kernel drivers for the Intel(R)
PRO/Wireless 2200 and 2915.
%description -n kernel-net-ipw2200 -l pl
Ten pakiet zawiera sterowniki jądra Linuksa dla kart Intel(R)
PRO/Wireless 2200 oraz 2915.
%package -n kernel-smp-net-ipw2200
Summary: Linux SMP kernel module for the Intel(R) PRO/Wireless 2200
Summary(pl): Moduł jądra Linuksa SMP dla kart Intel(R) PRO/Wireless 2200
Release: %{_rel}@%{_kernel_ver_str}
Group: Base/Kernel
Requires: ipw2200-firmware = 2.3
Requires: ieee80211 >= 1.0.1
Requires: hotplug
%{?with_dist_kernel:%requires_releq_kernel_smp}
Requires(post,postun): /sbin/depmod
%description -n kernel-smp-net-ipw2200
This package contains Linux SMP kernel drivers for the Intel(R)
PRO/Wireless 2200 and 2915.
%description -n kernel-smp-net-ipw2200 -l pl
Ten pakiet zawiera sterowniki jądra Linuksa SMP dla kart Intel(R)
PRO/Wireless 2200 oraz 2915.
%prep
%setup -q
#sed -i 's:CONFIG_IPW_DEBUG=y::' Makefile
%build
# kernel module(s)
rm -rf built
mkdir -p built/{nondist,smp,up}
for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
exit 1
fi
rm -rf include
install -d include/{linux,config}
ln -sf %{_kernelsrcdir}/config-$cfg .config
ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
%if %{without dist_kernel}
ln -sf %{_kernelsrcdir}/scripts
%endif
touch include/config/MARKER
%{__make} -C %{_kernelsrcdir} clean \
RCS_FIND_IGNORE="-name '*.ko' -o" \
M=$PWD O=$PWD \
%{?with_verbose:V=1}
%{__make} -C %{_kernelsrcdir} modules \
CC="%{__cc}" CPP="%{__cpp}" \
M=$PWD O=$PWD \
%{?with_verbose:V=1}
mv *.ko built/$cfg
done
%install
rm -rf $RPM_BUILD_ROOT
cd built
install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/drivers/net/wireless
install %{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}/*.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/net/wireless
%if %{with smp} && %{with dist_kernel}
install smp/*.ko \
$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/wireless
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%post -n kernel-net-ipw2200
%depmod %{_kernel_ver}
%postun -n kernel-net-ipw2200
%depmod %{_kernel_ver}
%post -n kernel-smp-net-ipw2200
%depmod %{_kernel_ver}smp
%postun -n kernel-smp-net-ipw2200
%depmod %{_kernel_ver}smp
%files -n kernel-net-ipw2200
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}/kernel/drivers/net/wireless/ipw2200.ko*
%if %{with smp} && %{with dist_kernel}
%files -n kernel-smp-net-ipw2200
%defattr(644,root,root,755)
/lib/modules/%{_kernel_ver}smp/kernel/drivers/net/wireless/ipw2200.ko*
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log: ipw2200.spec,v $
Revision 1.23 2005/07/15 15:00:48 shadzik w atwa.us
- updated md5sum
Revision 1.22 2005/07/15 15:00:48 shadzik w atwa.us
- up to 1.0.6
- new R ieee80211
- some clean ups
Revision 1.21 2005/06/03 06:41:48 zawadaa
- strict firmware version
- STBR
Revision 1.20 2005/05/21 20:56:02 averne
- rel 2
Revision 1.19 2005/05/17 22:16:53 zawadaa
- up to 1.0.4
- monitor mode now works: sniff, sniff ;-)
Revision 1.18 2005/05/11 17:05:48 qboosh
- use x8664 macro
Revision 1.17 2005/04/21 14:58:05 zawadaa
- up to 1.0.3
- STBR
Revision 1.16 2005/03/27 10:13:35 havner
- rel 3
Revision 1.15 2005/03/27 10:13:16 havner
- removed hostap prereq, can someone care to explain me why only smp
requires hostap (and in UP version) while up and whole ipw2100 doesn't
Revision 1.14 2005/03/25 19:08:38 havner
- rel 2
Revision 1.13 2005/03/25 18:54:29 zawadaa
- dist_kernel build fix - proper? - if yes then STBR
Revision 1.12 2005/03/25 17:57:27 qboosh
- don't use belnet.dl, it isn't browsable
Revision 1.11 2005/03/25 16:14:17 zawadaa
- up to 1.0.2, clean ups
- dl. sucks, STBR
Revision 1.10 2005/02/08 22:38:31 zawadaa
- update to 1.0.1
Revision 1.9 2005/02/02 00:39:27 zawadaa
- update to 1.0.0
- now this driver has status - stable
Revision 1.8 2005/01/29 09:04:08 zawadaa
- update to 0.22
Revision 1.7 2005/01/19 22:27:57 zawadaa
- update to 0.21
- set ExclusiveArch to %{ix86} amd64
- builds and works
- STBR
Revision 1.6 2004/12/22 12:21:10 qboosh
- workaround for sf
Revision 1.5 2004/12/21 01:14:16 zawadaa
- bad md5 sorry
Revision 1.4 2004/12/21 01:00:12 zawadaa
- up to 0.19
Revision 1.3 2004/10/08 08:38:33 qboosh
- unconditional BR kernel-source is bogus
Revision 1.2 2004/10/06 07:44:28 arekm
- update from zawadaa
Revision 1.1 2004/10/02 21:46:08 arekm
- new from zawadaa
- based on ipw2100.spec by pbern
Więcej informacji o liście dyskusyjnej pld-devel-pl