Author: glen                         Date: Sun May 18 15:39:24 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- alt kernel stuff

---- Files affected:
SPECS:
   template-kernel-module.spec (1.49 -> 1.50) 

---- Diffs:

================================================================
Index: SPECS/template-kernel-module.spec
diff -u SPECS/template-kernel-module.spec:1.49 
SPECS/template-kernel-module.spec:1.50
--- SPECS/template-kernel-module.spec:1.49      Sun Nov 25 15:10:20 2007
+++ SPECS/template-kernel-module.spec   Sun May 18 17:39:19 2008
@@ -1,7 +1,9 @@
 # $Revision$, $Date$
 #
-# Replace MODULE_NAME with real module name and MODULE_DIR
-# with required directory name.
+# Replace:
+# MODULE_NAME with real module name
+# MODULE_DIR with required directory name
+# PACKAGE_NAME with package name
 #
 # Conditional build:
 %bcond_without dist_kernel     # allow non-distribution kernel
@@ -12,11 +14,19 @@
 %if %{without kernel}
 %undefine      with_dist_kernel
 %endif
+%if "%{_alt_kernel}" != "%{nil}"
+%undefine      with_userspace
+%endif
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define                _enable_debug_packages  0
+%endif
 
 #
 # main package.
 #
 %define                rel     0.1
+%define                pname   PACKAGE_NAME
 Summary:       -
 Summary(pl.UTF-8):     -
 Name:          -
@@ -25,11 +35,11 @@
 Epoch:         0
 #License:      - (enter GPL/LGPL/BSD/BSD-like/other license name here)
 Group:         -
-Source0:       %{name}-%{version}.tar.gz
+Source0:       %{pname}-%{version}.tar.gz
 # Source0-md5: -
 #Source1:      -
 # Source1-md5: -
-#Patch0:       %{name}-what.patch
+#Patch0:       %{pname}-what.patch
 #URL:          -
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 
3:2.6.20.2}
@@ -73,6 +83,8 @@
 Ten pakiet zawiera moduł jądra Linuksa.
 
 %prep
+%setup -q -n %{pname}-%{version}
+
 # prepare makefile:
 cat > path/to/dir/Makefile << EOF
 
@@ -158,6 +170,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.50  2008-05-18 15:39:19  glen
+- alt kernel stuff
+
 Revision 1.49  2007-11-25 14:10:20  qboosh
 - use just rel, no point in prefixing local macros with underscore
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/template-kernel-module.spec?r1=1.49&r2=1.50&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to