From edb4e050132b3c8d7764b73d0d7dc564aba51d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 4 Aug 2016 01:05:08 -0400 Subject: [PATCH] Avoid % in comments https://bugzilla.redhat.com/show_bug.cgi?id=1347865 --- systemd.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd.spec b/systemd.spec index 538b5ae..f136c12 100644 --- a/systemd.spec +++ b/systemd.spec @@ -1,5 +1,5 @@ #global gitcommit ea683512f9b82f2257770f0ed56d819eea230fc2 -#global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7}) +%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})} # We ship a .pc file but don't want to have a dep on pkg-config. We # strip the automatically generated dep here and instead co-own the @@ -23,7 +23,7 @@ Source0: https://github.com/systemd/systemd/archive/%{?gitcommit}.tar.gz# %else Source0: https://github.com/systemd/systemd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz %endif -# This file must be available before %prep. +# This file must be available before %%prep. # It is generated during systemd build and can be found in src/core/. Source1: triggers.systemd