[9451] | 1 | Summary: Python HTTP for Humans |
---|
[11932] | 2 | Name: python-requests |
---|
[12545] | 3 | Version: 2.25.1 |
---|
[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 |
---|
[12469] | 31 | BuildRequires: python-rpm-macros |
---|
| 32 | BuildRequires: python3-rpm-macros |
---|
[11932] | 33 | BuildRequires: python-devel |
---|
[12545] | 34 | BuildRequires: python2-setuptools |
---|
[9451] | 35 | BuildRequires: python3-devel |
---|
[11932] | 36 | BuildRequires: python3-rpm-macros |
---|
| 37 | BuildRequires: python3-setuptools |
---|
[9451] | 38 | |
---|
| 39 | %description |
---|
| 40 | Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. |
---|
| 41 | |
---|
[12469] | 42 | |
---|
[11932] | 43 | %package -n python3-requests |
---|
| 44 | Summary: Python HTTP for Humans |
---|
[12469] | 45 | Group: programming |
---|
[11932] | 46 | Requires: python3 |
---|
| 47 | |
---|
| 48 | %description -n python3-requests |
---|
| 49 | Requests is an Apache2 Licensed HTTP library, written in Python, for human beings. |
---|
| 50 | |
---|
[12469] | 51 | |
---|
[9451] | 52 | %prep |
---|
[11940] | 53 | %autosetup -p1 -n requests-%{version} |
---|
[9451] | 54 | |
---|
[11940] | 55 | # Unbundle the certificate bundle from mozilla. |
---|
| 56 | rm -rf requests/cacert.pem |
---|
| 57 | |
---|
| 58 | # env shebang in nonexecutable file |
---|
| 59 | sed -i '/#!\/usr\/.*python/d' requests/certs.py |
---|
| 60 | |
---|
[12469] | 61 | |
---|
[9451] | 62 | %build |
---|
[12545] | 63 | %py_build |
---|
[11932] | 64 | %py3_build |
---|
[9451] | 65 | |
---|
[12469] | 66 | |
---|
[9451] | 67 | %install |
---|
| 68 | rm -rf $RPM_BUILD_ROOT |
---|
[12545] | 69 | %py_install |
---|
[11932] | 70 | %py3_install |
---|
[9451] | 71 | |
---|
[12469] | 72 | |
---|
[9451] | 73 | %clean |
---|
| 74 | rm -rf $RPM_BUILD_ROOT |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %files |
---|
| 78 | %defattr(-,root,root,-) |
---|
[11932] | 79 | %license LICENSE |
---|
| 80 | %doc README* HISTORY* |
---|
| 81 | %{python_sitelib}/requests |
---|
| 82 | %{python_sitelib}/requests-%{version}-py*.egg-info |
---|
| 83 | |
---|
| 84 | %files -n python3-requests |
---|
| 85 | %defattr(-,root,root,-) |
---|
| 86 | %license LICENSE |
---|
| 87 | %doc README* HISTORY* |
---|
[9451] | 88 | %{python3_sitelib}/requests |
---|
| 89 | %{python3_sitelib}/requests-%{version}-py*.egg-info |
---|
| 90 | |
---|
[12545] | 91 | |
---|
[9451] | 92 | %changelog |
---|
[12545] | 93 | * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.25.1-1 |
---|
| 94 | - new upstream release. |
---|
| 95 | - updated Patch0. |
---|
| 96 | |
---|
[12469] | 97 | * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.24.0-1 |
---|
| 98 | - new upstream release. |
---|
| 99 | |
---|
[12367] | 100 | * Wed Apr 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.23.0-1 |
---|
| 101 | - new upstream release. |
---|
| 102 | - updated patches. |
---|
| 103 | |
---|
[11940] | 104 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-2 |
---|
| 105 | - fixed R:. |
---|
| 106 | - imported Patch0-4 from rawhide. |
---|
| 107 | |
---|
[11932] | 108 | * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-1 |
---|
| 109 | - new upstream release. |
---|
| 110 | - add python2 support. |
---|
| 111 | |
---|
[10405] | 112 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.1-2 |
---|
| 113 | - rebuild with python3-3.5.2 |
---|
| 114 | |
---|
[9451] | 115 | * Sun Mar 22 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 2.5.1-1 |
---|
| 116 | - Initial build. |
---|