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 7 |
Release: %mkrel 8 |
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 |
%{_bindir}/nvidia-settings-bumblebee |
115 |
%{_bindir}/optirun |
%{_bindir}/optirun |
116 |
|
|
117 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
150 |
%endif |
%endif |
151 |
|
|
152 |
# Create nvidia-settings launcher script |
# Create nvidia-settings launcher script |
153 |
cat > %{buildroot}%{_bindir}/nvidia-settings << EOF |
cat > %{buildroot}%{_bindir}/nvidia-settings-bumblebee << EOF |
154 |
#!/bin/sh |
#!/bin/sh |
155 |
optirun -b none %{_libdir}/nvidia-current/bin/nvidia-settings -c :8 |
optirun -b none %{_libdir}/nvidia-current/bin/nvidia-settings -c :8 |
156 |
EOF |
EOF |
157 |
chmod +x %{buildroot}%{_bindir}/nvidia-settings |
chmod +x %{buildroot}%{_bindir}/nvidia-settings-bumblebee |