/[packages]/cauldron/mageia-prime/current/SPECS/mageia-prime.spec
ViewVC logotype

Annotation of /cauldron/mageia-prime/current/SPECS/mageia-prime.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1673994 - (hide annotations) (download)
Fri Jan 29 17:04:21 2021 UTC (3 years, 1 month ago) by ghibo
File size: 1424 byte(s)
- fix paths: move init scripts from /etc/X11/xsetup.d to /etc/X11/xinit.d as xsetup.d seems not used anymore
- fix paths_ restart display-manager.service instead of prefdm.service, as prefdm.service was removed some time ago
- don't default modesetting accelmethod to none.
- force RENDER_OFFLOAD env var.

1 ghibo 1100048 Name: mageia-prime
2 ghibo 1105867 Version: 0.4
3 umeabot 1548632 Release: %mkrel 5
4 ghibo 1100048 Summary: An NVidia Prime configuration tool
5     Group: Development/X11
6 ghibo 1105867 URL: https://github.com/ghibo/%{name}
7     Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
8 ghibo 1673994 Patch0: %{name}-fix-paths.patch
9     Patch1: %{name}-fix-return-val.patch
10     Patch2: %{name}/mageia-prime-fix-accel-method.patch
11 ghibo 1100048 License: GPLv3
12 akien 1235047
13 ghibo 1105867 Requires: kmod
14     Requires: dnf
15     Requires: dnf-command(install)
16     Requires: dnf-command(config-manager)
17 ghibo 1100048 Requires: urpmi
18 ghibo 1105867 Requires: drakxtools-backend
19 akien 1235053 # /bin/update-grub
20 ghibo 1105867 Requires: grub2-common
21 akien 1235053 # /bin/lspci
22     Requires: pciutils
23     # systemctl
24     Requires: systemd-units
25 akien 1235047 Requires: xrandr
26 ghibo 1100048
27     %description
28     A tool for easily configuring NVidia Prime under Mageia GNU/Linux.
29    
30     %prep
31     %setup -q
32 ghibo 1673994 %autopatch -p1
33 ghibo 1100048
34     %build
35     %make_build CFLAGS="%{optflags} -Wall -pedantic -D_GNU_SOURCE"
36    
37     %install
38     %make_install
39 ghibo 1673994 mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
40 ghibo 1100048
41 ghibo 1673994 cat > %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/20-%{name}.conf <<EOF
42     # generated by mageia-prime
43    
44     Section "OutputClass"
45     Identifier "nvidia"
46     MatchDriver "nvidia-drm"
47     Driver "nvidia"
48     Option "AllowEmptyInitialConfiguration" "on"
49     Option "PrimaryGPU" "yes"
50     EndSection
51     EOF
52     chmod 644 %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/20-%{name}.conf
53    
54 ghibo 1100048 %files
55     %doc README.md
56 ghibo 1105867 %license LICENSE
57 ghibo 1673994 %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/20-%{name}.conf
58 ghibo 1100048 %{_sbindir}/mageia-prime-install
59     %{_sbindir}/mageia-prime-uninstall

  ViewVC Help
Powered by ViewVC 1.1.30