X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=acx.spec;h=c252e64858333df97c868a6403d786b4b6cbb36c;hb=37d29bfceb51f5ca4f2920679a8e1fb114c17a9d;hp=0dad3d4c5327c145d8a8fede2dd407ff363a2014;hpb=1ff32b1ce7842bab0d184410654a843a70667124;p=packages%2Facx.git diff --git a/acx.spec b/acx.spec index 0dad3d4..c252e64 100644 --- a/acx.spec +++ b/acx.spec @@ -1,21 +1,27 @@ +# TODO: +# - add firmware download? # # Conditional build: %bcond_without dist_kernel # without distribution kernel +%bcond_without smp # don't build SMP module +# +%ifarch sparc +%undefine with_smp +%endif # Summary: Linux driver for WLAN card base on ACX100 Summary(pl): Sterownik dla Linuksa do kart bezprzewodowych na ukĀ³adzie ACX100 -Name: acx100 -Version: 0.2.0pre8_plus_fixes_18 -%define _rel 2 +Name: acx +Version: 20060215 +%define _rel 1 Release: %{_rel} License: MPL or GPL Group: Base/Kernel -Source0: http://rhlx01.fht-esslingen.de/~andi/acx100/%{name}-%{version}.tar.bz2 -#Source0-MD5: 430aa98bc3cc3e7ee0cb0e0c170f4f8c -URL: http://acx100.sourcefroge.net/index.html -%{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4.0} -BuildRequires: %{kgcc_package} -BuildRequires: rpmbuild(macros) >= 1.118 +Source0: http://195.66.192.167/linux/acx_patches/%{name}-%{version}.tar.bz2 +# Source0-md5: 95bcd5df2365dfcfc78169b0331f69a2 +URL: http://acx100.sourceforge.net/ +%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.3} +BuildRequires: rpmbuild(macros) >= 1.286 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -53,35 +59,71 @@ Linux SMP driver for WLAN card base on ACX100. Sterownik dla Linuksa SMP do kart bezprzewodowych na ukĀ³adzie ACX100. %prep -%setup -q +#setup -q -n %{name}-%{version} +cd $RPM_BUILD_DIR +install -d %{name}-%{version} +cd %{name}-%{version} +tar xfj %{SOURCE0} +/bin/chmod -Rf a+rX,u+w,g-w,o-w . + +%define buildconfigs %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist} %build -cat > config.mk <