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