From 8df58b4eaa6d5f11d96f121047ef38df16937e06 Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Sat, 30 Oct 2021 17:04:20 +0200 Subject: [PATCH] Initial SPEC upload (#6121). --- .gitignore | 1 + nvidia-settings-470xx-user.desktop | 12 + nvidia-settings-470xx.metainfo.xml | 46 +++ nvidia-settings-470xx.spec | 449 +++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 509 insertions(+) create mode 100644 nvidia-settings-470xx-user.desktop create mode 100644 nvidia-settings-470xx.metainfo.xml create mode 100644 nvidia-settings-470xx.spec diff --git a/.gitignore b/.gitignore index e69de29..12b3b35 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nvidia-settings-470.74.tar.bz2 diff --git a/nvidia-settings-470xx-user.desktop b/nvidia-settings-470xx-user.desktop new file mode 100644 index 0000000..838914b --- /dev/null +++ b/nvidia-settings-470xx-user.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Exec=nvidia-settings -l +Icon=nvidia-settings +Hidden=false +NoDisplay=false +Name[en_GB]=nvidia-settings +Name=nvidia-settings +Comment[en_GB]=Load user settings +Comment=Load user settings +X-GNOME-Autostart-Delay=30 +X-GNOME-Autostart-enabled=true diff --git a/nvidia-settings-470xx.metainfo.xml b/nvidia-settings-470xx.metainfo.xml new file mode 100644 index 0000000..f120bea --- /dev/null +++ b/nvidia-settings-470xx.metainfo.xml @@ -0,0 +1,46 @@ + + + nvidia-settings-470xx.desktop + NVIDIA Graphics Drivers Control Panel + Accelerated Linux Graphics Driver Control Panel + +

+ The NVIDIA Accelerated Linux Graphics Driver brings accelerated 2D + functionality and high-performance OpenGL support to Linux with the + use of NVIDIA graphics processing units. +

+

+ These drivers provide optimized hardware acceleration for OpenGL and X + applications and support nearly all recent NVIDIA GPU products. + The NVIDIA graphics driver uses a Unified Driver Architecture: the single + graphics driver supports all modern NVIDIA GPUs. +

+

+ The nvidia-settings utility is a tool for configuring the NVIDIA graphics + driver. It operates by communicating with the NVIDIA X driver, querying + and updating state as appropriate. This communication is done via the + NV-CONTROL, GLX, XVideo, and RandR X extensions. +

+

+ Values such as brightness and gamma, XVideo attributes, temperature, and + OpenGL settings can be queried and configured via nvidia-settings. +

+

+ You need the Nvidia proprietary driver. This is not a standalone application. +

+
+ + https://www.nvidia.com/ + CC0-1.0 + GPL-2.0+ + NVIDIA Corporation + + NVIDIA + driver + GeForce + Quadro + Vulkan + OpenGL + + nvidia-settings-470xx-owner@rpmfusion.org +
diff --git a/nvidia-settings-470xx.spec b/nvidia-settings-470xx.spec new file mode 100644 index 0000000..2ee26fd --- /dev/null +++ b/nvidia-settings-470xx.spec @@ -0,0 +1,449 @@ +%global appname nvidia-settings + +Name: %{appname}-470xx +Epoch: 3 +Version: 470.74 +Release: 2%{?dist} + +License: GPLv2+ +Summary: Configure the NVIDIA 470xx series graphics driver +URL: https://download.nvidia.com/XFree86/%{appname} + +Source0: %{url}/%{appname}-%{version}.tar.bz2 +Source1: %{name}-user.desktop +Source2: %{name}.metainfo.xml + +ExclusiveArch: x86_64 + +BuildRequires: desktop-file-utils +BuildRequires: gcc +BuildRequires: hostname +BuildRequires: libappstream-glib +BuildRequires: m4 +BuildRequires: make + +BuildRequires: gtk2-devel +BuildRequires: gtk3-devel +BuildRequires: libXxf86vm-devel +BuildRequires: libXext-devel +BuildRequires: libXrandr-devel +BuildRequires: libXv-devel +BuildRequires: libvdpau-devel +BuildRequires: mesa-libEGL-devel +BuildRequires: mesa-libGL-devel +BuildRequires: pkgconfig(dbus-1) + +Conflicts: %{appname}-340xx +Conflicts: %{appname}-390xx +Conflicts: %{appname} + +Requires: nvidia-470xx-kmod-common >= %{epoch}:%{version} + +%description +The nvidia-settings utility is a tool for configuring the NVIDIA graphics +driver. It operates by communicating with the NVIDIA X driver, querying +and updating state as appropriate. + +This communication is done with the NV-CONTROL X extension. +nvidia-settings is compatible with driver %{version}. + +%prep +%autosetup -n %{appname}-%{version} -p1 +# We are building from source +rm -rf src/libXNVCtrl/libXNVCtrl.a + +sed -i -e 's|/usr/local|%{_prefix}|g' utils.mk +sed -i -e 's|/lib$|/%{_lib}|g' utils.mk +sed -i -e 's|-lXxf86vm|-lXxf86vm -ldl -lm|g' Makefile + +%build +%set_build_flags +%make_build NVDEBUG=1 NV_VERBOSE=1 X_CFLAGS="${CFLAGS}" X_LDFLAGS="${LDFLAGS}" -C src/libXNVCtrl +%make_build NVDEBUG=1 NV_VERBOSE=1 STRIP_CMD=true NV_KEEP_UNSTRIPPED_BINARIES=1 X_LDFLAGS="-L%{_libdir} ${LDFLAGS}" CC_ONLY_CFLAGS="%{optflags}" +(cd src/_out/Linux_*/ ; for i in %{appname} libnvidia-gtk{2,3}.so ; do cp $i.unstripped $i; done ; cd -) + +%install +%make_install + +# Desktop entry for nvidia-settings +mkdir -p %{buildroot}%{_datadir}/applications +install -m 0644 doc/%{appname}.desktop \ + %{buildroot}%{_datadir}/applications/%{name}.desktop + +sed -i -e 's|__UTILS_PATH__/||' -e 's|__PIXMAP_PATH__/||' \ + -e 's|%{appname}.png|%{appname}|' \ + -e 's|__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__|System;Settings;|' \ + %{buildroot}%{_datadir}/applications/%{name}.desktop + +# Pixmap installation +mkdir -p %{buildroot}%{_datadir}/pixmaps +install -pm 0644 doc/%{appname}.png %{buildroot}%{_datadir}/pixmaps + +# User settings installation +mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart +install -pm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-user.desktop + +# AppData installation +mkdir -p %{buildroot}%{_metainfodir} +install -p -m 0644 %{SOURCE2} %{buildroot}%{_metainfodir} + +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-user.desktop +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml + +%files +%license COPYING +%doc doc/*.txt +%config %{_sysconfdir}/xdg/autostart/%{name}-user.desktop +%exclude %{_libdir}/libnvidia-gtk2.so.* +%{_bindir}/%{appname} +%{_libdir}/libnvidia-gtk?.so.* +%{_datadir}/pixmaps/%{appname}.png +%{_datadir}/applications/%{name}.desktop +%{_metainfodir}/%{name}.metainfo.xml +%{_mandir}/man1/%{appname}.1.* + +%changelog +* Fri Oct 29 2021 Vitaly Zaitsev - 3:470.74-2 +- Extracted to a separate legacy LTS branch. + +* Tue Sep 21 2021 Leigh Scott - 3:470.74-1 +- Update to 470.74 release + +* Wed Aug 11 2021 Leigh Scott - 3:470.63.01-1 +- Update to 470.63.01 release + +* Wed Aug 04 2021 RPM Fusion Release Engineering - 3:470.57.02-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jul 19 2021 Leigh Scott - 3:470.57.02-1 +- Update to 470.57.02 release + +* Wed Jun 23 2021 Leigh Scott - 3:470.42.01-1 +- Update to 470.42.01 beta + +* Sat May 22 2021 Leigh Scott - 3:465.31-1 +- Update to 465.31 release + +* Fri Apr 30 2021 Leigh Scott - 3:465.27-1 +- Update to 465.27 release + +* Thu Apr 15 2021 Leigh Scott - 3:465.24.02-1 +- Update to 465.24.02 release + +* Wed Mar 31 2021 Leigh Scott - 3:465.19.01-1 +- Update to 465.19.01 beta + +* Fri Mar 19 2021 Leigh Scott - 3:460.67-1 +- Update to 460.67 release + +* Thu Feb 25 2021 Leigh Scott - 3:460.56-1 +- Update to 460.56 release + +* Thu Feb 04 2021 RPM Fusion Release Engineering - 3:460.39-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 27 2021 Leigh Scott - 3:460.39-1 +- Update to 460.39 release + +* Thu Jan 7 2021 Leigh Scott - 3:460.32.03-1 +- Update to 460.32.03 release + +* Wed Dec 16 2020 Leigh Scott - 3:460.27.04-1 +- Update to 460.27.04 beta + +* Wed Nov 18 2020 Leigh Scott - 3:455.45.01-1 +- Update to 455.45.01 release + +* Thu Oct 29 2020 Leigh Scott - 3:455.38-1 +- Update to 455.38 release + +* Wed Oct 7 2020 Leigh Scott - 3:455.28-1 +- Update to 455.28 release + +* Fri Sep 18 2020 Leigh Scott - 3:455.23.04-1 +- Update to 455.23.04 beta + +* Wed Aug 19 2020 Leigh Scott - 3:450.66-1 +- Update to 450.66 release + +* Thu Jul 09 2020 Leigh Scott - 3:450.57-1 +- Update to 450.57 release + +* Wed Jun 24 2020 Leigh Scott - 3:450.51-1 +- Update to 450.51 beta + +* Tue Apr 07 2020 leigh123linux - 3:440.82-1 +- Update to 440.82 release + +* Fri Feb 28 2020 leigh123linux - 3:440.64-1 +- Update to 440.64 release + +* Mon Feb 03 2020 Leigh Scott - 3:440.59-1 +- Update to 440.59 release + +* Thu Jan 30 2020 Leigh Scott - 3:440.44-2 +- Add gcc-10 build fix + +* Wed Dec 11 2019 Leigh Scott - 3:440.44-1 +- Update to 440.44 release + +* Fri Nov 22 2019 Leigh Scott - 3:440.36-1 +- Update to 440.36 release + +* Mon Nov 04 2019 Leigh Scott - 3:440.31-1 +- Update to 440.31 release + +* Thu Oct 17 2019 Leigh Scott - 3:440.26-1 +- Update to 440.26 beta + +* Fri Aug 30 2019 Leigh Scott - 3:435.21-1 +- Update to 435.21 release + +* Tue Aug 13 2019 Leigh Scott - 3:435.17-1 +- Update to 435.17 beta + +* Sat Aug 10 2019 RPM Fusion Release Engineering - 3:430.40-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jul 29 2019 Leigh Scott - 3:430.40-1 +- Update to 430.40 release + +* Tue Jul 16 2019 Leigh Scott - 3:430.34-1 +- Update to 430.34 release + +* Tue Jun 11 2019 Leigh Scott - 3:430.26-1 +- Update to 430.26 release + +* Tue May 14 2019 Leigh Scott - 3:430.14-1 +- Update to 430.14 release + +* Wed Apr 24 2019 Leigh Scott - 3:430.09-1 +- Update to 430.09 beta + +* Thu Mar 21 2019 Leigh Scott - 3:418.56-1 +- Update to 418.56 release + +* Tue Mar 05 2019 RPM Fusion Release Engineering - 3:418.43-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Feb 22 2019 Leigh Scott - 3:418.43-1 +- Update to 418.43 release + +* Fri Feb 08 2019 Leigh Scott - 3:418.30-1 +- Update to 418.30 beta + +* Wed Jan 16 2019 Leigh Scott - 3:415.27-1 +- Update to 415.27 release + +* Wed Dec 26 2018 Leigh Scott - 3:415.25-1 +- Update to 415.25 release + +* Fri Dec 14 2018 Leigh Scott - 3:415.23-1 +- Update to 415.23 release + +* Fri Dec 07 2018 Leigh Scott - 3:415.22-1 +- Update to 415.22 release + +* Wed Nov 21 2018 Leigh Scott - 3:415.18-1 +- Update to 415.18 release + +* Fri Nov 16 2018 Leigh Scott - 3:410.78-1 +- Update to 410.78 release + +* Thu Oct 25 2018 Leigh Scott - 3:410.73-1 +- Update to 410.73 release + +* Tue Oct 16 2018 Leigh Scott - 3:410.66-1 +- Update to 410.66 release + +* Fri Sep 21 2018 Leigh Scott - 3:410.57-2 +- Match the cuda repo epoch + +* Thu Sep 20 2018 Leigh Scott - 410.57-1 +- Update to 410.57 beta + +* Wed Aug 22 2018 Leigh Scott - 396.54-1 +- Update to 396.54 + +* Sat Aug 04 2018 Leigh Scott - 396.51-1 +- Update to 396.51 + +* Fri Jul 27 2018 RPM Fusion Release Engineering - 396.45-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jul 20 2018 Leigh Scott - 396.45-1 +- Update to 396.45 + +* Tue Jul 10 2018 Leigh Scott - 396.24-2 +- Add build requires mesa-libEGL-devel + +* Fri May 04 2018 Leigh Scott - 396.24-1 +- Update to 396.24 + +* Tue Apr 10 2018 Leigh Scott - 390.48-3 +- Validate appdata file + +* Mon Apr 09 2018 Nicolas Chauvet - 390.48-2 +- Fix typo on icon directory +- Add appdata file +- Bundle user desktop settings here. + +* Thu Mar 29 2018 Leigh Scott - 390.48-1 +- Update to 390.48 + +* Tue Mar 13 2018 Leigh Scott - 390.42-1 +- Update to 390.42 + +* Fri Mar 02 2018 RPM Fusion Release Engineering - 390.25-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 29 2018 Leigh Scott - 390.25-1 +- Update to 390.25 + +* Thu Jan 11 2018 Leigh Scott - 390.12-1 +- Update to 390.12 + +* Sat Dec 02 2017 Leigh Scott - 387.34-1 +- Update to 387.34 + +* Mon Oct 30 2017 Leigh Scott - 387.22-1 +- Update to 387.22 + +* Fri Sep 22 2017 Leigh Scott - 384.90-1 +- Update to 384.90 + +* Thu Aug 03 2017 Nicolas Chauvet - 384.59-1 +- Update to 384.59 + +* Sun Mar 26 2017 RPM Fusion Release Engineering - 319.32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun Jul 21 2013 Nicolas Chauvet - 319.32-1 +- Build an empty package to workaround yum issue with obsoletes + using nvidia-settings-current build from sources binary + +* Thu Jun 27 2013 Nicolas Chauvet - 1.0-33 +- Update to 319.32 + +* Fri May 24 2013 Leigh Scott - 1.0-32 +- Update to 319.23 + +* Mon May 13 2013 Leigh Scott - 1.0-31 +- Update to 319.17 +- add build requires m4 + +* Mon Mar 11 2013 Nicolas Chauvet - 1.0-30 +- Update to 313.26 +- Add Alternatives support +- Drop patch needed for older 173xx/96xx series. + Thoses will use nvidia-settings-legacy instead +- Build libXNVCtrl with our %%optflags +- Split the desktop file in a sub-package + +* Wed Jan 16 2013 Leigh Scott - 1.0-29 +- Update to 313.18 + +* Sat Dec 01 2012 Leigh Scott - 1.0-28 +- Update to 310.19 + +* Tue Oct 16 2012 Leigh Scott - 1.0-27 +- Update to 310.14 + +* Mon Sep 24 2012 Leigh Scott - 1.0-26 +- Update to 304.51 + +* Sat Sep 15 2012 Leigh Scott - 1.0-25 +- Update to 304.48 + +* Wed Sep 05 2012 Nicolas Chauvet - 1.0-24 +- Update to 304.43 +- Add BR libXrandr-devel +- Add missing files + +* Tue Aug 14 2012 Leigh Scott - 1.0-23 +- Update to 304.37 + +* Tue Jul 31 2012 Leigh Scott - 1.0-22 +- Update to 304.30 + +* Sat Jul 14 2012 Leigh Scott - 1.0-21 +- Update to 304.22 + +* Sun Jun 17 2012 leigh scott - 1.0-20 +- Update to 302.17 + +* Tue May 22 2012 leigh scott - 1.0-19 +- Update to 302.11 + +* Tue May 22 2012 leigh scott - 1.0-18 +- Update to 295.53 + +* Thu May 03 2012 leigh scott - 1.0-17 +- Update to 295.49 + +* Wed Apr 11 2012 leigh scott - 1.0-16 +- Update to 295.40 +- Fix source url + +* Thu Mar 22 2012 leigh scott - 1.0-15 +- Update internal 295.33 + +* Mon Feb 27 2012 Nicolas Chauvet - 1.0-14 +- Update internal 295.20 + +* Wed Nov 23 2011 Nicolas Chauvet - 1.0-13 +- Update internal 290.10 + +* Thu Oct 13 2011 Nicolas Chauvet - 1.0-12 +- Update internal 285.05.09 + +* Sun Jul 31 2011 Nicolas Chauvet - 1.0-11 +- Update internal to 280.11 + +* Sun May 01 2011 Nicolas Chauvet - 1.0-10 +- Update internal to 270.41.06 + +* Thu Dec 16 2010 Nicolas Chauvet - 1.0-9 +- Update internal to 260.19.29 + +* Thu Oct 14 2010 Nicolas Chauvet - 1.0-8 +- Update internal to 260.19.12 + +* Sun Oct 10 2010 Nicolas Chauvet - 1.0-7 +- Update internal to 260.19.06 +- Restore noscanout patch + +* Mon Sep 06 2010 Nicolas Chauvet - 1.0-6 +- Update internal to 256.53 + +* Sat Jul 10 2010 Nicolas Chauvet - 1.0-5 +- Update internal to 256.35 +- Use upstream desktop file (completed) +- Provides %%{name}-nversion internal + +* Wed Apr 28 2010 Nicolas Chauvet - 1.0-4 +- Update internal to 195.36.24 +- Avoid failure on NV_CTRL_NO_SCANOUT when not supported in legacy drivers. + +* Sun Feb 28 2010 Nicolas Chauvet - 1.0-3.4 +- Update internal version to 195.36.08 +- Add patch for -lm + +* Wed Oct 21 2009 kwizart < kwizart at gmail.com > - 1.0-3.1 +- Update internal to 190.42 + +* Wed Jul 15 2009 kwizart < kwizart at gmail.com > - 1.0-3 +- Update internal to 185.18.14 + +* Tue Mar 3 2009 kwizart < kwizart at gmail.com > - 1.0-2.1 +- Update internal to 180.35 + +* Tue Jun 17 2008 kwizart < kwizart at gmail.com > - 1.0-2 +- Update to 173.14.09 +- Remove the locale patch + +* Wed May 28 2008 kwizart < kwizart at gmail.com > - 1.0-1 +- First Package for Fedora. + diff --git a/sources b/sources index e69de29..744e053 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (nvidia-settings-470.74.tar.bz2) = eaaff811e9f3968efa82dd5ab60eb504538f34976bcbeec5a1451be14e1bb6f7d1ad7d732dddfd003e275a9e24e80438ab7a5a7ec8ad5c17556a6de1f884b102