SPECS: kernel-misc-acerhk.spec - version 0.5.35, new URL, switched...

radek radek at pld-linux.org
Mon Mar 26 13:37:23 CEST 2007


Author: radek                        Date: Mon Mar 26 11:37:22 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- version 0.5.35, new URL, switched to new macros, SMP-only

---- Files affected:
SPECS:
   kernel-misc-acerhk.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/kernel-misc-acerhk.spec
diff -u SPECS/kernel-misc-acerhk.spec:1.12 SPECS/kernel-misc-acerhk.spec:1.13
--- SPECS/kernel-misc-acerhk.spec:1.12	Tue Feb 13 09:06:37 2007
+++ SPECS/kernel-misc-acerhk.spec	Mon Mar 26 13:37:17 2007
@@ -2,7 +2,6 @@
 #
 # Conditional build:
 %bcond_without	dist_kernel	# without distribution kernel
-%bcond_without	smp		# don't build SMP module
 #
 %define _rel		1
 %define _orig_name	acerhk
@@ -10,21 +9,23 @@
 Summary:	Linux driver for Acer notebook special Hot Keys
 Summary(pl.UTF-8):	Sterownik dla Linuksa obsługujący specjalne klawisze w notebookach Acer
 Name:		kernel-misc-%{_orig_name}
-Version:	0.5.33
+Version:	0.5.35
 Release:	%{_rel}@%{_kernel_ver_str}
 License:	GPL
 Group:		Base/Kernel
-Source0:	http://www.informatik.hu-berlin.de/~tauber/acerhk/archives/%{_orig_name}-%{version}.tgz
-# Source0-md5:	51221e791dc5c3dccd4d9c9fd42cb249
-URL:		http://www.informatik.hu-berlin.de/~tauber/acerhk/
+Source0:	http://www.cakey.de/acerhk/archives/%{_orig_name}-%{version}.tar.bz2
+# Source0-md5:	551285657c8ba338f23595af257d21df
+URL:		http://www.cakey.de/acerhk/
 BuildRequires:	%{kgcc_package}
 %{?with_dist_kernel:BuildRequires:	kernel-module-build >= 3:2.6.0}
 BuildRequires:	rpmbuild(macros) >= 1.118
-%{?with_dist_kernel:%requires_releq_kernel_up}
+%{?with_dist_kernel:%requires_releq_kernel}
 Requires(post,postun):	/sbin/depmod
 ExclusiveArch:	%{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define	modules	acerhk
+
 %description
 This is a Linux driver for Acer notebook special Hot Keys.
 
@@ -32,66 +33,16 @@
 Sterownik dla Linuksa pozwalający uaktywnić specjalne przyciski w
 notebookach Acer.
 
-%package -n kernel-smp-misc-%{_orig_name}
-Summary:	This is a Linux SMP driver for special Acer Hot Keys
-Summary(pl.UTF-8):	Sterownik dla Linuksa SMP obsługujący specjalne przyciski w notebookach Acer
-Release:	%{_rel}@%{_kernel_ver_str}
-Group:		Base/Kernel
-%{?with_dist_kernel:%requires_releq_kernel_smp}
-Requires(post,postun):	/sbin/depmod
-
-%description -n kernel-smp-misc-%{_orig_name}
-This is a Linux SMP driver for Acer notebook special Hot Keys.
-
-%description -n kernel-smp-misc-%{_orig_name} -l pl.UTF-8
-Sterownik dla Linuksa SMP pozwalający uaktywnić specjalne przyciski w
-notebookach Acer.
-
 %prep
 %setup -q -n %{_orig_name}-%{version}
 
 %build
-for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
-	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
-		exit 1
-	fi
-	install -d o/include/linux
-	ln -sf %{_kernelsrcdir}/config-$cfg o/.config
-	ln -sf %{_kernelsrcdir}/Module.symvers-$cfg o/Module.symvers
-	ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h o/include/linux/autoconf.h
-%if %{with dist_kernel}
-	%{__make} -j1 -C %{_kernelsrcdir} O=$PWD/o prepare scripts
-%else
-	install -d o/include/config
-	touch o/include/config/MARKER
-	ln -sf %{_kernelsrcdir}/scripts o/scripts
-%endif
-	%{__make} -C %{_kernelsrcdir} clean \
-		RCS_FIND_IGNORE="-name '*.ko' -o -name nv-kernel.o -o" \
-		SYSSRC=%{_kernelsrcdir} \
-		SYSOUT=$PWD/o \
-		M=$PWD O=$PWD/o \
-		%{?with_verbose:V=1}
-	%{__make} -C %{_kernelsrcdir} modules \
-		CC="%{__cc}" CPP="%{__cpp}" \
-		SYSSRC=%{_kernelsrcdir} \
-		SYSOUT=$PWD/o \
-		M=$PWD O=$PWD/o \
-		%{?with_verbose:V=1}
-
-	mv %{_orig_name}.ko %{_orig_name}-$cfg.ko
-done
+%build_kernel_modules -m %{modules}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/misc
-install %{_orig_name}-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
-	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/%{_orig_name}.ko
-%if %{with smp} && %{with dist_kernel}
-install %{_orig_name}-smp.ko \
-	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/%{_orig_name}.ko
-%endif
+%install_kernel_modules -m %{modules} -d misc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -102,12 +53,6 @@
 %postun	-n kernel-misc-%{_orig_name}
 %depmod %{_kernel_ver}
 
-%post	-n kernel-smp-misc-%{_orig_name}
-%depmod %{_kernel_ver}smp
-
-%postun	-n kernel-smp-misc-%{_orig_name}
-%depmod %{_kernel_ver}smp
-
 %files
 %defattr(644,root,root,755)
 %doc NEWS INSTALL README doc/*
@@ -126,6 +71,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2007/03/26 11:37:17  radek
+- version 0.5.35, new URL, switched to new macros, SMP-only
+
 Revision 1.12  2007/02/13 08:06:37  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/kernel-misc-acerhk.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list