/[packages]/backports/4/bumblebee/current/SPECS/bumblebee.spec
ViewVC logotype

Diff of /backports/4/bumblebee/current/SPECS/bumblebee.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 584592 by akien, Thu Feb 6 15:01:30 2014 UTC revision 585500 by akien, Fri Feb 7 20:39:24 2014 UTC
# Line 1  Line 1 
1  # Use nouveau driver by default  # Package should be built first against core, and then against nonfree
2  %bcond_with     nvidia  # The core build produces the bumblebee and bumblebee-nouveau RPMs,
3    # whereas the nonfree build produces the bumblebee-nvidia RPM
4    %if "%{?distro_section}" == "nonfree"
5    %define driver  nvidia
6    %else
7    %define driver  nouveau
8    %endif
9    
10  Name:           bumblebee  Name:           bumblebee
11  Summary:        Support for NVIDIA Optimus laptops on Linux  Summary:        Support for NVIDIA Optimus laptops on Linux
12  Group:          System/Kernel and hardware  Group:          System/Kernel and hardware
13  Version:        3.2.1  Version:        3.2.1
14  Release:        %mkrel 3  Release:        %mkrel 4
15  License:        GPLv3+  License:        GPLv3+
16  URL:            https://github.com/Bumblebee-Project/bumblebee  URL:            https://github.com/Bumblebee-Project/bumblebee
17  # source from git repo git://github.com/Bumblebee-Project/Bumblebee.git  # source from git repo git://github.com/Bumblebee-Project/Bumblebee.git
# Line 18  Requires(pre):  rpm-helper Line 24  Requires(pre):  rpm-helper
24  Requires(pre):  update-alternatives  Requires(pre):  update-alternatives
25  Requires(post): systemd-units  Requires(post): systemd-units
26  Requires(preun):systemd-units  Requires(preun):systemd-units
27    Requires:       %{name}-bin
28    # Default bumblebee bridge for general use (primus is an alternative bridge, designed for gaming performance)
29  Requires:       virtualgl  Requires:       virtualgl
30  Requires:       %mklibname virtualgl  Requires:       %mklibname virtualgl
31  # Suggests:     primus  # Suggests:     primus
 %if %{with nvidia}  
 Suggests:       x11-driver-video-nvidia-current  
 %else  
 Requires:       x11-driver-video-nouveau  
 %endif  
32  Requires:       kmod(bbswitch)  Requires:       kmod(bbswitch)
 # Seems broken with current kernels (maybe not needed anymore?)  
 # Requires:     kmod(acpi_call)  
33    
34  %description  %description
35  Bumblebee is an effort to make NVIDIA Optimus enabled laptops work in  Bumblebee is an effort to make NVIDIA Optimus enabled laptops work in
# Line 42  implementations (such as VirtualGL or pr Line 43  implementations (such as VirtualGL or pr
43  display that runs on the intergrated graphics. The ability to use discrete  display that runs on the intergrated graphics. The ability to use discrete
44  graphics depends on the driver: open source nouveau and proprietary nvidia.  graphics depends on the driver: open source nouveau and proprietary nvidia.
45    
46    %if "%{?distro_section}" != "nonfree"
47  %files  %files
48  %doc README.markdown doc/RELEASE_NOTES_3_2_1  %doc README.markdown doc/RELEASE_NOTES_3_2_1
49  %{_sysconfdir}/bash_completion.d/bumblebee  %{_sysconfdir}/bash_completion.d/bumblebee
50  %dir %{_sysconfdir}/bumblebee/  %dir %{_sysconfdir}/bumblebee/
 %config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf  
 %config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.d/10-dummy.conf  
51  %config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nouveau  %config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nouveau
52  %config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nvidia  %config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nvidia
53    %config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.d/10-dummy.conf
54  /lib/udev/rules.d/99-bumblebee-nvidia-dev.rules  /lib/udev/rules.d/99-bumblebee-nvidia-dev.rules
55  /lib/systemd/system/bumblebeed.service  /lib/systemd/system/bumblebeed.service
 %{_sbindir}/bumblebeed  
 %{_bindir}/optirun  
