From 0d03075cdf1873f8fbcd018f9d4b952df40667a9 Mon Sep 17 00:00:00 2001 From: madonuko Date: Thu, 19 Dec 2024 19:29:11 +0800 Subject: [PATCH 1/6] add: clipse --- anda/apps/clipse/anda.hcl | 5 ++ .../clipse/golang-github-savedra1-clipse.spec | 77 +++++++++++++++++++ anda/apps/clipse/update.rhai | 1 + 3 files changed, 83 insertions(+) create mode 100644 anda/apps/clipse/anda.hcl create mode 100644 anda/apps/clipse/golang-github-savedra1-clipse.spec create mode 100644 anda/apps/clipse/update.rhai diff --git a/anda/apps/clipse/anda.hcl b/anda/apps/clipse/anda.hcl new file mode 100644 index 000000000..65987a1de --- /dev/null +++ b/anda/apps/clipse/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-savedra1-clipse.spec" + } +} diff --git a/anda/apps/clipse/golang-github-savedra1-clipse.spec b/anda/apps/clipse/golang-github-savedra1-clipse.spec new file mode 100644 index 000000000..ebf965b19 --- /dev/null +++ b/anda/apps/clipse/golang-github-savedra1-clipse.spec @@ -0,0 +1,77 @@ +# 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 + +License: MIT +URL: %{gourl} +Source: %{gosource} + +%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 +%go_build_online +%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/apps/clipse/update.rhai b/anda/apps/clipse/update.rhai new file mode 100644 index 000000000..7a937f5e2 --- /dev/null +++ b/anda/apps/clipse/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("savedra1/clipse")); From a6f32e3a0f955ce4eff0aac458c65a1bc937d2ac Mon Sep 17 00:00:00 2001 From: madonuko Date: Thu, 19 Dec 2024 19:42:52 +0800 Subject: [PATCH 2/6] -linkmode=external? --- anda/apps/clipse/golang-github-savedra1-clipse.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anda/apps/clipse/golang-github-savedra1-clipse.spec b/anda/apps/clipse/golang-github-savedra1-clipse.spec index ebf965b19..32fec3b17 100644 --- a/anda/apps/clipse/golang-github-savedra1-clipse.spec +++ b/anda/apps/clipse/golang-github-savedra1-clipse.spec @@ -47,7 +47,8 @@ Source: %{gosource} %if %{without bootstrap} %build -%go_build_online +mkdir -p build/bin +go build -ldflags="-linkmode=external" -o build/bin/%{name} %endif %install From e08360522e1fae0b70fbb545126d0d9d87d24081 Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 19 Dec 2024 19:47:24 +0800 Subject: [PATCH 3/6] packager Signed-off-by: madomado --- anda/apps/clipse/golang-github-savedra1-clipse.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/apps/clipse/golang-github-savedra1-clipse.spec b/anda/apps/clipse/golang-github-savedra1-clipse.spec index 32fec3b17..71a62e5f2 100644 --- a/anda/apps/clipse/golang-github-savedra1-clipse.spec +++ b/anda/apps/clipse/golang-github-savedra1-clipse.spec @@ -27,7 +27,7 @@ Name: golang-github-savedra1-clipse Release: %autorelease Summary: Configurable TUI clipboard manager for Unix Provides: clipse - +Packager: madonuko License: MIT URL: %{gourl} Source: %{gosource} From a325c4c033c00383db6f7d77c13ed9e3298b80f6 Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 19 Dec 2024 19:50:13 +0800 Subject: [PATCH 4/6] anda-srpm-macros Signed-off-by: madomado --- anda/apps/clipse/golang-github-savedra1-clipse.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/anda/apps/clipse/golang-github-savedra1-clipse.spec b/anda/apps/clipse/golang-github-savedra1-clipse.spec index 71a62e5f2..a14108036 100644 --- a/anda/apps/clipse/golang-github-savedra1-clipse.spec +++ b/anda/apps/clipse/golang-github-savedra1-clipse.spec @@ -31,6 +31,7 @@ Packager: madonuko License: MIT URL: %{gourl} Source: %{gosource} +BuildRequries: anda-srpm-macros %description %{common_description} From d76b5aeab1a67ab8ff4e087f3cd15fb5d4a4530e Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 19 Dec 2024 19:53:04 +0800 Subject: [PATCH 5/6] only if I spell correctly Signed-off-by: madomado --- anda/apps/clipse/golang-github-savedra1-clipse.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/apps/clipse/golang-github-savedra1-clipse.spec b/anda/apps/clipse/golang-github-savedra1-clipse.spec index a14108036..043c79f46 100644 --- a/anda/apps/clipse/golang-github-savedra1-clipse.spec +++ b/anda/apps/clipse/golang-github-savedra1-clipse.spec @@ -31,7 +31,7 @@ Packager: madonuko License: MIT URL: %{gourl} Source: %{gosource} -BuildRequries: anda-srpm-macros +BuildRequires: anda-srpm-macros %description %{common_description} From 3ff878512a900c926bf89f1d281b2918f1cf0df5 Mon Sep 17 00:00:00 2001 From: madonuko Date: Fri, 20 Dec 2024 00:00:06 +0800 Subject: [PATCH 6/6] move --- anda/{apps => desktops/waylands}/clipse/anda.hcl | 0 .../waylands}/clipse/golang-github-savedra1-clipse.spec | 0 anda/{apps => desktops/waylands}/clipse/update.rhai | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename anda/{apps => desktops/waylands}/clipse/anda.hcl (100%) rename anda/{apps => desktops/waylands}/clipse/golang-github-savedra1-clipse.spec (100%) rename anda/{apps => desktops/waylands}/clipse/update.rhai (100%) diff --git a/anda/apps/clipse/anda.hcl b/anda/desktops/waylands/clipse/anda.hcl similarity index 100% rename from anda/apps/clipse/anda.hcl rename to anda/desktops/waylands/clipse/anda.hcl diff --git a/anda/apps/clipse/golang-github-savedra1-clipse.spec b/anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec similarity index 100% rename from anda/apps/clipse/golang-github-savedra1-clipse.spec rename to anda/desktops/waylands/clipse/golang-github-savedra1-clipse.spec diff --git a/anda/apps/clipse/update.rhai b/anda/desktops/waylands/clipse/update.rhai similarity index 100% rename from anda/apps/clipse/update.rhai rename to anda/desktops/waylands/clipse/update.rhai