diff --git a/zanata-python-client.spec b/zanata-python-client.spec index 0dd62f694c..8c39197b3f 100644 --- a/zanata-python-client.spec +++ b/zanata-python-client.spec @@ -2,7 +2,7 @@ %{!?python2_sitelib: %global python2_sitelib %{python_sitelib}} Name: zanata-python-client Version: 1.5.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python Client for Zanata Server License: LGPLv2+ Group: Applications/Text @@ -11,27 +11,39 @@ Source0: https://github.com/zanata/zanata-python-client/archive/v%{version}.tar. BuildArch: noarch BuildRequires: python-setuptools -Requires: python-polib >= 1.0.0-1 -Requires: python-httplib2 >= 0.7.4-6 -Requires: python-lxml %if 0%{?rhel} %if 0%{?rhel} < 6 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Requires: python-hashlib -Requires: python-simplejson -Requires: python-ordereddict %endif %endif #Conflicts: python-json BuildRequires: python2-devel +%global _description\ +Zanata Python client is a client that communicate with Zanata server. + +%description %_description + +%package -n python2-zanata-client +Summary: %summary +Requires: python-polib >= 1.0.0-1 +Requires: python-httplib2 >= 0.7.4-6 +Requires: python-lxml +%if 0%{?rhel} +Requires: python-hashlib +Requires: python-simplejson +Requires: python-ordereddict +%endif Provides: flies-python-client = %{version}-%{release} Obsoletes: flies-python-client < 1.1 +%{?python_provide:%python_provide python2-zanata-client} +# Remove before F30 +Provides: zanata-python-client = %{version}-%{release} +Obsoletes: zanata-python-client < %{version}-%{release} -%description -Zanata Python client is a client that communicate with Zanata server. +%description -n python2-zanata-client %_description %prep %setup -q -n %{name}-%{version} @@ -47,13 +59,17 @@ rm -rf $RPM_BUILD_ROOT/%{_docdir} %clean rm -rf %{buildroot} -%files +%files -n python2-zanata-client %defattr(-,root,root,-) %doc README.rst COPYING.LESSER zanata.ini zanata_example.xml CHANGELOG %{_bindir}/* %{python2_sitelib} %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 1.5.1-4 +- Python 2 binary package renamed to python2-zanata-client + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild