Skip to content

Commit

Permalink
Use buildtime as rpm release when building in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bzeller committed Jul 8, 2021
1 parent 7aa251b commit 6eca10b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zypper.spec.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")))}.<CI_CNT>.<B_CNT>
%else
Release: 0
%endif
Source: %{name}-%{version}.tar.bz2
Source1: %{name}-rpmlintrc
Url: https://github.com/openSUSE/zypper
Expand Down

0 comments on commit 6eca10b

Please sign in to comment.