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

2024-07-15 Thread Petter Reinholdtsen


Control: tags -1 + patch

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 000..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 @@
++
++
++  com.github.philpem.printer-driver-ptouch
++  MIT
++  GPL-2.0+
++  printer-driver-ptouch
++  printer driver Brother P-touch label printers
++  
++The ptouch driver is an open source driver for the Brother
++P-touch label printers, from the QL-* and PT-* series.
++  
++  https://github.com/philpem/printer-driver-ptouch
++  
++usb:v04F9p2015d*
++  
++
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

-- 
Happy hacking
Petter Reinholdtsen



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

2024-05-13 Thread Petter Reinholdtsen


Any hope to have Appstream metainfo XML included in the package now?

-- 
Happy hacking
Petter Reinholdtsen



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

2016-09-24 Thread Petter Reinholdtsen

Package: printer-driver-ptouch
Version: 1.4.2-1
Severity: wishlist
User: p...@hungry.com
Usertags: appstream-modalias

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, 
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
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:

  
  
   [...]
   
usb:v04F9p2015d*
   
  


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

-- 
Happy hacking
Petter Reinholdtsen