From 8026f499e6c87944e13a07956cff8b660a274323 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 19 Dec 2024 09:29:32 -0800 Subject: [PATCH] add: clipse (#2675) (#2686) * add: clipse * -linkmode=external? (cherry picked from commit de88c606cfb4381bd34d084d5a5d33407dfd06d5) Co-authored-by: madomado --- anda/desktops/waylands/clipse/anda.hcl | 5 ++ .../clipse/golang-github-savedra1-clipse.spec | 79 +++++++++++++++++++ anda/desktops/waylands/clipse/update.rhai | 1 + 3 files changed, 85 insertions(+) create mode 100644 anda/desktops/waylands/clipse/anda.hcl create mode 100644 anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec create mode 100644 anda/desktops/waylands/clipse/update.rhai diff --git a/anda/desktops/waylands/clipse/anda.hcl b/anda/desktops/waylands/clipse/anda.hcl new file mode 100644 index 0000000000..65987a1de1 --- /dev/null +++ b/anda/desktops/waylands/clipse/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-savedra1-clipse.spec" + } +} diff --git a/anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec b/anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec new file mode 100644 index 0000000000..043c79f46c --- /dev/null +++ b/anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec @@ -0,0 +1,79 @@ +# Generated by go2rpm 1.14.0 +%bcond check 0 +%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/savedra1/clipse +%global goipath github.com/savedra1/clipse +Version: 1.1.0 + +%gometa -f + +%global common_description %{expand: +Configurable TUI clipboard manager for Unix.} + +%global golicenses LICENSE +%global godocs CHANGELOG.md README.md examples resources/library.md\\\ + resources/test_data/top_secret_credentials.txt + +Name: golang-github-savedra1-clipse +Release: %autorelease +Summary: Configurable TUI clipboard manager for Unix +Provides: clipse +Packager: madonuko +License: MIT +URL: %{gourl} +Source: %{gosource} +BuildRequires: anda-srpm-macros + +%description %{common_description} + +%gopkg + +%prep +%autosetup -p1 -n clipse-%version +%go_prep_online + +#if %{without bootstrap} +#generate_buildrequires +#go_generate_buildrequires +#endif + +%if %{without bootstrap} +%build +mkdir -p build/bin +go build -ldflags="-linkmode=external" -o build/bin/%{name} +%endif + +%install +#gopkginstall +%if %{without bootstrap} +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp build/bin/%name %{buildroot}%{_bindir}/clipse +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE +%doc CHANGELOG.md README.md +%{_bindir}/clipse +%endif + +#gopkgfiles + +%changelog +%autochangelog diff --git a/anda/desktops/waylands/clipse/update.rhai b/anda/desktops/waylands/clipse/update.rhai new file mode 100644 index 0000000000..7a937f5e22 --- /dev/null +++ b/anda/desktops/waylands/clipse/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("savedra1/clipse"));