From f3af700bb7a25acea57a761c33da2706d2fd7b2c Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Thu, 7 Mar 2019 17:10:14 +0530 Subject: [PATCH] Update to 1.5.3 release --- .gitignore | 1 + sources | 2 +- zanata-python-client.spec | 75 +++++++++++++++++---------------------- 3 files changed, 34 insertions(+), 44 deletions(-) diff --git a/.gitignore b/.gitignore index daf7961..783ca32 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /v1.5.0.tar.gz /v1.5.1.tar.gz /v1.5.2.tar.gz +/v1.5.3.tar.gz diff --git a/sources b/sources index 912e0dd..276c346 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (v1.5.2.tar.gz) = c02a110fccb966993a9b95912262820f72987e6aa31cc53fcec0a4a09e6a5d37f2c435b6d19629c71b87431e63f78f6725d789682bd0d6d08329fed0a6a34734 +SHA512 (v1.5.3.tar.gz) = 10190770f61267b058ff15f1a9187f4c8d253ac0edf04799643a0e139689df8bb96965dc3a94d7ca27121c3968100939a3ae48af9027d9a6c67627c72eb3f74d diff --git a/zanata-python-client.spec b/zanata-python-client.spec index 8ec3b5b..5e1c97e 100644 --- a/zanata-python-client.spec +++ b/zanata-python-client.spec @@ -1,73 +1,62 @@ -%{!?__python2: %global __python2 %{__python}} -%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}} -Name: zanata-python-client -Version: 1.5.2 -Release: 4%{?dist} -Summary: Python Client for Zanata Server -License: LGPLv2+ -URL: http://zanata.org -Source0: https://github.com/zanata/zanata-python-client/archive/v%{version}.tar.gz +Name: zanata-python-client +Version: 1.5.3 +Release: 1%{?dist} +Summary: Python3 Client for Zanata Server +License: LGPLv2+ +URL: http://zanata.org +Source0: https://github.com/zanata/zanata-python-client/archive/v%{version}.tar.gz -BuildArch: noarch -BuildRequires: python2-setuptools - -%if 0%{?rhel} - %if 0%{?rhel} < 6 - %endif -%endif - -#Conflicts: python-json -BuildRequires: python2-devel +BuildArch: noarch +BuildRequires: python3-setuptools +BuildRequires: python3-devel %global _description\ Zanata Python client is a client that communicate with Zanata server. %description %_description -%package -n python2-zanata-client -Summary: %summary -Requires: python2-polib >= 1.0.0-1 -Requires: python2-httplib2 >= 0.7.4-6 -Requires: python2-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} +%package -n python3-zanata-client +Summary: %summary +Requires: python3dist(polib) +Requires: python3dist(httplib2) +Requires: python3dist(lxml) +Requires: python3dist(future) +%{?python_provide:%python_provide python3-zanata-client} -%description -n python2-zanata-client %_description +%description -n python3-zanata-client %_description %prep -%autosetup -n %{name}-%{version} +%autosetup %build -%py2_build +%py3_build cp -pr zanataclient/VERSION-FILE build/lib/zanataclient %install -%py2_install +%py3_install + +# Let the docdir be by name python3-zanata-client rm -rf $RPM_BUILD_ROOT/%{_docdir} -%files -n python2-zanata-client +%files -n python3-zanata-client %doc README.rst zanata.ini zanata_example.xml CHANGELOG %license COPYING.LESSER -%{_bindir}/* -%{python2_sitelib}/ +%{_bindir}/flies +%{_bindir}/zanata +%{python3_sitelib}/zanataclient +%{python3_sitelib}/zanata_python_client-%{version}-py3.?.egg-info %changelog +* Thu Mar 07 2019 Parag Nemade - 1.5.3-1 +- Update to 1.5.3 release + * Sun Feb 03 2019 Fedora Release Engineering - 1.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -* Wed Jul 04 2018 Parag Nemade - 1.5.2-2 +* Wed Jul 04 2018 Parag Nemade - 1.5.2-2 - Update to follow latest packaging guidelines * Mon Apr 16 2018 Sundeep Anand - 1.5.2-1