|
1 | 1 | %global python python27
|
2 |
| -%global python2_version 2.7 |
3 |
| -%global __python2 %{_bindir}/python%{python2_version} |
4 |
| -%global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
5 | 2 | %global srcname setuptools
|
6 | 3 | %global with_check 0
|
7 | 4 |
|
8 | 5 | Name: %{python}-%{srcname}
|
9 |
| -Version: 36.6.0 |
| 6 | +Version: 39.0.1 |
10 | 7 | Release: 1.ius%{?dist}
|
11 | 8 | Summary: Easily build and distribute Python packages
|
12 |
| -Vendor: IUS Community Project |
13 |
| -Group: Applications/System |
14 | 9 | License: MIT
|
15 | 10 | URL: https://pypi.python.org/pypi/%{srcname}
|
16 | 11 | Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.zip
|
@@ -47,31 +42,36 @@ rm -f setuptools/*.exe
|
47 | 42 |
|
48 | 43 |
|
49 | 44 | %build
|
50 |
| -%{__python2} setup.py build |
| 45 | +%{__python27} setup.py build |
51 | 46 |
|
52 | 47 |
|
53 | 48 | %install
|
54 |
| -%{__python2} setup.py install --optimize 1 --skip-build --root %{buildroot} |
| 49 | +%{__python27} setup.py install --optimize 1 --skip-build --root %{buildroot} |
55 | 50 | rm -r docs/{Makefile,conf.py,_*}
|
56 | 51 | rm %{buildroot}%{_bindir}/easy_install
|
57 | 52 |
|
58 | 53 |
|
59 | 54 | %if 0%{?with_check}
|
60 | 55 | %check
|
61 |
| -# Upstream has switched to 'setup.py ptr'. We need to build |
62 |
| -# python%{iusver}-mock and python%{iusver}-pytest to enable this. |
63 |
| -LC_CTYPE=en_US.utf8 %{__python2} setup.py ptr |
| 56 | +LANG=en_US.utf8 PYTHONPATH=$(pwd) py.test-%{python27_version} |
64 | 57 | %endif
|
65 | 58 |
|
66 | 59 |
|
67 | 60 | %files
|
68 | 61 | %license LICENSE
|
69 |
| -%doc docs/* |
70 |
| -%{python2_sitelib}/* |
71 |
| -%{_bindir}/easy_install-%{python2_version} |
| 62 | +%doc docs/* CHANGES.rst README.rst |
| 63 | +%{python27_sitelib}/easy_install.py* |
| 64 | +%{python27_sitelib}/pkg_resources/ |
| 65 | +%{python27_sitelib}/setuptools/ |
| 66 | +%{python27_sitelib}/setuptools-%{version}-py2.7.egg-info |
| 67 | +%{_bindir}/easy_install-%{python27_version} |
72 | 68 |
|
73 | 69 |
|
74 | 70 | %changelog
|
| 71 | +* Tue Mar 27 2018 Carl George <carl@george.computer> - 39.0.1-1.ius |
| 72 | +- Latest upstream |
| 73 | +- Include CHANGES.rst and README.rst |
| 74 | + |
75 | 75 | * Thu Nov 09 2017 Ben Harper <ben.harper@rackspace.com> - 36.6.0-1.ius
|
76 | 76 | - Latest upstream
|
77 | 77 | - drop EL5 stuff
|
|
0 commit comments