diff --git a/anda/desktops/waylands/cliphist/anda.hcl b/anda/desktops/waylands/cliphist/anda.hcl new file mode 100644 index 0000000000..1392c65ae0 --- /dev/null +++ b/anda/desktops/waylands/cliphist/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "golang-github-sentriz-cliphist.spec" + } +} diff --git a/anda/desktops/waylands/cliphist/golang-github-sentriz-cliphist.spec b/anda/desktops/waylands/cliphist/golang-github-sentriz-cliphist.spec new file mode 100644 index 0000000000..b2b9c2d5a6 --- /dev/null +++ b/anda/desktops/waylands/cliphist/golang-github-sentriz-cliphist.spec @@ -0,0 +1,78 @@ +# 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/sentriz/cliphist +%global goipath github.com/sentriz/cliphist +Version: 0.6.1 + +%gometa -f + +%global common_description %{expand: +Wayland clipboard manager with support for multimedia.} + +%global golicenses LICENSE +%global godocs CHANGELOG.md readme.md version.txt + +Name: golang-github-sentriz-cliphist +Release: %autorelease +Summary: Wayland clipboard manager with support for multimedia +Provides: cliphist +Packager: madonuko +License: GPL-3.0-only +URL: %{gourl} +Source: %{gosource} +BuildRequires: anda-srpm-macros + +%description %{common_description} + +%gopkg + +%prep +%goprep -A +%autopatch -p1 +%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}/cliphist +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE +%doc CHANGELOG.md readme.md +%{_bindir}/cliphist +%endif + +#gopkgfiles + +%changelog +%autochangelog diff --git a/anda/desktops/waylands/cliphist/update.rhai b/anda/desktops/waylands/cliphist/update.rhai new file mode 100644 index 0000000000..d02ad7bfd1 --- /dev/null +++ b/anda/desktops/waylands/cliphist/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("sentriz/cliphist"));