python3-requests-vl.spec 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. %{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(0))")}
  2. %define ver 2.5.1
  3. %define rel 2
  4. Summary: Python HTTP for Humans
  5. Name: python3-requests
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. License: ASLv2
  9. Group: Development/Languages
  10. URL: https://pypi.python.org/pypi/requests
  11. Source0: https://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. Requires: python3
  14. BuildRequires: python3-devel
  15. BuildArch: noarch
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: iwaim
  19. %description
  20. Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.
  21. %prep
  22. %setup -q -n requests-%{ver}
  23. %build
  24. python3 setup.py build
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. python3 setup.py install --skip-build --root $RPM_BUILD_ROOT
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %files
  31. %defattr(-,root,root,-)
  32. %doc README.rst HISTORY.rst LICENSE NOTICE
  33. %{python3_sitelib}/requests
  34. %{python3_sitelib}/requests-%{version}-py*.egg-info
  35. %changelog
  36. * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.5.1-2
  37. - rebuild with python3-3.5.2
  38. * Sun Mar 22 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 2.5.1-1
  39. - Initial build.