SPECS: madwifi-hal.spec (NEW) - madwifi-hal line of the madwifi drivers, ba...
mguevara
mguevara at pld-linux.org
Fri Sep 5 13:43:57 CEST 2008
Author: mguevara Date: Fri Sep 5 11:43:57 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- madwifi-hal line of the madwifi drivers, based on madwifi-ng spec
---- Files affected:
SPECS:
madwifi-hal.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/madwifi-hal.spec
diff -u /dev/null SPECS/madwifi-hal.spec:1.1
--- /dev/null Fri Sep 5 13:43:57 2008
+++ SPECS/madwifi-hal.spec Fri Sep 5 13:43:51 2008
@@ -0,0 +1,209 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without dist_kernel # allow non-distribution kernel
+%bcond_without kernel # don't build kernel modules
+%bcond_without userspace # don't build userspace module
+%bcond_with verbose # verbose build (V=1)
+#
+%define snap_year 2008
+%define snap_month 09
+%define snap_day 03
+%define snap %{snap_year}%{snap_month}%{snap_day}
+%define snapdate %{snap_year}-%{snap_month}-%{snap_day}
+%define prel 0.%{snap}.%{rel}
+%define trunk r3861
+
+%define rel 0.1
+
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine with_userspace
+%endif
+
+%define pname madwifi-hal
+%define relhal 0.10.5.6
+
+Summary: Atheros WiFi card driver
+Summary(pl.UTF-8): Sterownik karty radiowej Atheros
+Name: %{pname}%{_alt_kernel}
+Version: 0
+Release: %{prel}
+License: GPL/BSD (partial source)
+Group: Base/Kernel
+Provides: madwifi
+Obsoletes: madwifi
+Source0: http://snapshots.madwifi.org/%{pname}-%{relhal}/%{pname}-%{relhal}-%{trunk}-%{snap}.tar.gz
+# Source0-md5: c602e13f95b966c754188b094f24186e
+# http://patches.aircrack-ng.org/madwifi-ng-r3745.patch
+Patch0: %{pname}-r3745.patch
+# needed when build against (more noisy) pax enabled kernel
+Patch1: %{pname}-makefile-werror.patch
+# http://madwifi.org/ticket/617
+Patch2: %{pname}-ticket-617.patch
+Patch3: %{pname}-ieee80211-skb-update.patch
+URL: http://www.madwifi.org/
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires: rpmbuild(macros) >= 1.379
+%endif
+ExclusiveArch: alpha arm %{ix86} %{x8664} mips powerpc ppc sparc sparcv9 sparc64 xscale
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define _enable_debug_packages 0
+%endif
+
+%description
+Atheros WiFi card driver. Supports Virtual APs and WDS Mode. It uses
+binary HAL and supports AR5210, AR5211, AR5212, RF5111, RF5112, RF2413
+and RF5413 cards.
+
+%description -l pl.UTF-8
+Sterownik karty radiowej Atheros. Wspiera tryb wirtualnego AP oraz
+tryb WDS. Używa binarnej wersji HAL i obsługuje karty z układami
+AR5210, AR5211, AR5212, RF5111, RF5112, RF2413 i RF5413.
+
+%package devel
+Summary: Header files for madwifi
+Summary(pl.UTF-8): Pliki nagłówkowe dla madwifi
+Group: Development/Libraries
+Provides: madwifi-devel
+Obsoletes: madwifi-devel
+
+%description devel
+Header files for madwifi.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla madwifi.
+
+%package -n kernel%{_alt_kernel}-net-madwifi-hal
+Summary: Linux driver for Atheros cards
+Summary(pl.UTF-8): Sterownik dla Linuksa do kart Atheros
+Release: %{prel}@%{_kernel_ver_str}
+Group: Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun): %releq_kernel
+Obsoletes: kernel-smp-net-madwifi-hal
+%endif
+
+%description -n kernel%{_alt_kernel}-net-madwifi-hal
+This is driver for Atheros card for Linux.
+
+This package contains Linux module.
+
+%description -n kernel%{_alt_kernel}-net-madwifi-hal -l pl.UTF-8
+Sterownik dla Linuksa do kart Atheros.
+
+Ten pakiet zawiera moduł jądra Linuksa.
+
+%prep
+%setup -q -n %{pname}-%{relhal}-%{trunk}-%{snap}
+# airckrack-ng
+%patch0 -p1
+# werror
+%patch1 -p1
+# fix - ticket 617
+%patch2 -p1
+%patch3 -p1
+
+%build
+%if %{with userspace}
+%{__make} -C tools \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ KERNELCONF="%{_kernelsrcdir}/config-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}"
+%endif
+
+%ifarch alpha %{ix86} %{x8664}
+%define target %{_target_base_arch}-elf
+%endif
+%ifarch sparc sparcv9 sparc64
+%define target %{_target_base_arch}-be-elf
+%endif
+%ifarch powerpc ppc
+%define target powerpc-be-elf
+%endif
+
+%if %{with kernel}
+# kernel module(s)
+
+# default is ath_rate_sample now compiles, _onoe does not
+%define modules_ath ath/ath_pci,ath_hal/ath_hal,ath_rate/sample/ath_rate_sample
+%define modules_wlan net80211/wlan,net80211/wlan_{wep,xauth,acl,ccmp,tkip,scan_{ap,sta}}
+%define modules %{modules_ath},%{modules_wlan}
+
+%define opts TARGET=%{target} KERNELPATH="%{_kernelsrcdir}" KERNELCONF="%{_kernelsrcdir}/config-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}" TOOLPREFIX=
+
+%{__make} %{opts} svnversion.h
+%build_kernel_modules -c -m %{modules} %{opts} <<'EOF'
+find -name "*.o" | xargs -r rm
+ln -sf ../Makefile.inc o/Makefile.inc
+EOF
+
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+%{__make} install-tools \
+ TARGET=%{target} \
+ KERNELCONF="%{_kernelsrcdir}/config-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}" \
+ KERNELPATH="%{_kernelsrcdir}" \
+ DESTDIR=$RPM_BUILD_ROOT \
+ BINDIR=%{_bindir} \
+ MANDIR=%{_mandir}
+
+install -d $RPM_BUILD_ROOT%{_includedir}/madwifi/net80211
+install -d $RPM_BUILD_ROOT%{_includedir}/madwifi/include/sys
+install net80211/*.h $RPM_BUILD_ROOT%{_includedir}/madwifi/net80211
+install include/*.h $RPM_BUILD_ROOT%{_includedir}/madwifi/include
+install include/sys/*.h $RPM_BUILD_ROOT%{_includedir}/madwifi/include/sys
+%endif
+
+%if %{with kernel}
+%install_kernel_modules -m %{modules} -d kernel/net
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -n kernel%{_alt_kernel}-net-madwifi-hal
+%depmod %{_kernel_ver}
+
+%postun -n kernel%{_alt_kernel}-net-madwifi-hal
+%depmod %{_kernel_ver}
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc COPYRIGHT README
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man8/*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/madwifi
+%endif
+
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-net-madwifi-hal
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/kernel/net/*.ko*
+%endif
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/09/05 11:43:51 mguevara
+- madwifi-hal line of the madwifi drivers, based on madwifi-ng spec
+
+
================================================================
More information about the pld-cvs-commit
mailing list