[osinfo PATCH] Fix spec file for RHEL builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



%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


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux