#838788 printer-driver-ptouch: Please announce supported hardware using AppStream

Package:
printer-driver-ptouch
Source:
ptouch-driver
Description:
printer driver Brother P-touch label printers
Submitter:
Petter Reinholdtsen
Date:
2025-01-25 18:12:01 UTC
Severity:
wishlist
Tags:
#838788#5
Date:
2016-09-24 20:36:47 UTC
From:
To:
Hi.

The printer-driver-ptouch package is one of the packages in the Debian
archive that should be proposed for installation when a given hardware
dongle is inserted or available.  Thanks to the appstream system, this
can now be announced in a way other tools can use and act on.  I've
written the isenkram system to ask the current user if hardware specific
packages should be installed when a new dongle is installed or already
present on a machine, and isenkram now uses appstream as one source for
hardware to package mappings.

You can read more about this on my blog,
<URL: http://people.skolelinux.org/pere/blog/Using_appstream_with_isenkram_to_install_hardware_related_packages_in_Debian.html >.

Instructions on how to create the metadata XML file can be found in
<URL: https://wiki.debian.org/AppStream/Guidelines >.

It would be great if you could add an appstream metainfo file to the
printer-driver-ptouch package, with content similar to this:

  <?xml version="1.0" encoding="UTF-8"?>
  <component>
   [...]
   <provides>
	<modalias>usb:v04F9p2015d*</modalias>
   </provides>
  </component>


If there are other hardware ids or kernel modules also supported by the
package, please add those too. :)

#838788#10
Date:
2024-05-13 21:26:25 UTC
From:
To:
Any hope to have Appstream metainfo XML included in the package now?
#838788#15
Date:
2024-07-15 12:34:42 UTC
From:
To:
Here is a patch based on the latest git repo on salsa to fix it.

diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch
new file mode 100644
index 0000000..e1e46f0
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,41 @@
+Description: Added AppStream metainfo XML with hardware provide info.
+ This allow isenkram to propose this package when the USB printer is
+ present.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-15
+---
+--- ptouch-driver-1.7.orig/Makefile.am
++++ ptouch-driver-1.7/Makefile.am
+@@ -110,8 +110,12 @@ options_DATA                      = $(addprefix generated/,
+ EXTRA_DIST                    = Doxyfile $(PACKAGE).spec.in \
+                                 $(PACKAGE)-foomatic.spec.in \
+                                 $(DRIVERS) $(PRINTERS) $(OPTIONS) \
++                                com.github.philpem.printer-driver-ptouch.metainfo.xml \
+                                 foomaticalize
+
++dist_metainfo_DATA = com.github.philpem.printer-driver-ptouch.metainfo.xml
++metainfodir = $(datarootdir)/metainfo
++
+ RPMBUILD                      = rpmbuild -ba
+ RPMSOURCESDIR                 = $(HOME)/src/SOURCES
+
+--- /dev/null
++++ ptouch-driver-1.7/com.github.philpem.printer-driver-ptouch.metainfo.xml
+@@ -0,0 +1,16 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component type="desktop">
++  <id>com.github.philpem.printer-driver-ptouch</id>
++  <metadata_license>MIT</metadata_license>
++  <project_license>GPL-2.0+</project_license>
++  <name>printer-driver-ptouch</name>
++  <summary>printer driver Brother P-touch label printers</summary>
++  <description>
++    <p>The ptouch driver is an open source driver for the Brother
++    P-touch label printers, from the QL-* and PT-* series.</p>
++  </description>
++  <url type="homepage">https://github.com/philpem/printer-driver-ptouch</url>
++  <provides>
++    <modalias>usb:v04F9p2015d*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index b1ddfd8..298d0e9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Fix-Brother-QL-600.xml.patch
+1000-appstream-metainfo.patch

#838788#22
Date:
2025-01-25 18:15:15 UTC
From:
To:
Dear Debian Printing Team and Thorsten,

Is there anything I can do to help get the AppStream fix into
unstable.