From 2243cb7a452f5a3de6366b4095d64f7955fe73a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Fri, 13 Oct 2017 13:45:05 +0200 Subject: [PATCH] spec: added fix to work with pre-release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tuned.spec b/tuned.spec index ada1d3a..a68c941 100644 --- a/tuned.spec +++ b/tuned.spec @@ -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