Package: python-yubico-tools Version: 1.3.3-0.3 Tags: patch User: p...@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 hardware is discovered. The appstream metadata file can be checked using this command after package build: appstreamcli validate-tree --no-net --explain debian/colord diff --git a/debian/patches/1000-appstream-metainfo.patch b/debian/patches/1000-appstream-metainfo.patch new file mode 100644 index 0000000..f6d032b --- /dev/null +++ b/debian/patches/1000-appstream-metainfo.patch @@ -0,0 +1,32 @@ +Description: Added AppStream metainfo XML with hardware provide info. + This allow isenkram to propose this package when a ethernet card is + present. +Author: Petter Reinholdtsen +Forwarded: no +Last-Update: 2024-07-20 +--- +Index: python-yubico-salsa/com.yubico.developers.python_yubico.metainfo.xml +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ python-yubico-salsa/com.yubico.developers.python_yubico.metainfo.xml 2024-07-25 17:31:37.225077356 +0200 +@@ -0,0 +1,20 @@ ++<?xml version="1.0" encoding="UTF-8"?> ++<component> ++ <id>com.yubico.developers.python_yubico</id> ++ <metadata_license>MIT</metadata_license> ++ <name>python-yubico-tools</name> ++ <summary>Tools for Yubico YubiKeys</summary> ++ <description> ++ <p>The YubiKey is a hardware authentication token. This package ++ contains utilities for the YubiKey implemented using the ++ python-yubico package.</p> ++ <p>This package currently includes the following utilities :</p> ++ <ul> ++ <li>yubikey-totp - OATH TOTP code generator using YubiKey</li> ++ </ul> ++ </description> ++ <url type="homepage">https://developers.yubico.com/python-yubico/</url> ++ <provides> ++ <modalias>usb:v1050p0010d*</modalias> ++ </provides> ++</component> diff --git a/debian/patches/series b/debian/patches/series index 8f4b960..e5f07a5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0001-Do-not-use-comparision-with-is-for-literals.patch py3k_shebang.patch python3.9.patch +1000-appstream-metainfo.patch diff --git a/debian/python-yubico-tools.install b/debian/python-yubico-tools.install index c1593d7..227c6ae 100644 --- a/debian/python-yubico-tools.install +++ b/debian/python-yubico-tools.install @@ -1 +1,2 @@ util/yubikey-totp usr/bin/ +com.yubico.developers.python_yubico.metainfo.xml usr/share/metainfo -- Happy hacking Petter Reinholdtsen