From 6eca10b285d30fa7a410f431a36a8d95b9ec862c Mon Sep 17 00:00:00 2001 From: Benjamin Zeller Date: Thu, 8 Jul 2021 15:23:30 +0200 Subject: [PATCH] Use buildtime as rpm release when building in CI --- zypper.spec.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zypper.spec.cmake b/zypper.spec.cmake index 212ea11c12..f78059847d 100644 --- a/zypper.spec.cmake +++ b/zypper.spec.cmake @@ -41,12 +41,20 @@ Requires: augeas >= 1.10.0 # required for documentation BuildRequires: rubygem(asciidoctor) +# flag to signal if we are running in CI or not +%bcond_with cimode + BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Command line software manager using libzypp License: GPL-2.0+ Group: System/Packages Version: @VERSION@ + +%if %{with cimode} +Release: %{lua: print(os.time(os.date("!*t")))}.. +%else Release: 0 +%endif Source: %{name}-%{version}.tar.bz2 Source1: %{name}-rpmlintrc Url: https://github.com/openSUSE/zypper