%define debug %nil %define debug_package %nil Name: skopeo Version: 1.11.1 Release: 1 Summary: Tools image comtainers or registry URL: https://github.com/containers/skopeo Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1000: %{name}.rpmlintrc License: ASL 2.0 Group: Development/Other BuildRequires: go >= 1.16 BuildRequires: git-core BuildRequires: upx BuildRequires: gpgme-devel BuildRequires: pkgconfig(devmapper) %description skopeo is a command line utility that performs various operations on container images and image repositories. skopeo does not require the user to be running as root to do most of its operations. skopeo does not require a daemon to be running to perform its operations. skopeo can work with OCI images as well as the original Docker v2 images. %prep %setup -q %build CGO_CFLAGS="" CGO_LDFLAGS="-L/usr/lib64 -lgpgme -lassuan -lgpg-error" GO111MODULE=on go build -mod=vendor "-buildmode=pie" -ldflags '-X main.gitCommit= ' -gcflags "" -tags "btrfs_noversion exclude_graphdriver_btrfs " -o bin/skopeo ./cmd/skopeo upx bin/%{name} %install install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name} %files %doc README.md LICENSE %{_bindir}/%{name}