diff --git a/atomic.spec b/atomic.spec index d61bb42..3edf170 100644 --- a/atomic.spec +++ b/atomic.spec @@ -11,8 +11,8 @@ %global __python %{__python3} %endif -%global commit d36c015e7e59ae0c85db77b73343617f7ad96c87 -%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commit0 d36c015e7e59ae0c85db77b73343617f7ad96c87 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) # Registries package %global git_atomic_registries https://github.com/projectatomic/registries @@ -22,7 +22,7 @@ Name: atomic Version: 1.22.1 -Release: 2%{?dist} +Release: 2.git%{shortcommit0}%{?dist} Summary: Tool for managing ProjectAtomic systems and containers License: LGPLv2+ URL: https://github.com/projectatomic/atomic @@ -31,7 +31,7 @@ ExclusiveArch: i386 i486 i586 i686 pentium3 pentium4 athlon geode x86_64 armv3l %else ExclusiveArch: x86_64 ppc64le %endif -Source0: https://github.com/projectatomic/%{name}/archive/%{commit}.tar.gz +Source0: https://github.com/projectatomic/%{name}/archive/%{commit0}.tar.gz Source1: https://github.com/projectatomic/registries/archive/%{commit_atomic_registries}.tar.gz BuildRequires: %{pypkg}-devel @@ -125,7 +125,7 @@ Requires: skopeo-containers >= 0.1.29-3 Utility that parses a global YAML registry file for container runtimes. %prep -%setup -qn %{name}-%{commit} +%setup -qn %{name}-%{commit0} cd .. tar zxf %{SOURCE1}