Files
golang-github-containers-st…/golang-github-containers-storage.spec
2025-01-14 22:47:47 +01:00

87 lines
2.1 KiB
RPMSpec

# Generated by go2rpm 1.15.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/containers/storage
%global goipath github.com/containers/storage
Version: 1.54.0
%global tag v1.54.0
%gometa -f
%global common_description %{expand:
Container Storage Library.}
%global golicenses LICENSE NOTICE pkg/mflag/LICENSE
%global godocs docs AUTHORS CODE-OF-CONDUCT.md CONTRIBUTING.md\\\
README.md SECURITY.md cmd/containers-\\\
storage/README.md pkg/archive/README.md\\\
pkg/locker/README.md example pkg/reexec/README.md\\\
pkg/stringid/README.md pkg/stringutils/README.md
Name: golang-github-containers-storage
Release: %autorelease
Summary: Container Storage Library
License: Apache-2.0 AND BSD-3-Clause
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep -A
%autopatch -p1 -q
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%if %{without bootstrap}
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
for cmd in pkg/archive; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%endif
%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 NOTICE pkg/mflag/LICENSE
%doc docs AUTHORS CODE-OF-CONDUCT.md CONTRIBUTING.md README.md SECURITY.md
%doc cmd/containers-storage/README.md pkg/archive/README.md pkg/locker/README.md
%doc pkg/reexec/README.md pkg/stringid/README.md pkg/stringutils/README.md
%{_bindir}/*
%endif
%gopkgfiles
%changelog
%autochangelog