]> git.pld-linux.org Git - packages/python-setuptools.git/commitdiff
Version 6.0.2-1. pytho3 package added. auto/th/python-setuptools-6.0.2-1
authorMateusz Korniak <matkor@pld-linux.org>
Mon, 6 Oct 2014 12:11:08 +0000 (14:11 +0200)
committerMateusz Korniak <matkor@pld-linux.org>
Mon, 6 Oct 2014 12:11:08 +0000 (14:11 +0200)
python-setuptools.spec

index 321c3ffc34f46908fcf0ced456ff893fa7d4b6ad..6f9dc57306d1510669dd3a2df1156405c69981a4 100644 (file)
@@ -1,20 +1,29 @@
+#
+# Conditional build:
+%bcond_with    doc             # don't build doc
+%bcond_with    tests   # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
 %define                module  setuptools
-%define                subver  c11
-%define                rel     3
 Summary:       A collection of enhancements to the Python distutils
 Summary(pl.UTF-8):     Zestaw rozszerzeń dla pythonowych distutils
 Name:          python-setuptools
-Version:       0.6
-Release:       2.%{subver}.%{rel}
+Version:       6.0.2
+Release:       1
 Epoch:         1
-License:       GPL
+License:       PSF or ZPL
 Group:         Development/Languages/Python
-Source0:       http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}%{subver}.tar.gz
-# Source0-md5: 7df2a529a074f613b509fb44feefe74e
-URL:           http://peak.telecommunity.com/DevCenter/setuptools
-BuildRequires: python-devel
-BuildRequires: python-modules
-BuildRequires: rpm-pythonprov
+Source0:       http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
+# Source0-md5: b79fab610e362fe8e3a9cb92fb9d95ef
+URL:           https://bitbucket.org/pypa/setuptools
+%if %{with python2}
+BuildRequires: python-distribute
+%endif
+%if %{with python3}
+BuildRequires: python3-distribute
+BuildRequires: python3-modules
+%endif
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,6 +43,27 @@ tych mających zależności od innych pakietów.
 Ten pakiet zawiera składniki uruchomieniowe setuptools, potrzebne do
 uruchamiania kodu wymagającego pkg_resources.py.
 
+%package -n python3-%{module}
+Summary:       -
+Summary(pl.UTF-8):     -
+Group:         Libraries/Python
+Requires:      python3-modules
+
+%description -n python3-%{module}
+
+%description -n python3-%{module} -l pl.UTF-8
+
+%package apidocs
+Summary:       %{module} API documentation
+Summary(pl.UTF-8):     Dokumentacja API %{module}
+Group:         Documentation
+
+%description apidocs
+API documentation for %{module}.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API %{module}.
+
 %package devel
 Summary:       Download, install, upgrade, and uninstall Python packages
 Summary(pl.UTF-8):     Ściąganie, instalacja, uaktualnianie i usuwanie pakietów Pythona
@@ -58,39 +88,72 @@ Ten pakiet zawiera składniki potrzebne do budowania i instalacji
 oprogramowania wymagającego setuptools.
 
 %prep
-%setup -q -n %{module}-%{version}%{subver}
+%setup -q -n %{module}-%{version}
 
 %build
-%{__python} ./setup.py build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__python} ./setup.py install \
-       --single-version-externally-managed \
-       --optimize 2 \
+%if %{with python2}
+%{__python} setup.py \
+       build --build-base build-2 \
+       install --skip-build \
+       --optimize=2 \
        --root=$RPM_BUILD_ROOT
+%endif
 
-rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*/*.exe
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_postclean
-install site.py $RPM_BUILD_ROOT%{py_sitescriptdir}
+%if %{with python3}
+%{__python3} setup.py \
+       build --build-base build-3 \
+       install --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc pkg_resources.txt setuptools.txt
-%{py_sitescriptdir}/%{module}*
+%doc CHANGES.txt README.txt DEVGUIDE.txt 
+%attr(755,root,root) %{_bindir}/easy_install
+%attr(755,root,root) %{_bindir}/easy_install-2.*
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/_markerlib
+%{py_sitescriptdir}/easy_install.py[co]
 %{py_sitescriptdir}/pkg_resources.py[co]
-%{py_sitescriptdir}/site.py[co]
-%{py_sitescriptdir}/site.py
 
-%files devel
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc EasyInstall.txt README.txt api_tests.txt
-%attr(755,root,root) %{_bindir}/easy_install*
-%{py_sitescriptdir}/easy_install.py[co]
+%doc CHANGES.txt README.txt DEVGUIDE.txt 
+%attr(755,root,root) %{_bindir}/easy_install-3.*
+%{py3_sitescriptdir}/__pycache__/*
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/_markerlib
+%{py3_sitescriptdir}/easy_install.py
+%{py3_sitescriptdir}/pkg_resources.py
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+# %doc docs/_build/html/*
+%endif
+
+
This page took 0.105648 seconds and 4 git commands to generate.