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.0.1 |
Version: 3.2.1 |
8 |
Release: %mkrel 2 |
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 |
|
# we need to change to develop branch to allow changing to nouveau without |
|
|
# using nvidia paths |
|
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) |
20 |
Requires(pre): rpm-helper |
Requires(pre): rpm-helper |
21 |
Requires: virtualgl |
Requires: virtualgl |
22 |
Requires: %mklibname virtualgl |
Requires: %mklibname virtualgl |
23 |
|
# 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 |
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 daemon is a rewrite of the original Bumblebee service, providing |
38 |
when it's not in use. |
when it's not in use. |
39 |
|
|
40 |
%files |
%files |
41 |
%doc README.markdown doc/RELEASE_NOTES_3_0_1 |
%doc README.markdown doc/RELEASE_NOTES_3_2_1 |
42 |
%{_sysconfdir}/bash_completion.d/bumblebee |
%{_sysconfdir}/bash_completion.d/bumblebee |
43 |
%dir %{_sysconfdir}/bumblebee/ |
%dir %{_sysconfdir}/bumblebee/ |
44 |
%config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf |
%config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf |
45 |
|
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.d/10-dummy.conf |
46 |
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nouveau |
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nouveau |
47 |
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nvidia |
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nvidia |
48 |
|
/lib/udev/rules.d/99-bumblebee-nvidia-dev.rules |
49 |
/lib/systemd/system/bumblebeed.service |
/lib/systemd/system/bumblebeed.service |
50 |
%{_sbindir}/bumblebeed |
%{_sbindir}/bumblebeed |
51 |
%{_bindir}/optirun |
%{_bindir}/optirun |
108 |
%ifarch x86_64 |
%ifarch x86_64 |
109 |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \ |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current:%{_libdir}/nvidia-current \ |
110 |
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,%{_usr}/xorg/extra-modules |
111 |
|
# 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 \ |
112 |
|
# CONF_PRIMUS_LD_PATH=%%{_usr}/lib/primus:%%{_libdir}/primus |
113 |
%else |
%else |
114 |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current \ |
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia-current \ |
115 |
CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia-current/xorg,%{_usr}/lib/xorg/modules,%{_usr}/lib/xorg/extra-modules |
CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia-current/xorg,%{_usr}/lib/xorg/modules,%{_usr}/lib/xorg/extra-modules |
116 |
|
# CONF_MODPATH_NVIDIA=%%{_usr}/lib/nvidia-current/xorg,%%{_usr}/lib/xorg/modules,%%{_usr}/lib/xorg/extra-modules \ |
117 |
|
# CONF_PRIMUS_LD_PATH=%%{_usr}/lib/primus |
118 |
%endif |
%endif |
119 |
|
|
120 |
%make CFLAGS="%{optflags}" |
%make CFLAGS="%{optflags}" |