Bug#1079180: nvidia-settings-legacy-340xx: Add Appstream metainfo announcing HW support
Petter Reinholdtsen
pere at hungry.com
Tue Aug 20 23:20:56 BST 2024
Package: nvidia-settings-legacy-340xx
Version: 340.108-7
Tags: patch
User: pere at hungry.com
Usertags: appstream-modalias
Here is a patch to add Appstream metainfo XML announcing the hardware
handled by this package.
Including this information in the package will ensure programs mapping
hardware to packages using Appstream information, like the isenkram
package, will know that this package is useful on machines where the
relevant hardware is discovered.
The appstream metadata file can be checked using this command after
package build:
appstreamcli validate-tree --no-net --explain debian/nvidia-settings-legacy-340xx
diff --git a/debian/nvidia-settings.install.in b/debian/nvidia-settings.install.in
index 473c4a4..27f511e 100644
--- a/debian/nvidia-settings.install.in
+++ b/debian/nvidia-settings.install.in
@@ -3,3 +3,4 @@ debian/nvidia-settings.desktop usr/lib/#PRIVATE#/
nvidia-settings#LEGACY#.png usr/share/pixmaps/
usr/bin/nv-control-dpy usr/lib/#PRIVATE#/
usr/share/man/man1/nvidia-settings.1.gz usr/lib/#PRIVATE#/
+com.nvidia.xfree86.nvidia_settings.metainfo.xml usr/share/metainfo
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..a133eca
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,33 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the relevant hardware is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-08-20
+---
+Index: nvidia-settings-legacy-340xx-340.108/com.nvidia.xfree86.nvidia_settings.metainfo.xml
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ nvidia-settings-legacy-340xx-340.108/com.nvidia.xfree86.nvidia_settings.metainfo.xml 2024-08-20 18:15:41.516314210 -0400
+@@ -0,0 +1,21 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++ <id>com.nvidia.xfree86.nvidia_settings</id>
++ <metadata_license>MIT</metadata_license>
++ <name>nvidia-settings-legacy-340xx</name>
++ <summary>tool for configuring the NVIDIA graphics driver</summary>
++ <description>
++ <p>The nvidia-settings utility is a tool for configuring the
++ NVIDIA Linux 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.</p>
++
++ <p>Values such as brightness and gamma, XVideo attributes,
++ temperature, and OpenGL settings can be queried and configured via
++ nvidia-settings.</p>
++ </description>
++ <url type="homepage">https://download.nvidia.com/XFree86/nvidia-settings/</url>
++ <provides>
++ <modalias>pci:v000010DEd000006FDsv*</modalias>
++ </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 8930cc8..75d0a59 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
16_gzip-n.diff
typos.diff
xorg.patch
+1000-appstream-metainfo.patch
--
Happy hacking
Petter Reinholdtsen
More information about the pkg-nvidia-devel
mailing list