summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Lee <cheeselee@fedoraproject.org>2012-02-16 13:28:56 +0800
committerRobin Lee <cheeselee@fedoraproject.org>2012-02-16 13:28:56 +0800
commit7d2cd2a9bb5aceef57c30996f44bcecde6a4087e (patch)
treebf349a3e946e4fd587cad188963ca3181f999c18
parentfbee03e4ccf8e640ad0a3c0c6559b49018e0e6f8 (diff)
downloadrpm-7d2cd2a9bb5aceef57c30996f44bcecde6a4087e.tar.gz
rpm-7d2cd2a9bb5aceef57c30996f44bcecde6a4087e.tar.xz
rpm-7d2cd2a9bb5aceef57c30996f44bcecde6a4087e.zip
bumblebee 3.0-4 from Mandriva
-rw-r--r--bumblebee/bumblebee.spec127
1 files changed, 127 insertions, 0 deletions
diff --git a/bumblebee/bumblebee.spec b/bumblebee/bumblebee.spec
new file mode 100644
index 0000000..92ccde7
--- /dev/null
+++ b/bumblebee/bumblebee.spec
@@ -0,0 +1,127 @@
+%define name bumblebee
+%define version 3.0
+%define release 3
+
+Name: %{name}
+Summary: Bumblebee - support for NVidia Optimus laptops on Linux!
+Version: %{version}
+Release: %{release}
+Source0: http://bumblebee-project.org/%{name}-%{version}.tar.gz
+Source1: bumblebee-mdv.tar.gz
+URL: http://bumblebee-project.org
+
+Group: System/Kernel and hardware
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+License: GPLv3
+Requires: x11-driver-video-nvidia-current VirtualGL dkms-bbswitch gettext
+BuildRequires: help2man X11-devel glib2-devel gettext
+BuildRequires: %{_lib}bsd-devel >= 0.2.0
+
+%description
+Bumblebee daemon is a rewrite of the original Bumblebee service, providing an elegant and stable means of managing Optimus hybrid graphics chipsets.
+A primary goal of this project is to not only enable use of the discrete GPU for rendering, but also to enable smart power management of the dGPU when it's not in use.
+
+%prep
+%setup -q -a1
+
+%build
+%configure CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia-current CONF_LDPATH_NVIDIA=/usr/lib64/nvidia-current:/usr/lib/nvidia-current CONF_MODPATH_NVIDIA=/usr/lib64/nvidia-current/xorg,/usr/lib/nvidia-current/xorg,/usr/lib64/xorg/extra-modules,/usr/lib64/xorg/modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules
+%make
+
+%install
+rm -rf %{buildroot}
+%makeinstall
+rm -f %{buildroot}/%{_datadir}/doc/bumblebee/README.markdown %{buildroot}/%{_datadir}/doc/bumblebee/RELEASE_NOTES_3_0
+mkdir -p %{buildroot}/etc/systemd/system
+cp scripts/systemd/bumblebeed.service %{buildroot}/etc/systemd/system/bumblebeed.service
+
+mv %{buildroot}/%{_bindir}/optirun %{buildroot}/%{_bindir}/optirun-bin
+install -m 0755 bumblebee-mdv/bin/bumblebee-add-groups %buildroot/%{_bindir}/bumblebee-add-groups
+install -m 0755 bumblebee-mdv/bin/optirun %buildroot/%{_bindir}/optirun
+
+mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions
+cp -a bumblebee-mdv/bin/bumblebee.add-groups.policy %{buildroot}/%{_datadir}/polkit-1/actions
+
+# translations
+find bumblebee-mdv/po/* -type d | \
+while read d
+do
+ lang=`basename $d`
+ mkdir -p %buildroot/%_datadir/locale/$lang/LC_MESSAGES
+ msgfmt -o %buildroot/%_datadir/locale/$lang/LC_MESSAGES/bumblebee-add-groups.mo $d/bumblebee-add-groups.po
+done
+
+#icons
+mkdir -p %{buildroot}/%{_iconsdir}
+cp bumblebee-mdv/bumblebee.png %{buildroot}/%{_iconsdir}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(0755,root,root)
+%doc README.markdown doc/RELEASE_NOTES_3_0
+%{_sysconfdir}/bash_completion.d/bumblebee
+%{_sysconfdir}/bumblebee/bumblebee.conf
+%{_sysconfdir}/bumblebee/xorg.conf.nouveau
+%{_sysconfdir}/bumblebee/xorg.conf.nvidia
+%{_sysconfdir}/systemd/system/bumblebeed.service
+%{_sbindir}/bumblebeed
+%{_bindir}/optirun
+%{_bindir}/optirun-bin
+%{_bindir}/bumblebee-add-groups
+%{_bindir}/bumblebee-bugreport
+%{_mandir}/man1/bumblebeed.1*
+%{_mandir}/man1/optirun.1*
+%{_iconsdir}/bumblebee.png
+%{_localedir}/*
+%{_datadir}/polkit-1/actions/bumblebee.add-groups.policy
+
+%pre
+# Add bumblebee group
+
+ if getent group bumblebee > /dev/null
+ then
+ : # group already exists
+ else
+ groupadd -r bumblebee 2>/dev/null || :
+ fi
+
+%post
+update-alternatives --set gl_conf /etc/ld.so.conf.d/GL/standard.conf
+systemctl enable bumblebeed.service
+systemctl start bumblebeed.service
+
+%postun
+groupdel bumblebee
+
+
+%changelog
+* Thu Feb 09 2012 Александр Казанцев <kazancas@mandriva.org> 3.0-3
++ Revision: 772318
+- add gettext to requires and fix optirun call with all CL args
+- fix spec for correct adding group and move script to %%pre section and delete group with %%postin section
+- move optirun to optirun-bin
+- add optirun script wich check adding current user to bumblebe group on start and say about this user.
+ If group found, then optirun script running optirun-bin with $1 data.
+- add localization mechanism to script.
+- Updated to the 3.0 release
+
+* Wed Jan 18 2012 Александр Казанцев <kazancas@mandriva.org> 2.99-3
++ Revision: 762167
+- fix group add. Not readd group bumblebee if present allready
+- Now auto-creates bumblebee group after install
+
+* Tue Jan 17 2012 Александр Казанцев <kazancas@mandriva.org> 2.99-2
++ Revision: 762044
+- add libbsd-devel as BR
+- add glib-2.0-devel to BR
+- imported package bumblebee
+
+
+* Mon Jan 16 2012 Jaron Viëtor <thulinma@thulinma.com> 2.99-2mdk
+- Improved systemd service file, daemon output now goes to dmesg
+- Added dkms-bbswitch requirement
+
+* Sun Jan 15 2012 Jaron Viëtor <thulinma@thulinma.com> 2.99-1mdk
+- Initial package