SPECS: kernel-misc-acer_acpi.spec (NEW) - inital

tiwek tiwek at pld-linux.org
Mon Jun 26 11:17:07 CEST 2006


Author: tiwek                        Date: Mon Jun 26 09:17:07 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- inital

---- Files affected:
SPECS:
   kernel-misc-acer_acpi.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/kernel-misc-acer_acpi.spec
diff -u /dev/null SPECS/kernel-misc-acer_acpi.spec:1.1
--- /dev/null	Mon Jun 26 11:17:07 2006
+++ SPECS/kernel-misc-acer_acpi.spec	Mon Jun 26 11:16:58 2006
@@ -0,0 +1,130 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	dist_kernel	# without distribution kernel
+%bcond_without	smp		# don't build SMP module
+#
+%define _rel		1
+%define _orig_name	acer_acpi
+
+Summary:	Linux driver for Acer notebook hardware control
+Summary(pl):	Sterownik dla Linuksa do kontroli urządzeń w notebookach Acer
+Name:		kernel-misc-%{_orig_name}
+Version:	0.3
+Release:	%{_rel}@%{_kernel_ver_str}
+License:	GPL
+Group:		Base/Kernel
+Source0:	http://www.archernar.co.uk/acer_acpi/acer_acpi-%{version}.tar.gz
+# Source0-md5:	4971a569800757b87041bc542f675743
+URL:		http://www.archernar.co.uk/
+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}
+Requires(post,postun):	/sbin/depmod
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Linux kernel module to allow control of some of the hardware on later
+model Acer (and other Wistron OEM) laptops.
+
+%description -l pl
+Sterownik dla Linuksa do kontroli urządzeń w notebookach Acer
+
+%package -n kernel-smp-misc-%{_orig_name}
+Summary:	SMP linux driver for Acer notebook hardware control
+Summary(pl):	Sterownik dla Linuksa SMP do kontroli urządzeń 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}
+Linux SMP kernel module to allow control of some of the hardware on
+later model Acer (and other Wistron OEM) laptops.
+
+%description -n kernel-smp-misc-%{_orig_name} -l pl
+Sterownik dla Linuksa SMP do kontroli urządzeń 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} -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
+
+%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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n kernel-misc-%{_orig_name}
+%depmod %{_kernel_ver}
+
+%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
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+
+%if %{with smp}
+%files -n kernel-smp-misc-%{_orig_name}
+%defattr(644,root,root,755)
+%doc NEWS INSTALL README
+/lib/modules/%{_kernel_ver}smp/misc/*.ko*
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/06/26 09:16:58  tiwek
+- inital
+
================================================================


More information about the pld-cvs-commit mailing list