[virt-tools-list] [osinfo PATCH] Fix spec file for RHEL builds

Christophe Fergeau cfergeau at redhat.com
Tue May 15 12:53:06 UTC 2012


%fedora is not defined when building for RHEL, so we need to use
%{?fedora} instead of %{fedora}. This commit also makes sure that
newer RHELs will build libosinfo with introspection support.
---
 libosinfo.spec.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libosinfo.spec.in b/libosinfo.spec.in
index 0e7714e..9d53151 100644
--- a/libosinfo.spec.in
+++ b/libosinfo.spec.in
@@ -6,7 +6,7 @@
 
 %define with_gir 0
 
-%if 0%{fedora} >= 15
+%if 0%{?fedora} >= 15 || 0{?rhel} >= 7
 %define with_gir 1
 %endif
 
-- 
1.7.10.1




More information about the virt-tools-list mailing list