[Pkg-electronics-devel] Bug#1071004: openfpgaloader: Add Appstream metainfo announcing HW support

Petter Reinholdtsen pere at hungry.com
Sun May 12 21:45:42 BST 2024


Package: openfpgaloader
Version: 0.12.0-1
Tags: patch

Here is a patch for openfpgaloader 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/com.github.trabucayre.openFPGALoader.metainfo.xml b/debian/com.github.trabucayre.openFPGALoader.metainfo.xml
new file mode 100644
index 0000000..03b881c
--- /dev/null
+++ b/debian/com.github.trabucayre.openFPGALoader.metainfo.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component>
+  <id>com.github.trabucayre.openFPGALoader</id>
+  <metadata_license>MIT</metadata_license>
+  <name>openfpgaloader</name>
+  <summary>Universal utility for programming FPGAs</summary>
+  <description>
+    <p>FPGAs are software-programmable reconfigurable circuits that
+    when may implement arbitrary logics, be it to interface to other
+    hardware as some sort of glue logic or to even outsource
+    computations from your CPU as an accelerator. Even small FPGAs are
+    today sufficiently capable to simulate a CPU.</p>
+
+    <p>This package knows how to bring the firmware that is built on a
+    regular computer, e.g., with yosys and assorted tools, to the FPGA
+    board, such that such a bitstream is then executed.</p>
+
+    <p>OpenFPGALoader is compatible with many boards, cables and FPGA
+    from major manufacturers (Xilinx, Altera/Intel, Lattice, Gowin,
+    Efinix, Anlogic, Cologne Chip).</p>
+  </description>
+  <provides>
+    <modalias>usb:v0403%6001d*</modalias>
+    <modalias>usb:v0403%6010d*</modalias>
+    <modalias>usb:v0403%6011d*</modalias>
+    <modalias>usb:v0403%6014d*</modalias>
+    <modalias>usb:v0403%6015d*</modalias>
+    <modalias>usb:v0547%1002d*</modalias>
+    <modalias>usb:v09FB%6001d*</modalias>
+    <modalias>usb:v09FB%6002d*</modalias>
+    <modalias>usb:v09FB%6003d*</modalias>
+    <modalias>usb:v09FB%6810d*</modalias>
+    <modalias>usb:v09FB%6010d*</modalias>
+    <modalias>usb:v1209%C0CAd*</modalias>
+    <modalias>usb:v1366%0105d*</modalias>
+    <modalias>usb:v1FC9%0090d*</modalias>
+    <modalias>usb:v0D28%0204d*</modalias>
+    <modalias>usb:v1D50%6146d*</modalias>
+    <modalias>usb:v1209%3442d*</modalias>
+    <modalias>usb:v1A86%55DDd*</modalias>
+  </provides>
+</component>
diff --git a/debian/copyright b/debian/copyright
index df02009..c79b1e2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -62,6 +62,27 @@ Files: debian/*
 Copyright: 2022 Steffen Moeller <moeller at debian.org>
 License: Apache-2.0
 
+Files: debian/com.github.trabucayre.openFPGALoader.metainfo.xml
+Copyright: 2024 Petter Reinholdtsen <pere at debian.org>
+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: Apache-2.0
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
diff --git a/debian/openfpgaloader.install b/debian/openfpgaloader.install
index ca936dc..181850a 100644
--- a/debian/openfpgaloader.install
+++ b/debian/openfpgaloader.install
@@ -1 +1,2 @@
 99-openfpgaloader.rules lib/udev/rules.d
+debian/com.github.trabucayre.openFPGALoader.metainfo.xml usr/share/metainfo

-- 
Happy hacking
Petter Reinholdtsen



More information about the Pkg-electronics-devel mailing list