56  %{_bindir}/bumblebee-bugreport  %{_bindir}/bumblebee-bugreport
57  %{_mandir}/man1/bumblebeed.1.*  %{_mandir}/man1/bumblebeed.1.*
58  %{_mandir}/man1/optirun.1.*  %{_mandir}/man1/optirun.1.*
# Line 88  fi Line 87  fi
87  if [ "$1" -eq "0" ];then  if [ "$1" -eq "0" ];then
88    /usr/sbin/groupdel bumblebee    /usr/sbin/groupdel bumblebee
89  fi  fi
90    %endif
91    
92    %package        %{driver}
93    Summary:        Bumblebee configuration files and binaries for %{driver} driver
94    Group:          System/Kernel and hardware
95    Requires:       %{name} = %{version}
96    %if "%{?distro_section}" == "nonfree"
97    Requires:       nvidia
98    Conflicts:      %{name}-nouveau
99    %else
100    Requires:       x11-driver-video-nouveau
101    Conflicts:      %{name}-nvidia
102    %endif
103    Provides:       %{name}-bin
104    
105    %description    %{driver}
106    Bumblebee configuration files and binaries built against
107    the %{driver} driver.
108    
109    %files          %{driver}
110    %config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf
111    %{_sbindir}/bumblebeed
112    %{_bindir}/optirun
113    
114  #--------------------------------------------------------------------  #--------------------------------------------------------------------
115  %prep  %prep
# Line 95  fi Line 117  fi
117    
118  %build  %build
119  %configure2_5x \  %configure2_5x \
120  %if %{with nvidia}  %if "%{?distro_section}" == "nonfree"
121  CONF_DRIVER=nvidia \  CONF_DRIVER=nvidia \
122  CONF_DRIVER_MODULE_NVIDIA=nvidia-current \  CONF_DRIVER_MODULE_NVIDIA=nvidia-current \
123  %else  %else
124  CONF_DRIVER=nouveau \  CONF_DRIVER=nouveau \
125  %endif  %endif
126  %ifarch x86_64  %ifarch x86_64
127  CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \  CONF_LDPATH_NVIDIA=%{_libdir}/nvidia-current:%{_usr}/lib/nvidia-current \
128  CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia-current/xorg,%{_libdir}/nvidia-current/xorg,%{_usr}/lib/xorg/modules,%{_libdir}/xorg/modules,%{_usr}/lib/xorg/extra-modules,%{_libdir}/xorg/extra-modules  CONF_MODPATH_NVIDIA=%{_libdir}/nvidia-current/xorg,%{_usr}/lib/nvidia-current/xorg,%{_libdir}/xorg/modules,%{_usr}/lib/xorg/modules,%{_libdir}/xorg/extra-modules,%{_usr}/lib/xorg/extra-modules \
129  # CONF_PRIMUS_LD_PATH=%%{_usr}/lib/primus:%%{_libdir}/primus  # CONF_PRIMUS_LD_PATH=%%{_libdir}/primus:%%{_usr}/lib/primus
130  %else  %else
131  CONF_LDPATH_NVIDIA=%{_libdir}/nvidia-current \  CONF_LDPATH_NVIDIA=%{_libdir}/nvidia-current \
132  CONF_MODPATH_NVIDIA=%{_libdir}/nvidia-current/xorg,%{_libdir}/xorg/modules,%{_libdir}/xorg/extra-modules  CONF_MODPATH_NVIDIA=%{_libdir}/nvidia-current/xorg,%{_libdir}/xorg/modules,%{_libdir}/xorg/extra-modules
# Line 114  CONF_MODPATH_NVIDIA=%{_libdir}/nvidia-cu Line 136  CONF_MODPATH_NVIDIA=%{_libdir}/nvidia-cu
136  %make CFLAGS="%{optflags}"  %make CFLAGS="%{optflags}"
137    
138  %install  %install
139    %if "%{?distro_section}" == "nonfree"
140    install -D -m644 conf/bumblebee.conf %{buildroot}%{_sysconfdir}/bumblebee/bumblebee.conf
141    install -D -m755 bin/bumblebeed %{buildroot}%{_sbindir}/bumblebeed
142    install -D -m755 bin/optirun %{buildroot}%{_bindir}/optirun
143    %else
144  %makeinstall_std  %makeinstall_std
   
145  install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}/lib/systemd/system/bumblebeed.service  install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}/lib/systemd/system/bumblebeed.service
146    %endif

Legend:
Removed from v.584592  
changed lines
  Added in v.585500

  ViewVC Help
Powered by ViewVC 1.1.30