Imported from SRPM

This commit is contained in:
Sergey Zhemoitel 2021-08-21 15:09:48 +03:00
commit 7968740634
3 changed files with 52 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
skopeo-1.4.1.tar.gz: 2d7654dbace931b725b63cbcfb88d490c56eef22

2
skopeo.rpmlintrc Normal file
View file

@ -0,0 +1,2 @@
addFilter("E: shared-lib-without-dependency-information")

48
skopeo.spec Normal file
View file

@ -0,0 +1,48 @@
%define debug %nil
%define debug_package %nil
Name: skopeo
Version: 1.4.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.11
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}