diff --git python-restkit/python-restkit.spec python-restkit/python-restkit.spec.tmp index c7012e4966..61a5de6afc 100644 --- python-restkit/python-restkit.spec +++ python-restkit/python-restkit.spec.tmp @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 4.2.2 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Restkit is an HTTP resource kit for Python License: MIT URL: http://benoitc.github.com/restkit/ @@ -10,10 +10,6 @@ Source0: http://pypi.python.org/packages/source/r/restkit/restkit-%{versi Patch0: restkit-disable-tests-needing-internet-connection.patch BuildArch: noarch -Requires: python-socketpool >= 0.5.3 -Requires: python-http-parser >= 0.8.3 -Requires: python-webob - BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-nose @@ -21,10 +17,21 @@ BuildRequires: python-socketpool >= 0.5.3 BuildRequires: python-http-parser >= 0.8.3 BuildRequires: python-webob -%description -Restkit is a full HTTP client using pure socket calls and its own +%global _description\ +Restkit is a full HTTP client using pure socket calls and its own\ HTTP parser. It's not based on httplib or urllib2. +%description %_description + +%package -n python2-%{pypi_name} +Summary: %summary +Requires: python-socketpool >= 0.5.3 +Requires: python-http-parser >= 0.8.3 +Requires: python-webob +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} %_description + %prep %setup -q -n %{pypi_name}-%{version} # remove bundled egg-info @@ -47,7 +54,7 @@ sed -i '1d' %{buildroot}%{python_sitelib}/%{pypi_name}/contrib/webob_api.py %check nosetests --exclude="009-test-oauth_filter" -%files +%files -n python2-%{pypi_name} %doc %{_docdir}/%{pypi_name}/ %{_bindir}/restcli %{python_sitelib}/restkit* @@ -55,6 +62,10 @@ nosetests --exclude="009-test-oauth_filter" %exclude %{python_sitelib}/tests %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 4.2.2-8 +- Python 2 binary package renamed to python2-restkit + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 4.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild