X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=acx.spec;h=ca018721f5557e728456a775f35955c85a63aac4;hb=061a37f3fb75efc1957889af54436efd42b2b074;hp=0a19728d9ffffc68169783b8bfab3fa8c9ba2c98;hpb=eb6f05128fd48971020a68939f83349105d4cabe;p=packages%2Facx.git diff --git a/acx.spec b/acx.spec index 0a19728..ca01872 100644 --- a/acx.spec +++ b/acx.spec @@ -1,24 +1,25 @@ # # Conditional build: %bcond_without dist_kernel # without distribution kernel +%bcond_without smp # don't build SMP module +# +# TODO: +# - add firmware download? # Summary: Linux driver for WLAN card base on ACX100 Summary(pl): Sterownik dla Linuksa do kart bezprzewodowych na uk³adzie ACX100 -Name: kernel-net-acx100 -Version: 0.2.0pre8_plus_fixes_13 +Name: acx100 +Version: 0.2.0pre8_plus_fixes_51 %define _rel 1 -Release: %{_rel}@%{_kernel_ver_str} +Release: %{_rel} License: MPL or GPL Group: Base/Kernel -Source0: http://rhlx01.fht-esslingen.de/~andi/acx100/acx100-%{version}.tar.bz2 -#Source0-MD5: 4daf538ed007ac4181c952703223e556 -URL: http://acx100.sourcefroge.net/index.html -%{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4.0} +Source0: http://rhlx01.fht-esslingen.de/~andi/acx100/%{name}-%{version}.tar.bz2 +# Source0-md5: 22b5b5249ae60c152b7f5e1e9d812521 +URL: http://acx100.sourceforge.net/ +%{?with_dist_kernel:BuildRequires: kernel-module-build >= 2.6.3} BuildRequires: %{kgcc_package} BuildRequires: rpmbuild(macros) >= 1.118 -%{?with_dist_kernel:%requires_releq_kernel_up} -Requires(post,postun): /sbin/depmod -Obsoletes: kernel-net-acx100 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -27,9 +28,24 @@ This is driver for WLAN card based on ACX100 for Linux. %description -l pl Sterownik dla Linuksa do kart WLAN opartych o uk³ad ACX100. +%package -n kernel-net-acx100 +Summary: Linux driver for WLAN card base on ACX100 +Summary(pl): Sterownik dla Linuksa do kart bezprzewodowych na uk³adzie ACX100 +Release: %{_rel}@%{_kernel_ver_str} +Group: Base/Kernel +%{?with_dist_kernel:%requires_releq_kernel_up} +Requires(post,postun): /sbin/depmod + +%description -n kernel-net-acx100 +This is driver for WLAN card based on ACX100 for Linux. + +%description -n kernel-net-acx100 -l pl +Sterownik dla Linuksa do kart WLAN opartych o uk³ad ACX100. + %package -n kernel-smp-net-acx100 Summary: Linux SMP driver for WLAN card base on ACX100 Summary(pl): Sterownik dla Linuksa SMP do kart bezprzewodowych na uk³adzie ACX100 +Release: %{_rel}@%{_kernel_ver_str} Group: Base/Kernel %{?with_dist_kernel:%requires_releq_kernel_smp} Requires(post,postun): /sbin/depmod @@ -41,43 +57,63 @@ Linux SMP driver for WLAN card base on ACX100. Sterownik dla Linuksa SMP do kart bezprzewodowych na uk³adzie ACX100. %prep -%setup -q -n acx100-%{version} +%setup -q + +%define buildconfigs %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist} %build -cat > config.mk <