xr-hardware is literally just the udev rules, not any actual useful
software that can use that hardware. The packages that provide support
for that hardware are the ones that should have the metadata. I put
udev rules here in a separate package for separation of concerns and
because some hardware works with multiple software packages.

Rylie


On Mon, 29 Apr 2024 13:10:01 +0200 Petter Reinholdtsen <p...@hungry.com> wrote:
>
> Package: xr-hardware
> Version: 1.1.1-1
> Tags: patch
>
> It would be very nice if programs using the Appstream metainfo to locate
> relevant package, would know which hardware is supported by this
> package.  This way programs like isenkram would propose the xr-hardwrae
> package when a relevant USB device is inserted.
>
> I started with the /usr/lib/udev/rules.d/70-xrhardware.rules file and
> used its listed USB IDs to generate the modalias entries in the metainfo
> XML.  There were a few entries I did not understand (the KERNELS==
> entries), so these are not represented in the XML.
>
> Please apply this to a future upload of xr-hardware.
>
> diff --git a/debian/copyright b/debian/copyright
> index 88fbd06..11ba17d 100644
> --- a/debian/copyright
> +++ b/debian/copyright
> @@ -52,6 +52,29 @@ Files: xrhardware/db.py
>  Copyright: 2019-2024, Collabora, Ltd. and the xr-hardware contributors
>  License: BSL-1.0
>
> +Files: debian/xr-hardware.metainfo.xml
> +Copyright: 2024 Petter Reinholdtsen
> +License: MIT
> + Permission is hereby granted, free of charge, to any person obtaining
> + a copy of this software and associated documentation files (the
> + "Software"), to deal in the Software without restriction, including
> + without limitation the rights to use, copy, modify, merge, publish,
> + distribute, sublicense, and/or sell copies of the Software, and to
> + permit persons to whom the Software is furnished to do so, subject to
> + the following conditions:
> + .
> + The above copyright notice and this permission notice shall be
> + included in all copies or substantial portions of the Software.
> + .
> + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
> + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
> + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
> + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
> + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> + SOFTWARE.
> +
>  License: BSL-1.0
>   Boost Software License - Version 1.0 - August 17th, 2003
>   .
> diff --git a/debian/xr-hardware.install b/debian/xr-hardware.install
> index 59f1f7b..aa7a1ea 100644
> --- a/debian/xr-hardware.install
> +++ b/debian/xr-hardware.install
> @@ -1 +1,2 @@
>  70-xrhardware.rules ${env:deb_udevdir}/rules.d/
> +debian/xr-hardware.metainfo.xml usr/share/metainfo
> diff --git a/debian/xr-hardware.metainfo.xml b/debian/xr-hardware.metainfo.xml
> new file mode 100644

Reply via email to