1 |
Name: mageia-prime |
2 |
Version: 0.4 |
3 |
Release: %mkrel 13 |
4 |
Summary: An NVidia Prime configuration tool |
5 |
Group: Development/X11 |
6 |
URL: https://github.com/ghibo/%{name} |
7 |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz |
8 |
Patch1: 0001-A-round-of-code-fixing-including.patch |
9 |
Patch2: 0002-Fix-glxspheres64-in-README.md-doc.patch |
10 |
Patch3: 0003-Fix-indentation.patch |
11 |
Patch4: 0004-Add-support-for-using-the-intel-driver-from-x11-driv.patch |
12 |
Patch5: 0005-Don-t-install-dnf-packages-interactively.patch |
13 |
Patch6: 0006-Implement-autodetecting-of-nvidia390-or-nvidia-curre.patch |
14 |
Patch7: 0007-Exits-and-not-just-warning-if-not-having-root-privil.patch |
15 |
Patch8: 0008-Add-option-f-to-avoid-re-using-preserved-xorg.conf.patch |
16 |
Patch9: 0009-Add-a-missed-brace.patch |
17 |
Patch10: 0010-Fix-typo.patch |
18 |
Patch11: 0011-Add-an-option-to-print-options-available.patch |
19 |
Patch12: 0012-Add-option-y-for-quick-installation-uninstallation-s.patch |
20 |
Patch13: 0013-add-more-checks-to-xrandr-setprovideroutputsource-ar.patch |
21 |
Patch14: 0014-sync-names-in-printed-help.patch |
22 |
License: GPLv3 |
23 |
|
24 |
Requires: kmod |
25 |
Recommends: dnf |
26 |
Recommends: dnf-command(install) |
27 |
Recommends: dnf-command(config-manager) |
28 |
Requires: urpmi |
29 |
Requires: drakxtools-backend |
30 |
# /bin/update-grub |
31 |
Requires: grub2-common |
32 |
# /bin/lspcidrake |
33 |
Requires: ldetect-lst |
34 |
# /bin/lspci |
35 |
Requires: pciutils |
36 |
# systemctl |
37 |
Requires: systemd-units |
38 |
Requires: xrandr |
39 |
# avoid interference with bumblebee modules |
40 |
Conflicts: bumblebee |
41 |
|
42 |
%description |
43 |
A tool for easily configuring NVidia Prime (Optimus) under Mageia GNU/Linux. |
44 |
|
45 |
%prep |
46 |
%setup -q |
47 |
%autopatch -p1 |
48 |
|
49 |
%build |
50 |
%make_build CFLAGS="%{optflags} -Wall -pedantic -D_GNU_SOURCE" |
51 |
|
52 |
%install |
53 |
%make_install |
54 |
|
55 |
%files |
56 |
%doc README.md |
57 |
%license LICENSE |
58 |
%{_bindir}/mageia-prime-offload |
59 |
%{_bindir}/mageia-prime-offload-run |
60 |
%{_bindir}/mageia-prime-install-packages-large |
61 |
%{_sbindir}/mageia-prime-install |
62 |
%{_sbindir}/mageia-prime-uninstall |