[ATpy/f14: 3/3] New upstream release. Removing python3 stuff

Sergio Pascual sergiopr at fedoraproject.org
Fri Jul 15 15:14:58 UTC 2011


commit b144f091989230351147650cef108b3e343113ac
Author: Sergio Pascual <sergiopr at fis.ucm.es>
Date:   Fri Jul 15 17:14:30 2011 +0200

    New upstream release.
    Removing python3 stuff

 ATpy.spec |   53 +----------------------------------------------------
 1 files changed, 1 insertions(+), 52 deletions(-)
---
diff --git a/ATpy.spec b/ATpy.spec
index e2aa705..baecf9a 100644
--- a/ATpy.spec
+++ b/ATpy.spec
@@ -1,9 +1,3 @@
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
-%global with_python3 0
-%else
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
-%endif
-
 Name: ATpy
 Version: 0.9.5.3
 Release: 1%{?dist}
@@ -19,79 +13,34 @@ BuildRequires: python-devel
 BuildRequires: python-setuptools
 Requires: numpy
 
-%if 0%{?with_python3}
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-%endif # with_python3
-
 %description
 ATpy is a high-level Python package providing a way to manipulate tables of 
 astronomical data in a uniform way. It provides built-in support for NumPy
 recarrays and common astronomical file/database formats (FITS, VO, HDF5, 
 and ASCII tables) with a very simple API.
 
-%if 0%{?with_python3}
-%package -n python3-ATpy
-Summary: Astronomical Tables in Python
-Requires: python3-numpy
-
-%description -n python3-ATpy
-ATpy is a high-level Python package providing a way to manipulate tables of 
-astronomical data in a uniform way. It provides built-in support for NumPy
-recarrays and common astronomical file/database formats (FITS, VO, HDF5, 
-and ASCII tables) with a very simple API.
-
-%endif # with_python3
-
 %prep
 %setup -q
 chmod -x LICENSE
 
-%if 0%{?with_python3}
-rm -rf %{py3dir}
-cp -a . %{py3dir}
-find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
-%endif # with_python3
-
 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'
 
 %build
 %{__python} setup.py build
 
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py build
-popd
-%endif # with_python3
-
 %install
 rm -rf %{buildroot}
-
-%if 0%{?with_python3}
-pushd %{py3dir}
-%{__python3} setup.py install --skip-build --root  %{buildroot}
-popd
-%endif # with_python3
-
 %{__python} setup.py install --skip-build --root  %{buildroot}
  
 %files
-%defattr(-,root,root,-)
 %doc CHANGES LICENSE README
 %{python_sitelib}/ATpy-*.egg-info
 %{python_sitelib}/atpy/
 
-%if 0%{?with_python3}
-%files -n python3-ATpy
-%defattr(-,root,root,-)
-%doc CHANGES LICENSE README
-%{python3_sitelib}/ATpy-*.egg-info
-%{python3_sitelib}/atpy/
-%endif # with_python3
-
 %changelog
 * Thu Jul 14 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.5.3-1
 - New upstream release.
+- Removing python3 stuff
 
 * Wed May 11 2011 Sergio Pascual <sergiopr at fedoraproject.org> - 0.9.5-2.1
 - Disable python3, numpy missing


More information about the scm-commits mailing list