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 8 |
Release: %mkrel 9 |
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 |
111 |
%files %{driver} |
%files %{driver} |
112 |
%config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf |
%config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf |
113 |
%{_sbindir}/bumblebeed |
%{_sbindir}/bumblebeed |
114 |
|
%if "%{?distro_section}" == "nonfree" |
115 |
%{_bindir}/nvidia-settings-bumblebee |
%{_bindir}/nvidia-settings-bumblebee |
116 |
|
%endif |
117 |
%{_bindir}/optirun |
%{_bindir}/optirun |
118 |
|
|
119 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
146 |
install -D -m644 conf/bumblebee.conf %{buildroot}%{_sysconfdir}/bumblebee/bumblebee.conf |
install -D -m644 conf/bumblebee.conf %{buildroot}%{_sysconfdir}/bumblebee/bumblebee.conf |
147 |
install -D -m755 bin/bumblebeed %{buildroot}%{_sbindir}/bumblebeed |
install -D -m755 bin/bumblebeed %{buildroot}%{_sbindir}/bumblebeed |
148 |
install -D -m755 bin/optirun %{buildroot}%{_bindir}/optirun |
install -D -m755 bin/optirun %{buildroot}%{_bindir}/optirun |
|
%else |
|
|
%makeinstall_std |
|
|
install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}%{_unitdir}/bumblebeed.service |
|
|
%endif |
|
149 |
|
|
150 |
# Create nvidia-settings launcher script |
# Create nvidia-settings launcher script |
151 |
cat > %{buildroot}%{_bindir}/nvidia-settings-bumblebee << EOF |
cat > nvidia-settings-bumblebee << EOF |
152 |
#!/bin/sh |
#!/bin/sh |
153 |
optirun -b none %{_libdir}/nvidia-current/bin/nvidia-settings -c :8 |
optirun -b none %{_libdir}/nvidia-current/bin/nvidia-settings -c :8 |
154 |
EOF |
EOF |
155 |
chmod +x %{buildroot}%{_bindir}/nvidia-settings-bumblebee |
install -D -m755 nvidia-settings-bumblebee %{buildroot}%{_bindir}/nvidia-settings-bumblebee |
156 |
|
|
157 |
|
%else |
158 |
|
%makeinstall_std |
159 |
|
install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}%{_unitdir}/bumblebeed.service |
160 |
|
%endif |