[packages/acpi_call] Init commit

sls sls at pld-linux.org
Sat Sep 21 17:27:23 CEST 2013


commit 3d28cc107d4cb13abe30ebe06d5cb5057b23d646
Author: Szymon Siwek <sls at pld-linux.org>
Date:   Sat Sep 21 17:17:35 2013 +0200

    Init commit

 acpi_call.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)
---
diff --git a/acpi_call.spec b/acpi_call.spec
new file mode 100644
index 0000000..f2eccc2
--- /dev/null
+++ b/acpi_call.spec
@@ -0,0 +1,86 @@
+#
+# Conditional build:
+%bcond_without	dist_kernel	# allow non-distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_without	userspace	# don't build userspace programs
+%bcond_with	verbose		# verbose build (V=1)
+
+%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.3
+%define		pname	acpi_call
+%define		snap	20130705
+Summary:	A linux kernel module that enables calls to ACPI methods through /proc/acpi/call
+Name:		acpi_call%{_alt_kernel}
+Version:	%{snap}
+Release:	0.%{snap}.%{rel}
+License:	GPL v2
+Group:		Base/Kernel
+# snap from "git clone https://github.com/mkottman/acpi_call.git"
+Source0:	%{name}-%{version}.tar.gz
+# Source0-md5:	f4eb8bb4d4413a5ae65aa7d77f4112c0
+URL:		https://github.com/mkottman/acpi_call
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
+BuildRequires:	rpmbuild(macros) >= 1.379
+%endif
+ExclusiveArch:	%{ix86} %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A linux kernel module that enables calls to ACPI methods through
+/proc/acpi/call
+
+%package -n kernel%{_alt_kernel}-misc-acpi_call
+Summary:	A linux kernel module that enables calls to ACPI methods through /proc/acpi/call
+Release:	0.%{snap}.%{rel}@%{_kernel_ver_str}
+Group:		Base/Kernel
+Requires(post,postun):	/sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun):	%releq_kernel
+%endif
+
+%description -n kernel%{_alt_kernel}-misc-acpi_call
+A linux kernel module that enables calls to ACPI methods through
+/proc/acpi/call
+
+%prep
+%setup -q -n acpi_call
+
+%build
+%if %{with kernel}
+%build_kernel_modules -m acpi_call
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%install_kernel_modules -m acpi_call -d misc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n kernel%{_alt_kernel}-misc-acpi_call
+%depmod %{_kernel_ver}
+
+%postun	-n kernel%{_alt_kernel}-misc-acpi_call
+%depmod %{_kernel_ver}
+
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-misc-acpi_call
+%defattr(644,root,root,755)
+%doc README.md
+/lib/modules/%{_kernel_ver}/misc/*.ko*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/acpi_call.git/commitdiff/3d28cc107d4cb13abe30ebe06d5cb5057b23d646



More information about the pld-cvs-commit mailing list