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