Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:frostmyname:bumblebee3
bumblebee3
bumblebee.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bumblebee.spec of Package bumblebee3
Name: bumblebee License: GPL Summary: NVidia Optimus support for GNU/Linux aimed at stability Group: Hardware/Other Version: 3.0 Release: 0 URL: https://github.com/Bumblebee-Project/bumblebee BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %name-%{version}.tar.gz Source1: bumblebeed.handler %if 0%{?suse_version} BuildRequires: pwdutils Requires: pwdutils %else BuildRequires: shadow-utils Requires: shadow-utils %endif BuildRequires: module-init-tools pciutils sudo pkg-config BuildRequires: xorg-x11-libX11-devel glib2-devel libbsd0 libbsd-devel Requires: module-init-tools pciutils sudo Requires: libturbojpeg VirtualGL bbswitch xorg-x11-libX11 libbsd0 %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 # extract the source and go into the bumblebee-3.0 directory %setup -q %build ./configure --prefix=/usr --sysconfdir=/etc \ CONF_DRIVER=nouveau CONF_DRIVER_MODULE_NVIDIA=nvidia \ CONF_LDPATH_NVIDIA=/usr/lib64/nvidia:/usr/lib/nvidia # do compile make %install # install all files into the BuildRoot make DESTDIR=$RPM_BUILD_ROOT install install -d 755 %{buildroot}/etc/init.d install -m 755 %{SOURCE1} %{buildroot}/etc/init.d/bumblebeed rm -rf %{buildroot}/usr/share/man %clean # clean up the hard disc after build rm -rf $RPM_BUILD_ROOT %post # # Install only # %if 0%{?suse_version} if [ "$1" == "1" ] ; then ln -sf /etc/init.d/bumblebeed /usr/sbin/rcbumblebeed chkconfig bumblebeed on fi %endif # # Install or upgrade # # # Update user rights # if [ "`grep bumblebee /etc/group`" == "" ] ; then groupadd bumblebee fi # # Setup BUSID and XORGMODULEPATH # ARCH=`uname -m` if [ "$ARCH" == "x86_64" ] ; then XORGMODULEPATH="/usr/lib64/nvidia/xorg/modules/updates,/usr/lib64/xorg/modules/updates,/usr/lib64/xorg/modules" else XORGMODULEPATH="/usr/lib/nvidia/xorg/modules/updates,/usr/lib/xorg/modules/updates,/usr/lib/xorg/modules" fi if [ -n "$XORGMODULEPATH" ] ; then sed -i "s?^\([ \t]*XorgModulePath[ \t]*\)\".*?\1\"$XORGMODULEPATH\"?g" /etc/bumblebee/bumblebee.conf fi NVIDIABUSID="PCI:`lspci -d 10de: -n | grep '030[02]:' | cut -d' ' -f1 | tr . :`" if [ -n "$NVIDIABUSID" ] ; then sed -i "s?^\([ \t]*BusID[ \t]*\)\".*?\1\"$NVIDIABUSID\"?g" /etc/bumblebee/xorg.conf.nvidia sed -i "s?^\([ \t]*BusID[ \t]*\)\".*?\1\"$NVIDIABUSID\"?g" /etc/bumblebee/xorg.conf.nouveau fi %preun %if 0%{?suse_version} if [ "$1" == "0" ] ; then chkconfig bumblebeed off fi %endif %postun # # Uninstall only # if [ "$1" == "0" ] ; then %if 0%{?suse_version} rm -f /usr/sbin/rcbumblebeed # # Undo the Full 3D hack for the repository only if the nVidia driver is not installed # # Effects when uninstalling while nVidia still present: # Upsidedown image on the Intel X server # Glx will not work # if [ ! -f /usr/bin/nvidia-xconfig ] ; then ARCH=`uname -m` if [ "$ARCH" == "x86_64" ] ; then rm -rf /usr/X11R6/lib-nvidia rm -rf /usr/X11R6/lib64-nvidia rm -rf /usr/lib64/xorg-nvidia else rm -rf /usr/X11R6/lib-nvidia rm -rf /usr/lib/xorg-nvidia fi fi %endif if [ "`grep bumblebee /etc/group`" != "" ] ; then groupdel bumblebee fi fi %files %defattr(-,root,root) /etc/bumblebee %config /etc/bumblebee/xorg.conf.nouveau %config /etc/bumblebee/xorg.conf.nvidia %config /etc/bumblebee/bumblebee.conf /etc/init.d/bumblebeed %config /etc/bash_completion.d/bumblebee /usr/share/doc/bumblebee /usr/sbin/bumblebeed /usr/bin/optirun /usr/bin/bumblebee-bugreport %changelog * Tue Jan 24 2012 frostmyname@gmail.com - first package version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor