Bug#1091176: i8kutils: Add Appstream metainfo announcing HW support
Package: i8kutils
Version: 1.44
Tags: patch
User: pere@hungry.com
Usertags: appstream-modalias
Here is a draft patch to add Appstream metainfo XML announcing the
hardware handled by this package. The modalias entries are based on the
output from 'modinfo dell-smm-hwmon'.
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
hardware is discovered.
The appstream metadata file can be checked using this command after
package build:
appstreamcli validate-tree --no-net --explain debian/i8kutils
diff --git a/debian/copyright b/debian/copyright
index 1060f98..4350454 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -27,3 +27,25 @@ License: GPL-2+
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/GPL-2'.
+
+Files: org.debian.salsa.i8kutils.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen <pere@debian.org>
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/i8kutils.install b/debian/i8kutils.install
index 14a891c..75d9d86 100644
--- a/debian/i8kutils.install
+++ b/debian/i8kutils.install
@@ -1,3 +1,4 @@
i8kmon i8kfan i8kctl /usr/bin/
dell-smm-hwmon.conf /etc/modprobe.d/
i8kmon.conf /etc/
+org.debian.salsa.i8kutils.metainfo.xml /usr/share/metainfo/
diff --git a/org.debian.salsa.i8kutils.metainfo.xml b/org.debian.salsa.i8kutils.metainfo.xml
new file mode 100644
index 0000000..b6fcd85
--- /dev/null
+++ b/org.debian.salsa.i8kutils.metainfo.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+ <id>org.debian.salsa.i8kutils</id>
+ <metadata_license>MIT</metadata_license>
+ <project_license>GPL-2+</project_license>
+ <name>i8kutils</name>
+ <summary>Fan control for Dell laptops</summary>
+ <description>
+ <p>
+ This is a collection of utilities to control Dell laptops fans. It includes
+ programs to turn the fans on and off, to read fans status, CPU temperature,
+ BIOS version.
+ </p>
+ </description>
+ <provides>
+ <modalias>dmi*:svn*DellInc.*:pn*XPS*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*MXC051*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*Studio*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*Vostro*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*Precision*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*PrecisionWorkStation490*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*MP061*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*MM061*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*Latitude*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*LatitudeD520*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*Inspiron*:</modalias>
+ <modalias>dmi*:svn*DellComputer*:pn*Latitude*:</modalias>
+ <modalias>dmi*:svn*DellComputer*:pn*Inspiron*:</modalias>
+ <modalias>dmi*:svn*DellInc.*:pn*G55590*:</modalias>
+ <modalias>lkmodule:dell-smm-hwmon</modalias>
+ </provides>
+</component>
--
Happy hacking
Petter Reinholdtsen
Reply to: