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 6 |
Release: %mkrel 7 |
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 |
|
%{_bindir}/nvidia-settings |
115 |
%{_bindir}/optirun |
%{_bindir}/optirun |
116 |
|
|
117 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
148 |
%makeinstall_std |
%makeinstall_std |
149 |
install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}%{_unitdir}/bumblebeed.service |
install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}%{_unitdir}/bumblebeed.service |
150 |
%endif |
%endif |
151 |
|
|
152 |
|
# Create nvidia-settings launcher script |
153 |
|
cat > %{buildroot}%{_bindir}/nvidia-settings << EOF |
154 |
|
#!/bin/sh |
155 |
|
optirun -b none %{_libdir}/nvidia-current/bin/nvidia-settings -c :8 |
156 |
|
EOF |
157 |
|
chmod +x %{buildroot}%{_bindir}/nvidia-settings |