add: cliphist (#2676) (#2689)

(cherry picked from commit c56ff01484)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2024-12-19 09:29:56 -08:00
committed by GitHub
parent 47b7d3232d
commit 8ce276d6d8
3 changed files with 84 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "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 <mado@fyralabs.com>
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
@@ -0,0 +1 @@
rpm.version(gh("sentriz/cliphist"));