python-requests-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Summary: Python HTTP for Humans
  2. Name: python-requests
  3. Version: 2.28.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: requests-2.28.1-system-certs.patch
  15. BuildArch: noarch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  17. BuildRequires: python-rpm-macros
  18. BuildRequires: python3-rpm-macros
  19. BuildRequires: python3-devel
  20. BuildRequires: python3-rpm-macros
  21. BuildRequires: python3-setuptools
  22. %description
  23. Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.
  24. %package -n python3-requests
  25. Summary: Python HTTP for Humans
  26. Group: programming
  27. Requires: python3
  28. %description -n python3-requests
  29. Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.
  30. %prep
  31. %autosetup -p1 -n requests-%{version}
  32. # Unbundle the certificate bundle from mozilla.
  33. rm -rf requests/cacert.pem
  34. # env shebang in nonexecutable file
  35. sed -i '/#!\/usr\/.*python/d' requests/certs.py
  36. %build
  37. %pip3_build_wheel
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. %pip3_install_wheel
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files -n python3-requests
  44. %defattr(-,root,root,-)
  45. %license LICENSE
  46. %doc README* HISTORY*
  47. %{python3_sitelib}/requests
  48. %{python3_sitelib}/requests-*-info
  49. %changelog
  50. * Sat Oct 22 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.28.1-1
  51. - new upstream release.
  52. - dropped python2 support.
  53. * Tue Feb 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.25.1-1
  54. - new upstream release.
  55. - updated Patch0.
  56. * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.24.0-1
  57. - new upstream release.
  58. * Wed Apr 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.23.0-1
  59. - new upstream release.
  60. - updated patches.
  61. * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-2
  62. - fixed R:.
  63. - imported Patch0-4 from rawhide.
  64. * Wed Nov 28 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20.1-1
  65. - new upstream release.
  66. - add python2 support.
  67. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.1-2
  68. - rebuild with python3-3.5.2
  69. * Sun Mar 22 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 2.5.1-1
  70. - Initial build.