summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
committerNicolas Vigier <boklm@mageia.org>2013-04-14 13:46:12 +0000
commit1be510f9529cb082f802408b472a77d074b394c0 (patch)
treeb175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj
parentfa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff)
downloadarchives-master.tar
archives-master.tar.gz
archives-master.tar.bz2
archives-master.tar.xz
archives-master.zip
Add zarb MLs html archivesHEADmaster
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj')
-rw-r--r--zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj60
1 files changed, 60 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj b/zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj
new file mode 100644
index 000000000..e52de24ba
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20120414/53cc8757/attachment-0019.obj
@@ -0,0 +1,60 @@
+%define git 1
+%define gitdate 20111031
+%define modname acpi_call
+
+Name: dkms-%{modname}
+Summary: A kernel module that enables you to call ACPI methods
+Group: System/Kernel and hardware
+Version: 0.1
+Release: %mkrel 2
+URL: https://github.com/Bumblebee-Project/acpi_call
+License: GPL
+# source from git repo git://github.com/Bumblebee-Project/acpi_call.git
+Source0: %{modname}-%{!?git:%{version}}%{?git:%{gitdate}}.tar.xz
+BuildArch: noarch
+Requires: dkms
+
+%description
+A kernel module that enables you to call ACPI methods by writing the
+method name followed by arguments to /proc/acpi/call.
+
+%files
+%doc README
+%{_usrsrc}/%{modname}-%{version}-%{release}/*
+
+%post
+/usr/sbin/dkms add -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade &&
+/usr/sbin/dkms build -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade &&
+/usr/sbin/dkms install -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade --force
+true
+/sbin/modprobe %{modname}
+
+%preun
+dkms remove --binary -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade --all
+true
+
+#--------------------------------------------------------------------
+%prep
+%setup -q%{?git:n %{modname}}
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p -m755 %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}
+cp -a * %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}
+# DKMS config
+cat > %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}/dkms.conf << 'EOF'
+PACKAGE_NAME="%{modname}"
+PACKAGE_VERSION="%{version}-%{release}"
+BUILT_MODULE_NAME[0]="%{modname}"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/acpi"
+AUTOINSTALL="yes"
+EOF
+
+%changelog
+* Mon Mar 19 2012 Simple <simplew8@gmailcom> 1.0-2
+- set with mageia dkms policy
+- use versioned source
+
+* Mon Mar 19 2012 Simple <simplew8@gmailcom> 1.0-1
+- initial package \ No newline at end of file