[9451] | 1 | Summary: Python HTTP for Humans |
---|
[11932] | 2 | Name: python-requests |
---|
[12469] | 3 | Version: 2.24.0 |
---|
[12367] | 4 | Release: 1%{?_dist_release} |
---|
[12469] | 5 | Group: programming |
---|
| 6 | Vendor: Project Vine |
---|
| 7 | Distribution: Vine Linux |
---|
| 8 | Packager: iwaim |
---|
| 9 | |
---|
[9451] | 10 | License: ASLv2 |
---|
| 11 | URL: https://pypi.python.org/pypi/requests |
---|
| 12 | Source0: https://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz |
---|
[11940] | 13 | |
---|
| 14 | # Explicitly use the system certificates in ca-certificates. |
---|
| 15 | # https://bugzilla.redhat.com/show_bug.cgi?id=904614 |
---|
| 16 | Patch0: patch-requests-certs.py-to-use-the-system-CA-bundle.patch |
---|
| 17 | |
---|
| 18 | # https://bugzilla.redhat.com/show_bug.cgi?id=1450608 |
---|
| 19 | Patch2: Remove-tests-that-use-the-tarpit.patch |
---|
| 20 | |
---|
| 21 | # Use 127.0.0.1 not localhost for socket.bind() in the Server test |
---|
| 22 | # class, to fix tests in Koji's no-network environment |
---|
| 23 | # This probably isn't really upstreamable, because I guess localhost |
---|
| 24 | # could technically be IPv6 or something, and our no-network env is |
---|
| 25 | # a pretty odd one so this is a niche requirement. |
---|
| 26 | Patch3: requests-2.12.4-tests_nonet.patch |
---|
| 27 | |
---|
[12469] | 28 | BuildArch: noarch |
---|
[9451] | 29 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[11932] | 30 | Requires: python |
---|
[11940] | 31 | Requires: python-urllib3 |
---|
| 32 | Requires: python-chardet |
---|
| 33 | Requires: python-idna |
---|
[12469] | 34 | BuildRequires: python-rpm-macros |
---|
| 35 | BuildRequires: python3-rpm-macros |
---|
[11932] | 36 | BuildRequires: python-devel |
---|
| 37 | BuildRequires: python-setuptools |
---|
[9451] | 38 | BuildRequires: python3-devel |
---|
[11932] | 39 | BuildRequires: python3-rpm-macros |
---|
| 40 | BuildRequires: python3-setuptools |
---|
[9451] | 41 | |
---|
| 42 | %description |
---|
| 43 | Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. |
---|
| 44 | |
---|
[12469] | 45 | |
---|
[11932] | 46 | %package -n python3-requests |
---|
| 47 | Summary: Python HTTP for Humans |
---|
[12469] | 48 | Group: programming |
---|
[11932] | 49 | Requires: python3 |
---|
[11940] | 50 | Requires: python3-urllib3 |
---|
| 51 | Requires: python3-chardet |
---|
| 52 | Requires: python3-idna |
---|
[11932] | 53 | |
---|
| 54 | %description -n python3-requests |
---|
| 55 | Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. |
---|
| 56 | |
---|
[12469] | 57 | |
---|
[9451] | 58 | %prep |
---|
[11940] | 59 | %autosetup -p1 -n requests-%{version} |
---|
[9451] | 60 | |
---|
[11940] | 61 | # Unbundle the certificate bundle from mozilla. |
---|
| 62 | rm -rf requests/cacert.pem |
---|
| 63 | |
---|
| 64 | # env shebang in nonexecutable file |
---|
| 65 | sed -i '/#!\/usr\/.*python/d' requests/certs.py |
---|
| 66 | |
---|
[12469] | 67 | |
---|
[9451] | 68 | %build |
---|
[12469] | 69 | %py2_build |
---|
[11932] | 70 | %py3_build |
---|
[9451] | 71 | |
---|
[12469] | 72 | |
---|
[9451] | 73 | %install |
---|
| 74 | rm -rf $RPM_BUILD_ROOT |
---|
[12469] | 75 | %py2_install |
---|
[11932] | 76 | %py3_install |
---|
[9451] | 77 | |
---|
[12469] | 78 | |
---|
[9451] | 79 | %clean |
---|
| 80 | rm -rf $RPM_BUILD_ROOT |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %files |
---|
| 84 | %defattr(-,root,root,-) |
---|
[11932] | 85 | %license LICENSE |
---|
| 86 | %doc README* HISTORY* |
---|
| 87 | %{python_sitelib}/requests |
---|
| 88 | %{python_sitelib}/requests-%{version}-py*.egg-info |
---|
| 89 | |
---|
| 90 | %files -n python3-requests |
---|
| 91 | %defattr(-,root,root,-) |
---|
| 92 | %license LICENSE |
---|
| 93 | %doc README* HISTORY* |
---|
[9451] | 94 | %{python3_sitelib}/requests |
---|
| 95 | %{python3_sitelib}/requests-%{version}-py*.egg-info |
---|
| 96 | |
---|
| 97 | %changelog |
---|
[12469] | 98 | * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.24.0-1 |
---|
| 99 | - new upstream release. |
---|
| 100 | |
---|
[12367] | 101 | * Wed Apr 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.23.0-1 |
---|
| 102 | - new upstream release. |
---|
| 103 | - updated patches. |
---|
| 104 | |
---|
[11940] | 105 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-2 |
---|
| 106 | - fixed R:. |
---|
| 107 | - imported Patch0-4 from rawhide. |
---|
| 108 | |
---|
[11932] | 109 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-1 |
---|
| 110 | - new upstream release. |
---|
| 111 | - add python2 support. |
---|
| 112 | |
---|
[10405] | 113 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.1-2 |
---|
| 114 | - rebuild with python3-3.5.2 |
---|
| 115 | |
---|
[9451] | 116 | * Sun Mar 22 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 2.5.1-1 |
---|
| 117 | - Initial build. |
---|