Browse Source

add incremental package for python-net

Ralf S. Engelschall 9 years ago
parent
commit
14e7addef3
1 changed files with 15 additions and 1 deletions
  1. 15 1
      python-setup/python-setup.spec

+ 15 - 1
python-setup/python-setup.spec

@@ -29,6 +29,7 @@
 %define       V_pip            9.0.1
 %define       V_pbr            1.10.0
 %define       V_cython         0.25.2
+%define       V_incremental    16.10.1
 
 #   package information
 Name:         python-setup
@@ -41,7 +42,7 @@ Class:        EVAL
 Group:        Language
 License:      PSF/ZPL
 Version:      %{V_python}
-Release:      20161210
+Release:      20161211
 
 #   list of sources
 Source0:      https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-%{V_setuptools}.tar.gz
@@ -50,6 +51,7 @@ Source2:      https://files.pythonhosted.org/packages/source/p/pbr/pbr-%{V_pbr}.
 Source3:      https://files.pythonhosted.org/packages/source/C/Cython/Cython-%{V_cython}.tar.gz
 Source4:      https://files.pythonhosted.org/packages/source/s/setuptools-git/setuptools-git-%{V_setuptools_git}.tar.gz
 Source5:      https://files.pythonhosted.org/packages/source/s/setuptools_scm/setuptools_scm-%{V_setuptools_scm}.tar.gz
+Source6:      https://files.pythonhosted.org/packages/source/i/incremental/incremental-%{V_incremental}.tar.gz
 Patch0:       python-setup.patch
 
 #   build information
@@ -90,6 +92,11 @@ PreReq:       OpenPKG, openpkg >= 20160101, python >= %{V_python}
         url       = http://pypi.python.org/pypi/setuptools_scm/
         regex     = setuptools_scm-(__VER__)\.tar\.gz
     }
+    prog python-setup:incremental = {
+        version   = %{V_incremental}
+        url       = http://pypi.python.org/pypi/incremental/
+        regex     = incremental-(__VER__)\.tar\.gz
+    }
 
 %prep
     %setup -q -c
@@ -98,6 +105,7 @@ PreReq:       OpenPKG, openpkg >= 20160101, python >= %{V_python}
     %setup -q -T -D -a 3
     %setup -q -T -D -a 4
     %setup -q -T -D -a 5
+    %setup -q -T -D -a 6
     %patch -p0
 
 %build
@@ -144,6 +152,12 @@ PreReq:       OpenPKG, openpkg >= 20160101, python >= %{V_python}
             --root=$RPM_BUILD_ROOT \
             --prefix=%{l_prefix}
     ) || exit $?
+    (   cd incremental-%{V_incremental}
+        PYTHONPATH=$RPM_BUILD_ROOT%{l_prefix}/lib/python/site-packages \
+        %{l_prefix}/bin/python setup.py install \
+            --root=$RPM_BUILD_ROOT \
+            --prefix=%{l_prefix}
+    ) || exit $?
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
 
 %files -f files