1 |
Name: mageia-prime |
Name: mageia-prime |
2 |
Version: 0.4 |
Version: 0.4 |
3 |
Release: %mkrel 6 |
Release: %mkrel 7 |
4 |
Summary: An NVidia Prime configuration tool |
Summary: An NVidia Prime configuration tool |
5 |
Group: Development/X11 |
Group: Development/X11 |
6 |
URL: https://github.com/ghibo/%{name} |
URL: https://github.com/ghibo/%{name} |
7 |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz |
8 |
Patch0: %{name}-fix-paths.patch |
Patch1: 0001-A-round-of-code-fixing-including.patch |
|
Patch1: %{name}-fix-return-val.patch |
|
|
Patch2: %{name}/mageia-prime-fix-accel-method.patch |
|
9 |
License: GPLv3 |
License: GPLv3 |
10 |
|
|
11 |
Requires: kmod |
Requires: kmod |
34 |
|
|
35 |
%install |
%install |
36 |
%make_install |
%make_install |
|
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/ |
|
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/20-%{name}.conf <<EOF |
|
|
# generated by mageia-prime |
|
|
|
|
|
Section "OutputClass" |
|
|
Identifier "nvidia" |
|
|
MatchDriver "nvidia-drm" |
|
|
Driver "nvidia" |
|
|
Option "AllowEmptyInitialConfiguration" "on" |
|
|
Option "PrimaryGPU" "yes" |
|
|
EndSection |
|
|
EOF |
|
|
chmod 644 %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/20-%{name}.conf |
|
37 |
|
|
38 |
%files |
%files |
39 |
%doc README.md |
%doc README.md |
40 |
%license LICENSE |
%license LICENSE |
41 |
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/20-%{name}.conf |
%{_bindir}/mageia-prime-offload |
42 |
|
%{_bindir}/mageia-prime-offload-run |
43 |
|
%{_bindir}/mageia-prime-install-packages-large |
44 |
%{_sbindir}/mageia-prime-install |
%{_sbindir}/mageia-prime-install |
45 |
%{_sbindir}/mageia-prime-uninstall |
%{_sbindir}/mageia-prime-uninstall |