Cleanup spec file conditionals

This commit is contained in:
Merlin Mathesius 2017-12-07 08:24:21 -06:00
parent 696b64e2dd
commit e223c48993

View File

@ -1,6 +1,6 @@
Name: libgexiv2
Version: 0.10.6
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Gexiv2 is a GObject-based wrapper around the Exiv2 library
License: GPLv2+
@ -13,7 +13,7 @@ BuildRequires: libtool
BuildRequires: python2-devel
BuildRequires: python-gobject-base
BuildRequires: vala
%if !0%{?rhel}
%if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: python3-devel
BuildRequires: python3-gobject-base
%endif
@ -41,7 +41,7 @@ Obsoletes: libgexiv2-python2 < 0.10.4
%description -n python2-gexiv2
This package contains the python2 bindings for %{name}
%if !0%{?rhel}
%if 0%{?fedora} || 0%{?rhel} > 7
%package -n python3-gexiv2
Summary: Python3 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -92,13 +92,16 @@ make check
%files -n python2-gexiv2
%{python2_sitearch}/gi/overrides/GExiv2.py*
%if !0%{?rhel}
%if 0%{?fedora} || 0%{?rhel} > 7
%files -n python3-gexiv2
%{python3_sitearch}/gi/overrides/GExiv2.py
%{python3_sitearch}/gi/overrides/__pycache__/GExiv2*
%endif
%changelog
* Thu Dec 07 2017 Merlin Mathesius <mmathesi@redhat.com> - 0.10.6-4
- Cleanup spec file conditionals
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild