Files
packages/anda/tools/pet/pet.spec
T
madonuko cf1bea9c36 chore(sync): frawhide -> el10
anda/desktops/waylands anda/devs/ anda/langs/ anda/lib/astal anda/tools
2025-08-29 03:10:59 +08:00

73 lines
1.3 KiB
RPMSpec

# Generated by go2rpm 1.17.1
%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/knqyf263/pet
%global goipath github.com/knqyf263/pet
Version: 1.0.1
%gometa -f
%global common_description %{expand:
Simple command-line snippet manager.}
%global golicenses LICENSE
%global godocs doc README.md SECURITY.md
Name: pet
Release: 2%?dist
Summary: Simple command-line snippet manager
License: MIT
URL: %{gourl}
Source: %{gosource}
Provides: golang-github-knqyf263-pet = %evr
Packager: Owen Zimmerman <owen@fyralabs.com>
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1
%build
%define gomodulesmode GO111MODULE=on
%gobuild -o %{gobuilddir}/bin/pet %{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 doc README.md SECURITY.md
%{_bindir}/pet
%endif
%gopkgfiles
%changelog
%autochangelog