Package: avarice
Version: 2.14+svn427-2
Tags: patch
User: p...@hungry.com
Usertags: appstream-modalias

Here is a patch for avarice 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..7438498
--- /dev/null
+++ b/debian/patches/1000-appstream-metainfo.patch
@@ -0,0 +1,56 @@
+Description: Added AppStream metainfo with hardware provides.
+ Allow mapping from hardware to package.
+Author: Petter Reinholdtsen
+Forwarded: no
+Last-Update: 2024-07-14
+---
+--- avarice-2.14+svn427.orig/Makefile.am
++++ avarice-2.14+svn427/Makefile.am
+@@ -23,7 +23,11 @@ SUBDIRS = scripts src doc
+ 
+ EXTRA_DIST =          \
+       COPYING         \
++      net.sourceforge.avarice.metainfo.xml \
+       NEWS
+ 
++dist_metainfo_DATA = net.sourceforge.avarice.metainfo.xml
++metainfodir = $(datarootdir)/metainfo
++
+ dist-hook: avarice.spec
+       cp avarice.spec $(distdir)/avarice.spec
+--- /dev/null
++++ avarice-2.14+svn427/net.sourceforge.avarice.metainfo.xml
+@@ -0,0 +1,33 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<component>
++  <id>net.sourceforge.avarice</id>
++  <metadata_license>MIT</metadata_license>
++  <name>avarice</name>
++  <summary>use GDB with Atmel AVR debuggers</summary>
++  <description>
++    <p>AVaRICE is a program which interfaces the GNU Debugger with the
++    AVR JTAG ICE, and other debuggers, available from Atmel. It
++    connects to gdb via a TCP socket and communicates via gdb's
++    "serial debug protocol".</p>
++
++    <p>This protocol allows gdb to send commands like "set/remove
++    breakpoint" and "read/write memory". AVaRICE translates this
++    commands into the Atmel protocol used to control the JTAG ICE (or
++    other) debugger.</p>
++
++    <p>Because the GDB-AVaRICE connection is via a TCP socket, the two
++    programs do not need to run on the same machine.</p>
++
++    <p>The currently supported debuggers are:</p>
++    <ul>
++      <li>JTAG ICE mkI</li>
++      <li>JTAG ICE mkII</li>
++      <li>AVR Dragon</li>
++    </ul>
++  </description>
++  <provides>
++    <modalias>usb:v30EBp2103d*</modalias>
++    <modalias>usb:v30EBp2107d*</modalias>
++    <modalias>usb:v30EBp2110d*</modalias>
++  </provides>
++</component>
diff --git a/debian/patches/series b/debian/patches/series
index 29aa285..1d1845c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 dont-link-with-shared-version-of-libbfd.patch
+1000-appstream-metainfo.patch

I will also take the liberty to commit this patch to the git repository
on salsa as soon as I know the BTS report number for this request.

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to