RHEL7 does not have python3

This commit is contained in:
Richard Hughes 2013-05-08 14:03:43 +01:00
parent f2d2abb475
commit 74037692d3

View File

@ -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@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