python-requests-vl.spec 2.9 KB

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