From 5b022ede7883589dca10d61cb33f58b322c3968e Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Apr 21 2020 16:48:11 +0000 Subject: skopeo-1:0.2.0-2 - update spec for autobuilder Signed-off-by: Lokesh Mandvekar --- diff --git a/skopeo.spec b/skopeo.spec index f75f320..9e69bd1 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -37,6 +37,12 @@ %global commit0 8fa332618bfd6f1a70c04040b0f07edf8e1719dc %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) +# Used for comparing with latest upstream tag +# to decide whether to autobuild (non-rawhide only) +%define built_tag v0.2.0 +%define built_tag_strip %(b=%{built_tag}; echo ${b:1}) +%define download_url %{git0}/archive/%{built_tag}.tar.gz + # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required # manually listed arches due https://bugzilla.redhat.com/show_bug.cgi?id=1391932 (removed ppc64) ExcludeArch: ppc64 @@ -44,11 +50,11 @@ ExcludeArch: ppc64 Name: %{repo} Epoch: %{conditional_epoch} Version: 0.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Inspect container images and repositories on registries License: ASL 2.0 URL: %{git0} -Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz +Source0: %{download_url} # Use below line to build a random commit #Source0: %%{git0}/archive/%%{commit0}/%%{name}-%%{shortcommit0}.tar.gz Source1: storage.conf @@ -281,7 +287,7 @@ Requires: podman This package contains system tests for %{name} %prep -%autosetup -Sgit -n %{name}-%{commit0} +%autosetup -Sgit -n %{name}-%{built_tag_strip} %build mkdir -p src/github.com/containers @@ -434,6 +440,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %{_datadir}/%{name}/test %changelog +* Tue Apr 21 2020 Lokesh Mandvekar - 1:0.2.0-2 +- update spec for autobuilder + * Thu Apr 09 2020 RH Container Bot - 1:0.2.0-1 - autobuilt v0.2.0