Make a python2 subpackage for real.

This commit is contained in:
Ralph Bean 2016-06-02 12:24:28 -04:00
parent e4d6b7b113
commit 53214a35d2

View File

@ -11,7 +11,7 @@
Name: python-requests
Version: 2.10.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: HTTP library, written in Python, for human beings
License: ASL 2.0
@ -34,12 +34,15 @@ Patch2: python-requests-urllib3-at-%{urllib3_unbundled_version}.patch
BuildArch: noarch
%description
Most existing Python modules for sending HTTP requests are extremely verbose and
cumbersome. Pythons built-in urllib2 module provides most of the HTTP
capabilities you should need, but the API is thoroughly broken. This library is
designed to make HTTP requests easy for developers.
# FIXME - move the python2 stuff into a python2 subpackage so we can use this
# macro correctly. See the comment from Carl George in this bz ticket:
# https://bugzilla.redhat.com/show_bug.cgi?id=1241671#c5
Provides: python2-requests
#%%{?python_provide:%%python_provide python2-requests}
%package -n python2-requests
Summary: HTTP library, written in Python, for human beings
%{?python_provide:%python_provide python2-requests}
BuildRequires: python2-devel
BuildRequires: python-chardet
@ -54,7 +57,7 @@ BuildRequires: python-ordereddict
Requires: python-ordereddict
%endif
%description
%description -n python2-requests
Most existing Python modules for sending HTTP requests are extremely verbose and
cumbersome. Pythons built-in urllib2 module provides most of the HTTP
capabilities you should need, but the API is thoroughly broken. This library is
@ -147,7 +150,7 @@ popd
%endif
%files
%files -n python2-requests
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
@ -166,6 +169,9 @@ popd
%endif
%changelog
* Thu Jun 02 2016 Ralph Bean <rbean@redhat.com> - 2.10.0-2
- Fix python2 subpackage to comply with guidelines.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild