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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1673998 by ghibo, Fri Jan 29 17:22:47 2021 UTC revision 1674283 by ghibo, Sun Jan 31 22:27:13 2021 UTC
# Line 1  Line 1 
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
# Line 36  A tool for easily configuring NVidia Pri Line 34  A tool for easily configuring NVidia Pri
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

Legend:
Removed from v.1673998  
changed lines
  Added in v.1674283

  ViewVC Help
Powered by ViewVC 1.1.30