[11932] | 1 | %define ver 2.20.1 |
---|
| 2 | %define rel 1 |
---|
[9451] | 3 | |
---|
| 4 | Summary: Python HTTP for Humans |
---|
[11932] | 5 | Name: python-requests |
---|
[9451] | 6 | Version: %{ver} |
---|
| 7 | Release: %{rel}%{?_dist_release} |
---|
| 8 | License: ASLv2 |
---|
| 9 | Group: Development/Languages |
---|
| 10 | URL: https://pypi.python.org/pypi/requests |
---|
| 11 | Source0: https://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[11932] | 13 | Requires: python |
---|
| 14 | BuildRequires: python-devel |
---|
| 15 | BuildRequires: python-rpm-macros |
---|
| 16 | BuildRequires: python-setuptools |
---|
[9451] | 17 | BuildRequires: python3-devel |
---|
[11932] | 18 | BuildRequires: python3-rpm-macros |
---|
| 19 | BuildRequires: python3-setuptools |
---|
[9451] | 20 | BuildArch: noarch |
---|
| 21 | |
---|
| 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
| 24 | Packager: iwaim |
---|
| 25 | |
---|
| 26 | %description |
---|
| 27 | Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. |
---|
| 28 | |
---|
[11932] | 29 | %package -n python3-requests |
---|
| 30 | Summary: Python HTTP for Humans |
---|
| 31 | Group: Development/Languages |
---|
| 32 | Requires: python3 |
---|
| 33 | |
---|
| 34 | %description -n python3-requests |
---|
| 35 | Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. |
---|
| 36 | |
---|
[9451] | 37 | %prep |
---|
[11932] | 38 | %setup -qc -n requests-%{ver} |
---|
| 39 | mv requests-%{ver} python2 |
---|
| 40 | cp -a python2 python3 |
---|
[9451] | 41 | |
---|
| 42 | %build |
---|
[11932] | 43 | pushd python2 |
---|
| 44 | %py_build |
---|
| 45 | popd |
---|
| 46 | pushd python3 |
---|
| 47 | %py3_build |
---|
| 48 | popd |
---|
[9451] | 49 | |
---|
| 50 | %install |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
[11932] | 52 | pushd python2 |
---|
| 53 | %py_install |
---|
| 54 | cp -f LICENSE README* HISTORY* ../ |
---|
| 55 | popd |
---|
| 56 | pushd python3 |
---|
| 57 | %py3_install |
---|
| 58 | popd |
---|
[9451] | 59 | |
---|
| 60 | %clean |
---|
| 61 | rm -rf $RPM_BUILD_ROOT |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %files |
---|
| 65 | %defattr(-,root,root,-) |
---|
[11932] | 66 | %license LICENSE |
---|
| 67 | %doc README* HISTORY* |
---|
| 68 | %{python_sitelib}/requests |
---|
| 69 | %{python_sitelib}/requests-%{version}-py*.egg-info |
---|
| 70 | |
---|
| 71 | %files -n python3-requests |
---|
| 72 | %defattr(-,root,root,-) |
---|
| 73 | %license LICENSE |
---|
| 74 | %doc README* HISTORY* |
---|
[9451] | 75 | %{python3_sitelib}/requests |
---|
| 76 | %{python3_sitelib}/requests-%{version}-py*.egg-info |
---|
| 77 | |
---|
| 78 | %changelog |
---|
[11932] | 79 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-1 |
---|
| 80 | - new upstream release. |
---|
| 81 | - add python2 support. |
---|
| 82 | |
---|
[10405] | 83 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.1-2 |
---|
| 84 | - rebuild with python3-3.5.2 |
---|
| 85 | |
---|
[9451] | 86 | * Sun Mar 22 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 2.5.1-1 |
---|
| 87 | - Initial build. |
---|