mirror of
https://abf.rosa.ru/djam/skopeo.git
synced 2025-02-23 05:02:46 +00:00
Imported from SRPM
This commit is contained in:
commit
7968740634
3 changed files with 52 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
skopeo-1.4.1.tar.gz: 2d7654dbace931b725b63cbcfb88d490c56eef22
|
2
skopeo.rpmlintrc
Normal file
2
skopeo.rpmlintrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
addFilter("E: shared-lib-without-dependency-information")
|
||||
|
48
skopeo.spec
Normal file
48
skopeo.spec
Normal 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}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue