From 7968740634741effecfb4e2e31e101a70adeb7aa Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Sat, 21 Aug 2021 15:09:48 +0300 Subject: [PATCH] Imported from SRPM --- .abf.yml | 2 ++ skopeo.rpmlintrc | 2 ++ skopeo.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 .abf.yml create mode 100644 skopeo.rpmlintrc create mode 100644 skopeo.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..eea91aa --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + skopeo-1.4.1.tar.gz: 2d7654dbace931b725b63cbcfb88d490c56eef22 diff --git a/skopeo.rpmlintrc b/skopeo.rpmlintrc new file mode 100644 index 0000000..00b1e15 --- /dev/null +++ b/skopeo.rpmlintrc @@ -0,0 +1,2 @@ +addFilter("E: shared-lib-without-dependency-information") + diff --git a/skopeo.spec b/skopeo.spec new file mode 100644 index 0000000..9fcfb37 --- /dev/null +++ b/skopeo.spec @@ -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} + +