[libgexiv2/f19] RHEL7 does not have python3

Richard Hughes rhughes at fedoraproject.org
Wed May 8 13:06:28 UTC 2013


commit 8c1af69f4d09a9a597fea9d53ca81db66f57c2bc
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed May 8 14:03:43 2013 +0100

    RHEL7 does not have python3

 libgexiv2.spec |   24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/libgexiv2.spec b/libgexiv2.spec
index 8350424..76bcc2d 100644
--- a/libgexiv2.spec
+++ b/libgexiv2.spec
@@ -1,18 +1,23 @@
 Name:           libgexiv2
 Version:        0.5.0
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Gexiv2 is a GObject-based wrapper around the Exiv2 library
 
 Group:          System Environment/Libraries
-License:        GPLv2
+License:        GPLv2+
 URL:            http://trac.yorba.org/wiki/gexiv2 
 Source0:        http://yorba.org/download/gexiv2/0.5/%{name}-%{version}.tar.xz
 Patch0:         %{name}-pkgconf.patch
 
-
-BuildRequires:  exiv2-devel gobject-introspection-devel libtool
-BuildRequires:  python-devel python3-devel pygobject3-base python3-gobject
-
+BuildRequires:  exiv2-devel
+BuildRequires:  gobject-introspection-devel
+BuildRequires:  libtool
+BuildRequires:  python-devel
+BuildRequires:  pygobject3-base
+%if !0%{?rhel}
+BuildRequires:  python3-devel
+BuildRequires:  python3-gobject
+%endif
 
 %description
 libgexiv2 is a GObject-based wrapper around the Exiv2 library. 
@@ -37,6 +42,7 @@ Requires:   pygobject3-base
 %description    python2
 This package contains the python2 bindings for %{name}
 
+%if !0%{?rhel}
 %package    python3
 Summary:    Python3 bindings for %{name}
 Requires:   %{name} = %{version}-%{release}
@@ -44,6 +50,7 @@ Requires:   python3-gobject
 
 %description    python3
 This package contains the python3 bindings for %{name}
+%endif
 
 %prep
 %setup -q
@@ -86,11 +93,16 @@ find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
 %files python2
 %{python_sitearch}/gi/overrides/GExiv2.py*
 
+%if !0%{?rhel}
 %files python3
 %{python3_sitearch}/gi/overrides/GExiv2.py
 %{python3_sitearch}/gi/overrides/__pycache__/GExiv2*
+%endif
 
 %changelog
+* Wed May 08 2013 Richard Hughes <richard at hughsie.com> 0.5.0-7
+- RHEL7 does not have python3
+
 * Wed Mar 20 2013 Ankur Sinha <ankursinha AT fedoraproject DOT org> 0.5.0-6
 - Fix requires
 


More information about the scm-commits mailing list