Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: spec: fix distro macros
......................................................................

packaging: spec: fix distro macros

Fix distro macros causing CentOS build failures.

Change-Id: I61283cbf6fc5697f0dd80f92648b69287921bb30
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
(cherry picked from commit 8380f846f29446075a7bff5a96ddddb32e4223ca)
---
M ovirt-log-collector.spec.in
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-log-collector 
refs/changes/48/27848/1

diff --git a/ovirt-log-collector.spec.in b/ovirt-log-collector.spec.in
index ba91b12..2c55e62 100644
--- a/ovirt-log-collector.spec.in
+++ b/ovirt-log-collector.spec.in
@@ -36,7 +36,7 @@
 Requires:      logrotate
 Requires:      openssh-clients
 
-%if 0%{fedora} >= 20 || 0%{?rhel} >= 7
+%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
 Requires:   sos >= 3.1
 %else
 Requires:   sos < 3
@@ -71,14 +71,14 @@
 %config(noreplace) %{_sysconfdir}/ovirt-engine/logcollector.conf
 %config(noreplace) %{_sysconfdir}/logrotate.d/%{package_name}
 %{python_sitelib}/ovirt_log_collector/
-%if 0%{fedora}
-%if 0%{fedora} < 20
+%if 0%{?fedora}
+%if 0%{?fedora} < 20
 %{python_sitelib}/sos/plugins/*.py*
 %endif
 %endif
 
 %if 0%{?rhel}
-%if 0%{rhel} < 7
+%if 0%{?rhel} < 7
 %{python_sitelib}/sos/plugins/*.py*
 %endif
 %endif


-- 
To view, visit http://gerrit.ovirt.org/27848
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I61283cbf6fc5697f0dd80f92648b69287921bb30
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-log-collector
Gerrit-Branch: ovirt-log-collector-3.4
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to