Update to 1.5.3 release

This commit is contained in:
Parag Nemade 2019-03-07 17:10:14 +05:30
commit f3af700bb7
No known key found for this signature in database
GPG key ID: 71932951EB71E972
3 changed files with 36 additions and 46 deletions

View file

@ -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 <pnemade AT fedoraproject DOT org> - 1.5.3-1
- Update to 1.5.3 release
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Jul 04 2018 Parag Nemade <pnemade AT fedoraproject DOT orgf> - 1.5.2-2
* Wed Jul 04 2018 Parag Nemade <pnemade AT fedoraproject DOT org> - 1.5.2-2
- Update to follow latest packaging guidelines
* Mon Apr 16 2018 Sundeep Anand <suanand@redhat.com> - 1.5.2-1