1 |
# Use nouveau driver by default |
# Use nouveau driver by default |
2 |
%bcond_with nvidia |
%bcond_with nvidia |
3 |
|
|
4 |
Name: bumblebee |
Name: bumblebee |
5 |
Summary: Support for NVidia Optimus laptops on Linux |
Summary: Support for NVIDIA Optimus laptops on Linux |
6 |
Group: System/Kernel and hardware |
Group: System/Kernel and hardware |
7 |
Version: 3.2.1 |
Version: 3.2.1 |
8 |
Release: %mkrel 3 |
Release: %mkrel 3 |
9 |
License: GPLv3+ |
License: GPLv3+ |
10 |
URL: https://github.com/Bumblebee-Project/bumblebee |
URL: https://github.com/Bumblebee-Project/bumblebee |
11 |
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git |
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git |
12 |
Source0: https://github.com/downloads/Bumblebee-Project/Bumblebee/%{name}-%{version}.tar.gz |
Source0: https://github.com/downloads/Bumblebee-Project/Bumblebee/%{name}-%{version}.tar.gz |
13 |
BuildRequires: pkgconfig(x11) |
BuildRequires: pkgconfig(x11) |
14 |
BuildRequires: pkgconfig(glib-2.0) |
BuildRequires: pkgconfig(glib-2.0) |
15 |
BuildRequires: pkgconfig(libbsd) |
BuildRequires: pkgconfig(libbsd) |
16 |
BuildRequires: help2man |
BuildRequires: help2man |
17 |
Requires(pre): update-alternatives |
Requires(pre): rpm-helper |
18 |
Requires(post): systemd-units |
Requires(pre): update-alternatives |
19 |
|
Requires(post): systemd-units |
20 |
Requires(preun):systemd-units |
Requires(preun):systemd-units |
21 |
Requires(pre): rpm-helper |
Requires: virtualgl |
22 |
Requires: virtualgl |
Requires: %mklibname virtualgl |
23 |
Requires: %mklibname virtualgl |
# Suggests: primus |
|
# Suggests: primus |
|
24 |
%if %{with nvidia} |
%if %{with nvidia} |
25 |
Suggests: x11-driver-video-nvidia-current |
Suggests: x11-driver-video-nvidia-current |
26 |
%else |
%else |
27 |
Requires: x11-driver-video-nouveau |
Requires: x11-driver-video-nouveau |
28 |
%endif |
%endif |
29 |
Requires: kmod(bbswitch) |
Requires: kmod(bbswitch) |
30 |
# Seems broken with current kernels (maybe not needed anymore?) |
# Seems broken with current kernels (maybe not needed anymore?) |
31 |
# Requires: kmod(acpi_call) |
# Requires: kmod(acpi_call) |
32 |
|
|
33 |
%description |
%description |
34 |
Bumblebee daemon is a rewrite of the original Bumblebee service, providing |
Bumblebee is an effort to make NVIDIA Optimus enabled laptops work in |
35 |
an elegant and stable means of managing Optimus hybrid graphics chip sets. |
GNU/Linux systems. These laptops are built in such a way that the NVIDIA |
36 |
A primary goal of this project is to not only enable use of the discrete |
graphics card can be used on demand so that battery life is improved and |
37 |
GPU for rendering, but also to enable smart power management of the dGPU |
temperature is kept low. |
38 |
when it's not in use. |
|
39 |
|
It disables the discrete graphics card if no client is detected, and start |
40 |
|
an X server making use of NVIDIA card if requested then let software GL |
41 |
|
implementations (such as VirtualGL or primus) copy frames to the visible |
42 |
|
display that runs on the intergrated graphics. The ability to use discrete |
43 |
|
graphics depends on the driver: open source nouveau and proprietary nvidia. |
44 |
|
|
45 |
%files |
%files |
46 |
%doc README.markdown doc/RELEASE_NOTES_3_2_1 |
%doc README.markdown doc/RELEASE_NOTES_3_2_1 |
112 |
%endif |
%endif |
113 |
%ifarch x86_64 |
%ifarch x86_64 |
114 |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \ |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \ |
115 |
CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia-current/xorg,%{_libdir}/nvidia-current/xorg,%{_usr}/lib/xorg/modules,%{_libdir}/xorg/modules,%{_usr}/lib/xorg/extra-modules,%{_usr}/xorg/extra-modules |
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=%%{_usr}/lib/nvidia-current/xorg,%%{_libdir}/nvidia-current/xorg,%%{_usr}/lib/xorg/modules,%%{_libdir}/xorg/modules,%%{_usr}/lib/xorg/extra-modules,%%{_usr}/xorg/extra-modules \ |
|
116 |
# CONF_PRIMUS_LD_PATH=%%{_usr}/lib/primus:%%{_libdir}/primus |
# CONF_PRIMUS_LD_PATH=%%{_usr}/lib/primus:%%{_libdir}/primus |
117 |
%else |
%else |
118 |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current \ |
CONF_LDPATH_NVIDIA=%{_libdir}/nvidia-current \ |
119 |
CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia-current/xorg,%{_usr}/lib/xorg/modules,%{_usr}/lib/xorg/extra-modules |
CONF_MODPATH_NVIDIA=%{_libdir}/nvidia-current/xorg,%{_libdir}/xorg/modules,%{_libdir}/xorg/extra-modules |
120 |
# CONF_MODPATH_NVIDIA=%%{_usr}/lib/nvidia-current/xorg,%%{_usr}/lib/xorg/modules,%%{_usr}/lib/xorg/extra-modules \ |
# CONF_PRIMUS_LD_PATH=%%{_libdir}/primus |
|
# CONF_PRIMUS_LD_PATH=%%{_usr}/lib/primus |
|
121 |
%endif |
%endif |
122 |
|
|
123 |
%make CFLAGS="%{optflags}" |
%make CFLAGS="%{optflags}" |