From f60281c0f578a8945bc014eeeb57356bba039a5e Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:56:56 -0700 Subject: [PATCH] add: pet (#2127) (#2132) * initial package for pet * Update update.rhai Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * Update pet.spec Remove build ID workaround Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * Update pet.spec Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --------- Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> (cherry picked from commit d16ff41d4d74f4d2bde8fdb325fc9f65f8c3f1b9) Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/tools/pet/anda.hcl | 5 +++++ anda/tools/pet/pet.spec | 33 +++++++++++++++++++++++++++++++++ anda/tools/pet/update.rhai | 1 + 3 files changed, 39 insertions(+) create mode 100644 anda/tools/pet/anda.hcl create mode 100644 anda/tools/pet/pet.spec create mode 100644 anda/tools/pet/update.rhai 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