import skopeo-1.4.1-1.module+el8.5.0+12332+af0a4708

This commit is contained in:
CentOS Sources 2021-08-25 00:28:03 +00:00 committed by Andrew Lukoshko
parent a7fb411cb9
commit 046a8a6f33
3 changed files with 31 additions and 20 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/release-1.4-a44da44.tar.gz SOURCES/v1.4.1.tar.gz

View File

@ -1 +1 @@
57fcf42eb601e54559ecfba64a692d3158faa0db SOURCES/release-1.4-a44da44.tar.gz 2d7654dbace931b725b63cbcfb88d490c56eef22 SOURCES/v1.4.1.tar.gz

View File

@ -13,33 +13,34 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl
%endif %endif
%global import_path github.com/containers/skopeo %global import_path github.com/containers/skopeo
%global branch release-1.4 #%%global branch release-1.4
%global commit0 a44da449d35e4621e9993f406d5a4f98dd89965e #%%global commit0 ea32394313d673932b62520ae47a2b7c3956e572
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) #%%global shortcommit0 %%(c=%%{commit0}; echo ${c:0:7})
Epoch: 1 Epoch: 1
Name: skopeo Name: skopeo
Version: 1.4.0 Version: 1.4.1
Release: 6%{?dist} Release: 1%{?dist}
Summary: Inspect container images and repositories on registries Summary: Inspect container images and repositories on registries
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/containers/skopeo URL: https://github.com/containers/skopeo
# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures # https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures
ExclusiveArch: %{go_arches} ExclusiveArch: %{go_arches}
%if 0%{?branch:1} #%%if 0%%{?branch:1}
Source0: https://%{import_path}/tarball/%{commit0}/%{branch}-%{shortcommit0}.tar.gz #Source0: https://%%{import_path}/tarball/%%{commit0}/%%{branch}-%%{shortcommit0}.tar.gz
%else #%%else
Source0: https://%{import_path}/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz #Source0: https://%%{import_path}/archive/%%{commit0}/%%{name}-%%{version}-%%{shortcommit0}.tar.gz
%endif #%%endif
Source0: %{url}/archive/v%{version}.tar.gz
BuildRequires: git-core BuildRequires: git-core
BuildRequires: golang >= 1.12.12-4 BuildRequires: golang >= 1.16.6
BuildRequires: go-md2man BuildRequires: go-md2man
BuildRequires: gpgme-devel BuildRequires: gpgme-devel
BuildRequires: libassuan-devel BuildRequires: libassuan-devel
BuildRequires: pkgconfig(devmapper) BuildRequires: pkgconfig(devmapper)
BuildRequires: glib2-devel BuildRequires: glib2-devel
BuildRequires: make BuildRequires: make
Requires: containers-common Requires: containers-common >= 2:1-2
%description %description
Command line utility to inspect images and repositories directly on Docker Command line utility to inspect images and repositories directly on Docker
@ -61,11 +62,12 @@ Requires: openssl
This package contains system tests for %{name} This package contains system tests for %{name}
%prep %prep
%if 0%{?branch:1} #%%if 0%{?branch:1}
%autosetup -Sgit -n containers-%{name}-%{shortcommit0} #%%autosetup -Sgit -n containers-%%{name}-%%{shortcommit0}
%else #%%else
%autosetup -Sgit -n %{name}-%{commit0} #%%autosetup -Sgit -n %%{name}-%%{commit0}
%endif #%%endif
%autosetup -Sgit -n %{name}-%{version}
sed -i 's/install-binary: bin\/%{name}/install-binary:/' Makefile sed -i 's/install-binary: bin\/%{name}/install-binary:/' Makefile
sed -i 's/install-docs: docs/install-docs:/' Makefile sed -i 's/install-docs: docs/install-docs:/' Makefile
@ -90,7 +92,7 @@ mkdir -p bin
%{__make} docs %{__make} docs
%install %install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} make install-binary install-docs install-completions DESTDIR=%{buildroot} PREFIX=%{_prefix}
# remove bits which are parts of containers-common # remove bits which are parts of containers-common
rm -f %{buildroot}/%{_sysconfdir}/containers/policy.json rm -f %{buildroot}/%{_sysconfdir}/containers/policy.json
@ -124,6 +126,15 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%{_datadir}/%{name}/test %{_datadir}/%{name}/test
%changelog %changelog
* Fri Aug 20 2021 Lokesh Mandvekar <lsm5@redhat.com> - 1:1.4.1-1
- update to v1.4.1
- Related: #1934415
* Tue Aug 17 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.4.0-7
- update to the latest content of https://github.com/containers/skopeo/tree/release-1.4
(https://github.com/containers/skopeo/commit/ea32394)
- Related: #1934415
* Wed Aug 11 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.4.0-6 * Wed Aug 11 2021 Jindrich Novy <jnovy@redhat.com> - 1:1.4.0-6
- carve away containers-common - it's now a separate package - carve away containers-common - it's now a separate package
- Related: #1934415 - Related: #1934415