SPECS (Titanium): madwifi-ng.spec - disable userspace for alt_kern...

hawk hawk at pld-linux.org
Tue Jan 22 00:39:59 CET 2008


Author: hawk                         Date: Mon Jan 21 23:39:59 2008 GMT
Module: SPECS                         Tag: Titanium
---- Log message:
- disable userspace for alt_kernels
- suffix src package with alt kernel if present

---- Files affected:
SPECS:
   madwifi-ng.spec (1.63 -> 1.63.2.1) 

---- Diffs:

================================================================
Index: SPECS/madwifi-ng.spec
diff -u SPECS/madwifi-ng.spec:1.63 SPECS/madwifi-ng.spec:1.63.2.1
--- SPECS/madwifi-ng.spec:1.63	Tue Jan 22 00:22:44 2008
+++ SPECS/madwifi-ng.spec	Tue Jan 22 00:39:54 2008
@@ -6,7 +6,6 @@
 %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	2007
 %define		snap_month	10
@@ -15,9 +14,16 @@
 %define		snapdate	%{snap_year}-%{snap_month}-%{snap_day}
 %define		_rel	0.%{snap}.7
 %define		trunk	r2799
+
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine	with_userspace
+%endif
+
+%define		pname	madwifi-ng
+
 Summary:	Atheros WiFi card driver
 Summary(pl.UTF-8):	Sterownik karty radiowej Atheros
-Name:		madwifi-ng
+Name:		%{pname}%{_alt_kernel}
 Version:	0
 Release:	%{_rel}
 License:	GPL/BSD (partial source)
@@ -25,14 +31,14 @@
 Provides:	madwifi
 Obsoletes:	madwifi
 # http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2362-20070522.tar.gz
-Source0:	http://snapshots.madwifi.org/madwifi-ng/%{name}-%{trunk}-%{snap}.tar.gz
+Source0:	http://snapshots.madwifi.org/madwifi-ng/%{pname}-%{trunk}-%{snap}.tar.gz
 # Source0-md5:	58fdb5d5acf73ccd4577f17fbd7c6a22
 # http://patches.aircrack-ng.org/madwifi-ng-r1886.patch
-Patch0:		%{name}-r1886.patch
+Patch0:		%{pname}-r1886.patch
 # needed when build against (more noisy) pax enabled kernel
-Patch1:		%{name}-makefile-werror.patch
+Patch1:		%{pname}-makefile-werror.patch
 # http://madwifi.org/ticket/617
-Patch2:		%{name}-ticket-617.patch
+Patch2:		%{pname}-ticket-617.patch
 URL:		http://www.madwifi.org/
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
@@ -88,7 +94,7 @@
 Ten pakiet zawiera moduĹ‚ jÄ
dra Linuksa.
 
 %prep
-%setup -q -n %{name}-%{trunk}-%{snap}
+%setup -q -n %{pname}-%{trunk}-%{snap}
 # airckrack-ng
 %patch0 -p1
 # werror
@@ -190,6 +196,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.63.2.1  2008-01-21 23:39:54  hawk
+- disable userspace for alt_kernels
+- suffix src package with alt kernel if present
+
 Revision 1.63  2008-01-21 23:22:44  hawk
 - release .7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/madwifi-ng.spec?r1=1.63&r2=1.63.2.1&f=u



More information about the pld-cvs-commit mailing list