From 652e65f0dfaee9bd081bd09188bcc9c677e387df Mon Sep 17 00:00:00 2001 From: sadlerm4 Date: Mon, 10 Feb 2025 01:14:49 +1100 Subject: [PATCH] add: prs --- anda/langs/go/prs/anda.hcl | 5 ++ anda/langs/go/prs/golang-github-dhth-prs.spec | 77 +++++++++++++++++++ anda/langs/go/prs/update.rhai | 1 + 3 files changed, 83 insertions(+) create mode 100644 anda/langs/go/prs/anda.hcl create mode 100644 anda/langs/go/prs/golang-github-dhth-prs.spec create mode 100644 anda/langs/go/prs/update.rhai diff --git a/anda/langs/go/prs/anda.hcl b/anda/langs/go/prs/anda.hcl new file mode 100644 index 0000000000..f82342d013 --- /dev/null +++ b/anda/langs/go/prs/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-dhth-prs.spec" + } +} diff --git a/anda/langs/go/prs/golang-github-dhth-prs.spec b/anda/langs/go/prs/golang-github-dhth-prs.spec new file mode 100644 index 0000000000..1c7646a4f3 --- /dev/null +++ b/anda/langs/go/prs/golang-github-dhth-prs.spec @@ -0,0 +1,77 @@ +# Generated by go2rpm 1.15.0 +%bcond check 1 +%bcond bootstrap 0 + +%if %{with bootstrap} +%global debug_package %{nil} +%endif + +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +# https://github.com/dhth/prs +%global goipath github.com/dhth/prs +Version: 1.0.0 + +%gometa -f + +%global common_description %{expand: +Stay updated on PRs from your terminal.} + +%global golicenses LICENSE +%global godocs README.md ui/assets/help.md + +Name: golang-github-dhth-prs +Release: %autorelease +Summary: Stay updated on PRs from your terminal + +License: MIT +URL: %{gourl} +Source: %{gosource} + +BuildRequires: anda-srpm-macros + +Packager: sadlerm + +%description %{common_description} + +%gopkg + +%prep +%goprep -A + +%if %{without bootstrap} +%generate_buildrequires +%go_generate_buildrequires +%endif + +%build +%gobuild -o %{gobuilddir}/bin/prs %{goipath} + +%install +%gopkginstall +%if %{without bootstrap} +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE +%doc README.md ui/assets/help.md +%{_bindir}/prs +%endif + +%gopkgfiles + +%changelog +* Sun Feb 9 2025 sadlerm +- Initial package diff --git a/anda/langs/go/prs/update.rhai b/anda/langs/go/prs/update.rhai new file mode 100644 index 0000000000..f2a9168c14 --- /dev/null +++ b/anda/langs/go/prs/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("dhth/prs"));