1
0
Fork 0

spec: added fix to work with pre-release

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2017-10-13 13:45:05 +02:00
parent 0d2986d459
commit 2243cb7a45
No known key found for this signature in database
GPG key ID: D8E1C00E076E840B

View file

@ -8,12 +8,18 @@
%global git_suffix %{git_date}git%{git_short_commit}
%endif
%global prerelease rc
%global prereleasenum 1
%global prerel1 %{?prerelease:.%{prerelease}%{prereleasenum}}
%global prerel2 %{?prerelease:-%{prerelease}.%{prereleasenum}}
Summary: A dynamic adaptive system tuning daemon
Name: tuned
Version: 2.9.0
Release: 0.1.rc1%{?with_snapshot:.%{git_suffix}}%{?dist}
Release: 0.1%{?prerel1}%{?with_snapshot:.%{git_suffix}}%{?dist}
License: GPLv2+
Source: https://codeload.github.com/redhat-performance/%{name}/tar.gz/v%{version}#/%{name}-%{version}.tar.gz
Source: https://github.com/redhat-performance/%{name}/archive/v%{version}%{?prerel2}.tar.gz#/%{name}-%{version}%{?prerel1}.tar.gz
URL: http://www.tuned-project.org/
BuildArch: noarch
BuildRequires: python, systemd, desktop-file-utils
@ -158,7 +164,7 @@ Additional tuned profiles mainly for backward compatibility with tuned 1.0.
It can be also used to fine tune your system for specific scenarios.
%prep
%setup -q
%setup -q -n %{name}-%{version}%{?prerel2}
%build