diff --git a/anda/system/dfu-programmer/anda.hcl b/anda/system/dfu-programmer/anda.hcl new file mode 100644 index 0000000000..9352a035e3 --- /dev/null +++ b/anda/system/dfu-programmer/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "dfu-programmer.spec" + } +} diff --git a/anda/system/dfu-programmer/dfu-programmer-c99.patch b/anda/system/dfu-programmer/dfu-programmer-c99.patch new file mode 100644 index 0000000000..ad03798904 --- /dev/null +++ b/anda/system/dfu-programmer/dfu-programmer-c99.patch @@ -0,0 +1,16 @@ +Include for the malloc function. + +Submitted upstream: + +diff --git a/src/atmel.c b/src/atmel.c +index 4ea794d17f65d8d0..491bbb16706e65a8 100644 +--- a/src/atmel.c ++++ b/src/atmel.c +@@ -19,6 +19,7 @@ + */ + + #include ++#include + #include + #include + #include diff --git a/anda/system/dfu-programmer/dfu-programmer.spec b/anda/system/dfu-programmer/dfu-programmer.spec new file mode 100644 index 0000000000..eaf3b427d5 --- /dev/null +++ b/anda/system/dfu-programmer/dfu-programmer.spec @@ -0,0 +1,37 @@ +Name: dfu-programmer +Version: 1.1.0 +Release: 1%?dist +Summary: A Device Firmware Update based USB programmer for Atmel chips +License: GPL-2.0-or-later +URL: https://github.com/dfu-programmer/dfu-programmer +Source0: %url/archive/refs/tags/v%version.tar.gz +Patch0: dfu-programmer-c99.patch +BuildRequires: pkgconfig(libusb-1.0) >= 1.0.0 +BuildRequires: make gcc autoconf automake + +%description +A linux based command-line programmer for Atmel chips with a USB +bootloader supporting ISP. This is a mostly Device Firmware Update +(DFU) 1.0 compliant user-space application. Supports all DFU enabled +Atmel chips with USB support. + +%prep +%autosetup -p1 +touch ./ChangeLog +autoreconf -fiv + +%build +%configure +%make_build + +%install +%make_install + +%files +%license COPYING +%doc AUTHORS ChangeLog NEWS README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1* + +%changelog +%autochangelog diff --git a/anda/system/dfu-programmer/update.rhai b/anda/system/dfu-programmer/update.rhai new file mode 100644 index 0000000000..878b46cd6d --- /dev/null +++ b/anda/system/dfu-programmer/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("dfu-programmer/dfu-programmer"));