source: projects/specs/trunk/p/python3-requests/python3-requests-vl.spec @ 9451

Revision 9451, 1.1 KB checked in by iwaim, 9 years ago (diff)

new: python3-requests

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
7Summary: Python HTTP for Humans
8Name: python3-requests
9Version: %{ver}
10Release: %{rel}%{?_dist_release}
11License: ASLv2
12Group: Development/Languages
13URL: https://pypi.python.org/pypi/requests
14Source0: https://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
15BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
16Requires: python3
17BuildRequires: python3-devel
18BuildArch: noarch
19
20Vendor: Project Vine
21Distribution: Vine Linux
22Packager: iwaim
23
24%description
25Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.
26
27%prep
28%setup -q -n requests-%{ver}
29
30%build
31python3 setup.py build
32
33%install
34rm -rf $RPM_BUILD_ROOT
35python3 setup.py install --skip-build --root $RPM_BUILD_ROOT
36
37%clean
38rm -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.
Note: See TracBrowser for help on using the repository browser.