diff --git a/anda/tools/pet/anda.hcl b/anda/tools/pet/anda.hcl new file mode 100644 index 0000000000..bfd35afe2a --- /dev/null +++ b/anda/tools/pet/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "pet.spec" + } +} \ No newline at end of file diff --git a/anda/tools/pet/pet.spec b/anda/tools/pet/pet.spec new file mode 100644 index 0000000000..343139088c --- /dev/null +++ b/anda/tools/pet/pet.spec @@ -0,0 +1,33 @@ +%define debug_package %nil + +Name: pet +Version: 0.9.0 +Release: 1%?dist +Summary: Simple command-line snippet manager +URL: https://github.com/knqyf263/pet +Source0: %url/archive/refs/tags/v%version.tar.gz +License: MIT +BuildRequires: golang anda-srpm-macros +Packager: Owen Zimmerman + +%description +%summary + +%prep +%autosetup -n pet-%version +%go_prep_online + +%build +%go_build_online + +%install +install -Dm755 build/bin/pet %{buildroot}%{_bindir}/pet + +%files +%license LICENSE +%doc README.md +%{_bindir}/pet + +%changelog +* Wed Oct 2 2024 Owen-sz - 0.9.0-1 +- package pet diff --git a/anda/tools/pet/update.rhai b/anda/tools/pet/update.rhai new file mode 100644 index 0000000000..b6ebb713ab --- /dev/null +++ b/anda/tools/pet/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("knqyf263/pet")); \ No newline at end of file