added python3 subpackage [release 15.2-2mamba;Sat May 16 2015]
This commit is contained in:
parent
21194c95b5
commit
a0fe4da4f6
@ -1,6 +1,5 @@
|
||||
# python-setuptools
|
||||
|
||||
setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.
|
||||
|
||||
This package contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources.py.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
Name: python-setuptools
|
||||
Version: 15.2
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Download, build, install, upgrade and uninstall Python packages
|
||||
Group: System/Libraries/Python
|
||||
Vendor: openmamba
|
||||
@ -11,9 +11,9 @@ Source: http://pypi.python.org/packages/source/s/setuptools/setuptools-%{
|
||||
Source1: psfl.txt
|
||||
Source2: zpl.txt
|
||||
License: PSF, ZPL
|
||||
Requires: python27 >= %python27_version
|
||||
Requires: python >= %python_version
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython27-devel >= %python27_version
|
||||
BuildRequires: libpython-devel >= %python_version
|
||||
## AUTOBUILDREQ-END
|
||||
Provides: python-distribute
|
||||
Obsoletes: python-distribute
|
||||
@ -22,7 +22,6 @@ BuildArch: noarch
|
||||
|
||||
%description
|
||||
setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.
|
||||
|
||||
This package contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources.py.
|
||||
|
||||
%package devel
|
||||
@ -32,57 +31,101 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
|
||||
%description devel
|
||||
setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.
|
||||
|
||||
This package contains the components necessary to build and install software requiring setuptools.
|
||||
|
||||
%if "%?with_pyver"
|
||||
%define pyver %{with_pyver}
|
||||
%define __python %(rpm --eval %{__python%{with_pyver}})
|
||||
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
|
||||
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
|
||||
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
|
||||
%define python_version %(rpm --eval %{python%{with_pyver}_version})
|
||||
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
|
||||
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
|
||||
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
|
||||
|
||||
%package py%{pyver}
|
||||
Group: System/Libraries/Python
|
||||
Summary: %{summary}
|
||||
%py_requires
|
||||
|
||||
%description py%{pyver}
|
||||
setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.
|
||||
This package contains the runtime components of setuptools, necessary to execute the software that requires pkg_resources.py.
|
||||
|
||||
%package py%{pyver}-devel
|
||||
Group: System/Libraries/Python
|
||||
Summary: %{summary}
|
||||
Requires: %{name}-py%{pyver} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
|
||||
%description py%{pyver}-devel
|
||||
setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages.
|
||||
This package contains the components necessary to build and install software requiring setuptools.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n setuptools-%{version}
|
||||
find . -name '*.txt' -exec chmod -x '{}' ';'
|
||||
find . -name '*.py' -exec sed -i '1s,^#!python,#!%{__python27},' '{}' ';'
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python27} setup.py build
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python27} setup.py install \
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{_includedir}/python%{python27_version} \
|
||||
--install-lib=%{python27_sitearch} \
|
||||
--install-headers=%{_includedir}/python%{python_version} \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
|
||||
sed -i '\,\.egg-info/,d' %{name}.filelist
|
||||
|
||||
install -p -m 0644 %{S:1} %{S:2} .
|
||||
|
||||
rm -rf %{buildroot}%{python27_sitelib}/setuptools/tests
|
||||
find %{buildroot}%{python27_sitearch} -name '*.exe' -exec rm -f '{}' ';'
|
||||
rm -rf %{buildroot}%{python_sitelib}/setuptools/tests
|
||||
find %{buildroot}%{python_sitearch} -name '*.exe' -exec rm -f '{}' ';'
|
||||
sed -i '\,\.exe$,d;\,/tests/,d' %{name}.filelist
|
||||
|
||||
chmod +x %{buildroot}%{python27_sitearch}/setuptools/command/easy_install.py
|
||||
chmod +x %{buildroot}%{python_sitearch}/setuptools/command/easy_install.py
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%if "%?with_pyver"
|
||||
%files py%{pyver}
|
||||
%else
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%endif
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{python_sitearch}/setuptools
|
||||
%{python_sitearch}/setuptools/*
|
||||
%{python_sitearch}/_markerlib/*
|
||||
%dir %{python27_sitearch}/pkg_resources
|
||||
%{python27_sitearch}/pkg_resources/*
|
||||
%dir %{python_sitearch}/pkg_resources
|
||||
%{python_sitearch}/pkg_resources/*
|
||||
%dir %{python_sitearch}/setuptools-%{version}-py%{python_version}.egg-info
|
||||
%{python_sitearch}/setuptools-%{version}-py%{python_version}.egg-info/*
|
||||
|
||||
%if "%?with_pyver"
|
||||
%files py%{pyver}-devel
|
||||
%else
|
||||
%files devel
|
||||
%endif
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/easy_install*
|
||||
%{python27_sitearch}/easy_install*
|
||||
%{python_sitearch}/easy_install*
|
||||
%if "%?with_pyver"
|
||||
%{python_sitearch}/__pycache__/easy_install.cpython-*.pyc
|
||||
%{python_sitearch}/__pycache__/easy_install.cpython-*.pyo
|
||||
%endif
|
||||
%doc README.txt
|
||||
#%doc psfl.txt zpl.txt
|
||||
|
||||
%changelog
|
||||
* Sat May 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 15.2-2mamba
|
||||
- added python3 subpackage
|
||||
|
||||
* Mon Apr 27 2015 Automatic Build System <autodist@mambasoft.it> 15.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user