summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment-0010.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/20120410/da488c0d/attachment-0010.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/20120410/da488c0d/attachment-0010.obj')
-rw-r--r--zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment-0010.obj50
1 files changed, 50 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment-0010.obj b/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment-0010.obj
new file mode 100644
index 000000000..9ffc1f7ab
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment-0010.obj
@@ -0,0 +1,50 @@
+%define oname bbswitch
+
+Name: dkms-%{oname}
+Summary: bbswitch - Optimus GPU power switcher
+Group: System/Kernel and hardware
+Version: 0.4.1
+Release: %mkrel 1
+License: GPLv3
+URL: https://github.com/Bumblebee-Project/bbswitch
+# source from git repo git://github.com/Bumblebee-Project/bbswitch.git
+Source0: %{oname}.tar.xz
+BuildArch: noarch
+Requires(post): dkms
+Requires(preun):dkms
+
+%description
+bbswitch is a kernel module which automatically detects the required
+ACPI calls for two kinds of Optimus laptops. It has been verified to
+work with "real" Optimus and "legacy" Optimus laptops (at least, that
+is how I call them).
+
+%files
+%{_usrsrc}/%{oname}-%{version}/*
+
+%post
+set -x
+dkms add -m %{oname} -v %{version} --rpm_safe_upgrade || :
+dkms build -m %{oname} -v %{version} --rpm_safe_upgrade || :
+dkms install -m %{oname} -v %{version} --rpm_safe_upgrade || :
+/sbin/modprobe %{oname} || :
+
+%preun
+dkms remove --binary -m %{oname} -v %{version} --rpm_safe_upgrade --all || :
+/sbin/rmmod %{oname} || :
+
+
+%prep
+%setup -qn %{oname}
+sed -i 's/#MODULE_VERSION#/%{version}/g' dkms/dkms.conf
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_usrsrc}/%{oname}-%{version}
+cp *.c %{buildroot}%{_usrsrc}/%{oname}-%{version}
+cp Makefile %{buildroot}%{_usrsrc}/%{oname}-%{version}
+cp dkms/dkms.conf %{buildroot}%{_usrsrc}/%{oname}-%{version}/dkms.conf
+
+%changelog
+* Mon Mar 19 2012 Simple <simplew8@gmail.com> 0.4.1-1
+- initial package \ No newline at end of file