Petter Reinholdtsen
2024-07-16 15:30:02 UTC
Package: w1retap
Version: 1.4.6-1
Tags: patch
User: ***@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 USB
IDs are discovered.
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..de7b18d
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,46 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the USB dongle is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-16
+---
+Index: w1retap-salsa/uk.co.zen.zen35309.wx.w1retap.metainfo.xml
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ w1retap-salsa/uk.co.zen.zen35309.wx.w1retap.metainfo.xml 2024-07-16 17:03:51.107503991 +0200
+@@ -0,0 +1,19 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++ <id>uk.co.zen.zen35309.wx.w1retap</id>
++ <metadata_license>MIT</metadata_license>
++ <name>w1retap</name>
++ <summary>Data logger for 1-Wire weather sensors</summary>
++ <description>
++ <p>The w1retap package reads weather sensors on a 1-Wire bus and
++ logs the retrieved data to the configured databases or files. It
++ supports a number of different 1-Wire host bus adapters and 1-Wire
++ sensors designed by Dallas Semiconductor Corp (now Maxim
++ Integrated) and compatible sensors including those from AAG
++ Electrónica and other hobby sensors.</p>
++ </description>
++ <url type="homepage">http://www.zen35309.zen.co.uk/wx/tech.html</url>
++ <provides>
++ <modalias>usb:v04FAp2490d*</modalias>
++ </provides>
++</component>
+Index: w1retap-salsa/Makefile.am
+===================================================================
+--- w1retap-salsa.orig/Makefile.am 2024-07-16 17:03:11.000000000 +0200
++++ w1retap-salsa/Makefile.am 2024-07-16 17:05:06.156407411 +0200
+@@ -1,5 +1,9 @@
+ SUBDIRS = src
+-EXTRA_DIST = docs autogen.sh contrib
++EXTRA_DIST = docs autogen.sh contrib \
++ uk.co.zen.zen35309.wx.w1retap.metainfo.xml
++
++dist_metainfo_DATA = uk.co.zen.zen35309.wx.w1retap.metainfo.xml
++metainfodir = $(datarootdir)/metainfo
+
+ dist-hook:
+ rm -rf `find $(distdir) -name .svn`
diff --git a/debian/patches/series b/debian/patches/series
index b55661e..b983def 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ fix-timet.patch
fix-autotools-pkg-config.patch
fix-autotools-libxml2.patch
fix-owerr-spelling.patch
+1000-appstream-metainfo.patch
diff --git a/debian/w1retap.install b/debian/w1retap.install
index 138b827..443a8e4 100644
--- a/debian/w1retap.install
+++ b/debian/w1retap.install
@@ -10,3 +10,4 @@ usr/lib/*/w1retap/libw1file.so*
usr/lib/*/w1retap/libw1serial.so*
usr/lib/*/w1retap/libw1usb.so*
usr/lib/*/w1retap/libw1xml.so*
+usr/share/metainfo/uk.co.zen.zen35309.wx.w1retap.metainfo.xml
Version: 1.4.6-1
Tags: patch
User: ***@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 USB
IDs are discovered.
diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..de7b18d
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,46 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the USB dongle is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-16
+---
+Index: w1retap-salsa/uk.co.zen.zen35309.wx.w1retap.metainfo.xml
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ w1retap-salsa/uk.co.zen.zen35309.wx.w1retap.metainfo.xml 2024-07-16 17:03:51.107503991 +0200
+@@ -0,0 +1,19 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++ <id>uk.co.zen.zen35309.wx.w1retap</id>
++ <metadata_license>MIT</metadata_license>
++ <name>w1retap</name>
++ <summary>Data logger for 1-Wire weather sensors</summary>
++ <description>
++ <p>The w1retap package reads weather sensors on a 1-Wire bus and
++ logs the retrieved data to the configured databases or files. It
++ supports a number of different 1-Wire host bus adapters and 1-Wire
++ sensors designed by Dallas Semiconductor Corp (now Maxim
++ Integrated) and compatible sensors including those from AAG
++ Electrónica and other hobby sensors.</p>
++ </description>
++ <url type="homepage">http://www.zen35309.zen.co.uk/wx/tech.html</url>
++ <provides>
++ <modalias>usb:v04FAp2490d*</modalias>
++ </provides>
++</component>
+Index: w1retap-salsa/Makefile.am
+===================================================================
+--- w1retap-salsa.orig/Makefile.am 2024-07-16 17:03:11.000000000 +0200
++++ w1retap-salsa/Makefile.am 2024-07-16 17:05:06.156407411 +0200
+@@ -1,5 +1,9 @@
+ SUBDIRS = src
+-EXTRA_DIST = docs autogen.sh contrib
++EXTRA_DIST = docs autogen.sh contrib \
++ uk.co.zen.zen35309.wx.w1retap.metainfo.xml
++
++dist_metainfo_DATA = uk.co.zen.zen35309.wx.w1retap.metainfo.xml
++metainfodir = $(datarootdir)/metainfo
+
+ dist-hook:
+ rm -rf `find $(distdir) -name .svn`
diff --git a/debian/patches/series b/debian/patches/series
index b55661e..b983def 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ fix-timet.patch
fix-autotools-pkg-config.patch
fix-autotools-libxml2.patch
fix-owerr-spelling.patch
+1000-appstream-metainfo.patch
diff --git a/debian/w1retap.install b/debian/w1retap.install
index 138b827..443a8e4 100644
--- a/debian/w1retap.install
+++ b/debian/w1retap.install
@@ -10,3 +10,4 @@ usr/lib/*/w1retap/libw1file.so*
usr/lib/*/w1retap/libw1serial.so*
usr/lib/*/w1retap/libw1usb.so*
usr/lib/*/w1retap/libw1xml.so*
+usr/share/metainfo/uk.co.zen.zen35309.wx.w1retap.metainfo.xml
--
Happy hacking
Petter Reinholdtsen
Happy hacking
Petter Reinholdtsen