# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/containers/storage %global goipath github.com/containers/storage Version: 1.37.1 %gometa %global common_description %{expand: # FIXME} %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 pkg/reexec/README.md\\\ pkg/stringid/README.md pkg/stringutils/README.md Name: %{goname} Release: 1%{?dist} Summary: None # Upstream license specification: BSD-3-Clause and Apache-2.0 License: BSD and ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: btrfs-progs-devel BuildRequires: device-mapper-devel %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %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 %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %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 %doc pkg/stringutils/README.md %{_bindir}/* %gopkgfiles %changelog * Thu Mar 31 2022 Ondřej Budai - 1.37.1-1 - Initial package