From: Jakub Bogusz Date: Wed, 18 Feb 2004 14:00:54 +0000 (+0000) Subject: - UP/SMP, fixed build with non-running kernel. other unifications X-Git-Tag: auto/ac/kernel-net-acx100-0_2_0pre8_plus_fixes_18-2~10 X-Git-Url: http://git.pld-linux.org/?p=packages%2Facx.git;a=commitdiff_plain;h=6e99d858d7ebc036cd31035e81a030a6496d9572 - UP/SMP, fixed build with non-running kernel. other unifications Changed files: acx.spec -> 1.10 --- diff --git a/acx.spec b/acx.spec index 217f616..9fa6471 100644 --- a/acx.spec +++ b/acx.spec @@ -1,25 +1,22 @@ # # Conditional build: -# _without_dist_kernel without distribution kernel +%bcond_without dist_kernel # without distribution kernel # -# TODO: -# - UP/SMP scheme, pass CC and CFLAGS -%define _orig_name acx100_pci - 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.0pre6_plus_fixes_7 -%define _rel 0.1 +%define _rel 1 Release: %{_rel}@%{_kernel_ver_str} -License: GPL +License: MPL or GPL Group: Base/Kernel Source0: http://rhlx01.fht-esslingen.de/~andi/acx100/acx100-%{version}.tar.bz2 # Source0-md5: d03a9252ad411bd77eeb508a34bca8bd URL: http://acx100.sourcefroge.net/index.html -%{!?_without_dist_kernel:BuildRequires: kernel-headers >= 2.4.0}} +%{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4.0} +BuildRequires: %{kgcc_package} BuildRequires: rpmbuild(macros) >= 1.118 -%{!?_without_dist_kernel:%requires_releq_kernel_up} +%{?with_dist_kernel:%requires_releq_kernel_up} Requires(post,postun): /sbin/depmod Obsoletes: kernel-net-acx100 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -30,16 +27,48 @@ 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-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 +Group: Base/Kernel +%{?with_dist_kernel:%requires_releq_kernel_smp} +Requires(post,postun): /sbin/depmod + +%description -n kernel-smp-net-acx100 +Linux SMP driver for WLAN card base on ACX100. + +%description -n kernel-smp-net-acx100 -l pl +Sterownik dla Linuksa SMP do kart bezprzewodowych na uk³adzie ACX100. + %prep -%setup -q -c +%setup -q -n acx100-%{version} %build -%{__make} -C acx100-%{version} +cat > config.mk <