[packages/python-numpy-compat] - build here numpy numarray and oldnumeric packages in the last available versions

qboosh qboosh at pld-linux.org
Sun Nov 16 15:36:15 CET 2014


commit a2265f015be6e327fbf66aaa3c213a80f64573e6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 16 15:36:42 2014 +0100

    - build here numpy numarray and oldnumeric packages in the last available versions

 python-numpy-compat.spec | 277 +++++++++++++++++++++++++++
 python-numpy.spec        | 489 -----------------------------------------------
 2 files changed, 277 insertions(+), 489 deletions(-)
---
diff --git a/python-numpy-compat.spec b/python-numpy-compat.spec
new file mode 100644
index 0000000..541f484
--- /dev/null
+++ b/python-numpy-compat.spec
@@ -0,0 +1,277 @@
+#
+# Conditional build:
+%bcond_without  python2 # CPython 2.x modules
+%bcond_without  python3 # CPython 3.x modules
+
+Summary:	Python 2 numerical facilities - deprecated packages
+Summary(pl.UTF-8):	Moduły do obliczeń numerycznych dla języka Python 2 - przestarzałe pakiety
+Name:		python-numpy-compat
+Version:	1.8.2
+Release:	1
+Epoch:		1
+License:	BSD
+Group:		Libraries/Python
+Source0:	http://downloads.sourceforge.net/numpy/numpy-%{version}.tar.gz
+# Source0-md5:	dd8eece8f6fda3a13836de4adbafb0cb
+Patch0:		python-numpy-fortran-version.patch
+URL:		http://sourceforge.net/projects/numpy/
+%if %{with python2}
+BuildRequires:	python-devel
+%endif
+%if %{with python3}
+BuildRequires:	python3-devel >= 1:3.3
+BuildRequires:	python3-2to3
+%endif
+BuildRequires:	gcc-fortran
+BuildRequires:	lapack-devel >= 3.1.1-2
+BuildRequires:	rpm-pythonprov
+# -- dropped some time ago
+Obsoletes:	python-numpy-Properties
+# -- dropped some time ago, should have been released as separate package, but wasn't
+Obsoletes:	python-numpy-kinds
+# old subpackage, merged into main
+Obsoletes:	python-numpy-FFT
+# -- dropped during Numeric->numpy transition (ma in main now?)
+Obsoletes:	python-numpy-MA
+Obsoletes:	python-numpy-RNG
+Obsoletes:	python-Numeric
+Obsoletes:	python-Numeric-FFT
+Obsoletes:	python-Numeric-MA
+Obsoletes:	python-Numeric-RNG
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+NumPy is a collection of extension modules to provide high-performance
+multidimensional numeric arrays to the Python programming language.
+
+This package contains deprecated modules (numarray and oldnumeric).
+
+%description -l pl.UTF-8
+NumPy to zbiór modułów rozszerzeń zapewniających wydajne obliczenia
+numeryczne na macierzach wielowymiarowych w języku Python.
+
+Ten pakiet zawiera przestarzałe moduły: numarray i oldnumeric.
+
+%package -n python-numpy-numarray
+Summary:	Array manipulation and computations for Python 2
+Summary(pl.UTF-8):	Operacje i obliczenia na tablicach dla Pythona 2
+Group:		Development/Languages/Python
+Requires:	python-numpy >= %{epoch}:%{version}
+
+%description -n python-numpy-numarray
+Numarray provides array manipulation and computational capabilities
+similar to those found in IDL, Matlab, or Octave. Using numarray, it
+is possible to write many efficient numerical data processing
+applications directly in Python without using any C, C++ or Fortran
+code (as well as doing such analysis interactively within Python or
+PyRAF). For algorithms that are not well suited for efficient
+computation using array facilities it is possible to write C functions
+(and eventually Fortran) that can read and write numarray arrays that
+can be called from Python.
+
+Numarray is a re-implementation of an older Python array module called
+Numeric. In general its interface is very similar. It is mostly
+backward compatible and will be becoming more so in future releases.
+
+This package contains Python 2 module.
+
+%description -n python-numpy-numarray -l pl.UTF-8
+Numarray zapewnia narzędzia do operacji oraz obliczeń na tablicach
+podobne do tych, jakie zapewniają IDL, Matlab czy Octave. Używając
+numarray możliwe jest stworzenie bezpośrednio w Pythonie, nie używając
+wstawek C, C++ czy fortranowych, wielu wydajnych aplikacji do
+przetwarzania danych numerycznych. Dla algorytmów, które nie pracują
+wydajnie z tablicami, możliwe jest napisanie funkcji C, które mogą
+czytać i zapisywać tablice numarray, i które mogą być wywoływane z
+poziomu Pythona.
+
+Numarray jest ponowną implementacją starszego modułu Pythona -
+Numeric. Interfejsy tych modułów są do siebie bardzo podobne. Numarray
+jest w większości przypadków kompatybilny wstecz, a sytuacja poprawi
+się w nowszych wersjach.
+
+Ten pakiet zawiera moduł Pythona 2.
+
+%package -n python-numpy-numarray-devel
+Summary:	Header files for python-numarray
+Summary(pl.UTF-8):	Pliki nagłówkowe dla pakietu python-numarray
+Group:		Development/Libraries
+Requires:	python-numpy-devel >= %{epoch}:%{version}
+Requires:	python-numpy-numarray = %{epoch}:%{version}-%{release}
+
+%description -n python-numpy-numarray-devel
+Header files for python-numarray.
+
+%description -n python-numpy-numarray-devel -l pl.UTF-8
+Pliki nagłówkowe dla pakietu python-numarray.
+
+%package -n python-numpy-oldnumeric
+Summary:	Python 2 modules providing backward compatibility with old Numeric packages
+Summary(pl.UTF-8):	Moduły Pythona 2 zapewniające wsteczną kompatybilność ze starymi pakietami Numeric
+Group:		Libraries/Python
+Requires:	python-numpy >= %{epoch}:%{version}
+
+%description -n python-numpy-oldnumeric
+Python 2 modules providing backward compatibility with old Numeric
+packages.
+
+%description -n python-numpy-oldnumeric -l pl.UTF-8
+Moduły Pythona 2 zapewniające wsteczną kompatybilność ze starymi
+pakietami Numeric.
+
+%package -n python3-numpy-numarray
+Summary:	Array manipulation and computations for Python 3.x
+Summary(pl.UTF-8):	Operacje i obliczenia na tablicach dla Pythona 3.x
+Group:		Development/Languages/Python
+Requires:	python3-numpy >= %{epoch}:%{version}
+
+%description -n python3-numpy-numarray
+Numarray provides array manipulation and computational capabilities
+similar to those found in IDL, Matlab, or Octave. Using numarray, it
+is possible to write many efficient numerical data processing
+applications directly in Python without using any C, C++ or Fortran
+code (as well as doing such analysis interactively within Python or
+PyRAF). For algorithms that are not well suited for efficient
+computation using array facilities it is possible to write C functions
+(and eventually Fortran) that can read and write numarray arrays that
+can be called from Python.
+
+Numarray is a re-implementation of an older Python array module called
+Numeric. In general its interface is very similar. It is mostly
+backward compatible and will be becoming more so in future releases.
+
+This package contains Python 3 module.
+
+%description -n python3-numpy-numarray -l pl.UTF-8
+Numarray zapewnia narzędzia do operacji oraz obliczeń na tablicach
+podobne do tych, jakie zapewniają IDL, Matlab czy Octave. Używając
+numarray możliwe jest stworzenie bezpośrednio w Pythonie, nie używając
+wstawek C, C++ czy fortranowych, wielu wydajnych aplikacji do
+przetwarzania danych numerycznych. Dla algorytmów, które nie pracują
+wydajnie z tablicami, możliwe jest napisanie funkcji C, które mogą
+czytać i zapisywać tablice numarray, i które mogą być wywoływane z
+poziomu Pythona.
+
+Numarray jest ponowną implementacją starszego modułu Pythona -
+Numeric. Interfejsy tych modułów są do siebie bardzo podobne. Numarray
+jest w większości przypadków kompatybilny wstecz, a sytuacja poprawi
+się w nowszych wersjach.
+
+Ten pakiet zawiera moduł Pythona 3.
+
+%package -n python3-numpy-numarray-devel
+Summary:	Header files for python3-numarray
+Summary(pl.UTF-8):	Pliki nagłówkowe dla pakietu python3-numarray
+Group:		Development/Libraries
+Requires:	python3-numpy-devel >= %{epoch}:%{version}
+Requires:	python3-numpy-numarray = %{epoch}:%{version}-%{release}
+
+%description -n python3-numpy-numarray-devel
+Header files for python3-numarray.
+
+%description -n python3-numpy-numarray-devel -l pl.UTF-8
+Pliki nagłówkowe dla pakietu python3-numarray.
+
+%package -n python3-numpy-oldnumeric
+Summary:	Python 3 modules providing backward compatibility with old Numeric packages
+Summary(pl.UTF-8):	Moduły Pythona 3 zapewniające wsteczną kompatybilność ze starymi pakietami Numeric
+Group:		Libraries/Python
+Requires:	python3-numpy >= %{epoch}:%{version}
+
+%description -n python3-numpy-oldnumeric
+Python 3 modules providing backward compatibility with old Numeric
+packages.
+
+%description -n python3-numpy-oldnumeric -l pl.UTF-8
+Moduły Pythona 3 zapewniające wsteczną kompatybilność ze starymi
+pakietami Numeric.
+
+%prep
+%setup -q -n numpy-%{version}
+%patch0 -p1
+
+%build
+CC="%{__cc}"; export CC
+CFLAGS="%{rpmcflags}"; export CFLAGS
+
+%if %{with python2}
+%{__python} setup.py build
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py install \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+
+# leave only numarray and oldnumeric
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/f2py
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/numpy/{compat,core,doc,distutils,f2py,fft,lib,linalg,ma,matrixlib,polynomial,random,testing,tests}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/numpy/*.py*
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/numpy-%{version}-py*.egg-info
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/numpy/*/tests
+%endif
+
+%if %{with python3}
+%{__python3} setup.py install \
+	--root=$RPM_BUILD_ROOT
+
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
+%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
+
+# leave only numarray and oldnumeric
+%{__rm} $RPM_BUILD_ROOT%{_bindir}/f2py3
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/numpy/{__pycache__,compat,core,doc,distutils,f2py,fft,lib,linalg,ma,matrixlib,polynomial,random,testing,tests}
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/numpy/*.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/numpy-%{version}-py*.egg-info
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/numpy/*/tests
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files -n python-numpy-numarray
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/numpy/numarray
+%{py_sitedir}/numpy/numarray/*.py
+%{py_sitedir}/numpy/numarray/*.py[co]
+%attr(755,root,root) %{py_sitedir}/numpy/numarray/_capi.so
+
+%files -n python-numpy-numarray-devel
+%defattr(644,root,root,755)
+%{py_sitedir}/numpy/numarray/include
+
+%files -n python-numpy-oldnumeric
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/numpy/oldnumeric
+%{py_sitedir}/numpy/oldnumeric/*.py
+%{py_sitedir}/numpy/oldnumeric/*.py[co]
+%endif
+
+%if %{with python3}
+%files -n python3-numpy-numarray
+%defattr(644,root,root,755)
+%dir %{py3_sitedir}/numpy/numarray
+%{py3_sitedir}/numpy/numarray/*.py
+%{py3_sitedir}/numpy/numarray/__pycache__
+%attr(755,root,root) %{py3_sitedir}/numpy/numarray/_capi.cpython-3*.so
+
+%files -n python3-numpy-numarray-devel
+%defattr(644,root,root,755)
+%{py3_sitedir}/numpy/numarray/include
+
+%files -n python3-numpy-oldnumeric
+%defattr(644,root,root,755)
+%dir %{py3_sitedir}/numpy/oldnumeric
+%{py3_sitedir}/numpy/oldnumeric/*.py
+%{py3_sitedir}/numpy/oldnumeric/__pycache__
+%endif
diff --git a/python-numpy.spec b/python-numpy.spec
deleted file mode 100644
index e31948a..0000000
--- a/python-numpy.spec
+++ /dev/null
@@ -1,489 +0,0 @@
-#
-# Conditional build:
-%bcond_without  python2 # CPython 2.x modules
-%bcond_without  python3 # CPython 3.x modules
-
-%define		module	numpy
-Summary:	Python 2 numerical facilities
-Summary(pl.UTF-8):	Moduły do obliczeń numerycznych dla języka Python 2
-Name:		python-%{module}
-Version:	1.8.2
-Release:	1
-Epoch:		1
-License:	BSD
-Group:		Libraries/Python
-Source0:	http://downloads.sourceforge.net/numpy/%{module}-%{version}.tar.gz
-# Source0-md5:	dd8eece8f6fda3a13836de4adbafb0cb
-Patch0:		%{name}-fortran-version.patch
-URL:		http://sourceforge.net/projects/numpy/
-%if %{with python2}
-BuildRequires:	python-devel
-%pyrequires_eq	python-libs
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel >= 1:3.3
-BuildRequires:	python3-2to3
-%endif
-BuildRequires:	gcc-fortran
-BuildRequires:	lapack-devel >= 3.1.1-2
-BuildRequires:	rpm-pythonprov
-# -- dropped some time ago
-Obsoletes:	python-numpy-Properties
-# -- dropped some time ago, should have been released as separate package, but wasn't
-Obsoletes:	python-numpy-kinds
-# old subpackage, merged into main
-Obsoletes:	python-numpy-FFT
-# -- dropped during Numeric->numpy transition (ma in main now?)
-Obsoletes:	python-numpy-MA
-Obsoletes:	python-numpy-RNG
-Obsoletes:	python-Numeric
-Obsoletes:	python-Numeric-FFT
-Obsoletes:	python-Numeric-MA
-Obsoletes:	python-Numeric-RNG
-Requires:	pydoc
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-NumPy is a collection of extension modules to provide high-performance
-multidimensional numeric arrays to the Python programming language.
-
-This package contains Python 2 modules.
-
-%description -l pl.UTF-8
-NumPy to zbiór modułów rozszerzeń zapewniających wydajne obliczenia
-numeryczne na macierzach wielowymiarowych w języku Python.
-
-Ten pakiet zawiera moduły Pythona 2.
-
-%package devel
-Summary:	C header files for Python 2 numerical modules
-Summary(pl.UTF-8):	Pliki nagłówkowe języka C modułów numerycznych Pythona 2
-Group:		Development/Languages/Python
-%pyrequires_eq	python-devel
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-Obsoletes:	python-Numeric-devel
-
-%description devel
-C header files for Python 2 numerical modules.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe języka C modułów numerycznych Pythona 2.
-
-%package numarray
-Summary:	Array manipulation and computations for Python 2
-Summary(pl.UTF-8):	Operacje i obliczenia na tablicach dla Pythona 2
-Group:		Development/Languages/Python
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-
-%description numarray
-Numarray provides array manipulation and computational capabilities
-similar to those found in IDL, Matlab, or Octave. Using numarray, it
-is possible to write many efficient numerical data processing
-applications directly in Python without using any C, C++ or Fortran
-code (as well as doing such analysis interactively within Python or
-PyRAF). For algorithms that are not well suited for efficient
-computation using array facilities it is possible to write C functions
-(and eventually Fortran) that can read and write numarray arrays that
-can be called from Python.
-
-Numarray is a re-implementation of an older Python array module called
-Numeric. In general its interface is very similar. It is mostly
-backward compatible and will be becoming more so in future releases.
-
-This package contains Python 2 module.
-
-%description numarray -l pl.UTF-8
-Numarray zapewnia narzędzia do operacji oraz obliczeń na tablicach
-podobne do tych, jakie zapewniają IDL, Matlab czy Octave. Używając
-numarray możliwe jest stworzenie bezpośrednio w Pythonie, nie używając
-wstawek C, C++ czy fortranowych, wielu wydajnych aplikacji do
-przetwarzania danych numerycznych. Dla algorytmów, które nie pracują
-wydajnie z tablicami, możliwe jest napisanie funkcji C, które mogą
-czytać i zapisywać tablice numarray, i które mogą być wywoływane z
-poziomu Pythona.
-
-Numarray jest ponowną implementacją starszego modułu Pythona -
-Numeric. Interfejsy tych modułów są do siebie bardzo podobne. Numarray
-jest w większości przypadków kompatybilny wstecz, a sytuacja poprawi
-się w nowszych wersjach.
-
-Ten pakiet zawiera moduł Pythona 2.
-
-%package numarray-devel
-Summary:	Header files for python-numarray
-Summary(pl.UTF-8):	Pliki nagłówkowe dla pakietu python-numarray
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
-Requires:	%{name}-numarray = %{epoch}:%{version}-%{release}
-
-%description numarray-devel
-Header files for python-numarray.
-
-%description numarray-devel -l pl.UTF-8
-Pliki nagłówkowe dla pakietu python-numarray.
-
-%package oldnumeric
-Summary:	Python 2 modules providing backward compatibility with old Numeric packages
-Summary(pl.UTF-8):	Moduły Pythona 2 zapewniające wsteczną kompatybilność ze starymi pakietami Numeric
-Group:		Libraries/Python
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-
-%description oldnumeric
-Python 2 modules providing backward compatibility with old Numeric
-packages.
-
-%description oldnumeric -l pl.UTF-8
-Moduły Pythona 2 zapewniające wsteczną kompatybilność ze starymi
-pakietami Numeric.
-
-%package -n f2py
-Summary:	Fortran to Python 2 interface generator
-Summary(pl.UTF-8):	Generator interfejsów z Fortranu do Pythona 2
-Group:		Libraries/Python
-Requires:	%{name} = %{epoch}:%{version}-%{release}
-
-%description -n f2py
-Fortran to Python 2 interface generator.
-
-%description -n f2py -l pl.UTF-8
-Generator interfejsów z Fortranu do Pythona 2.
-
-%package -n python3-%{module}
-Summary:	Python 3.x numerical facilities
-Summary(pl.UTF-8):	Moduły do obliczeń numerycznych dla języka Python 3.x
-Group:		Libraries/Python
-
-%description -n python3-%{module}
-NumPy is a collection of extension modules to provide high-performance
-multidimensional numeric arrays to the Python programming language.
-
-This package contains Python 3 modules.
-
-%description -l pl.UTF-8 -n python3-%{module}
-NumPy to zbiór modułów rozszerzeń zapewniających wydajne obliczenia
-numeryczne na macierzach wielowymiarowych w języku Python.
-
-Ten pakiet zawiera moduły Pythona 3.
-
-%package -n python3-%{module}-devel
-Summary:	C header files for Python 3 numerical modules
-Summary(pl.UTF-8):	Pliki nagłówkowe języka C modułów numerycznych Pythona 3
-Group:		Development/Languages/Python
-%pyrequires_eq	python-devel
-Requires:	python3-%{module} = %{epoch}:%{version}-%{release}
-Obsoletes:	python-Numeric-devel
-
-%description -n python3-%{module}-devel
-C header files for Python 3 numerical modules.
-
-%description -n python3-%{module}-devel -l pl.UTF-8
-Pliki nagłówkowe języka C modułów numerycznych Pythona 3.
-
-%package -n python3-%{module}-numarray
-Summary:	Array manipulation and computations for Python 3.x
-Summary(pl.UTF-8):	Operacje i obliczenia na tablicach dla Pythona 3.x
-Group:		Development/Languages/Python
-Requires:	python3-%{module} = %{epoch}:%{version}-%{release}
-
-%description -n python3-%{module}-numarray
-Numarray provides array manipulation and computational capabilities
-similar to those found in IDL, Matlab, or Octave. Using numarray, it
-is possible to write many efficient numerical data processing
-applications directly in Python without using any C, C++ or Fortran
-code (as well as doing such analysis interactively within Python or
-PyRAF). For algorithms that are not well suited for efficient
-computation using array facilities it is possible to write C functions
-(and eventually Fortran) that can read and write numarray arrays that
-can be called from Python.
-
-Numarray is a re-implementation of an older Python array module called
-Numeric. In general its interface is very similar. It is mostly
-backward compatible and will be becoming more so in future releases.
-
-This package contains Python 3 module.
-
-%description -n python3-%{module}-numarray -l pl.UTF-8
-Numarray zapewnia narzędzia do operacji oraz obliczeń na tablicach
-podobne do tych, jakie zapewniają IDL, Matlab czy Octave. Używając
-numarray możliwe jest stworzenie bezpośrednio w Pythonie, nie używając
-wstawek C, C++ czy fortranowych, wielu wydajnych aplikacji do
-przetwarzania danych numerycznych. Dla algorytmów, które nie pracują
-wydajnie z tablicami, możliwe jest napisanie funkcji C, które mogą
-czytać i zapisywać tablice numarray, i które mogą być wywoływane z
-poziomu Pythona.
-
-Numarray jest ponowną implementacją starszego modułu Pythona -
-Numeric. Interfejsy tych modułów są do siebie bardzo podobne. Numarray
-jest w większości przypadków kompatybilny wstecz, a sytuacja poprawi
-się w nowszych wersjach.
-
-Ten pakiet zawiera moduł Pythona 3.
-
-%package -n python3-%{module}-numarray-devel
-Summary:	Header files for python3-numarray
-Summary(pl.UTF-8):	Pliki nagłówkowe dla pakietu python3-numarray
-Group:		Development/Libraries
-Requires:	python3-%{module}-devel = %{epoch}:%{version}-%{release}
-Requires:	python3-%{module}-numarray = %{epoch}:%{version}-%{release}
-
-%description -n python3-%{module}-numarray-devel
-Header files for python3-numarray.
-
-%description -n python3-%{module}-numarray-devel -l pl.UTF-8
-Pliki nagłówkowe dla pakietu python3-numarray.
-
-%package -n python3-%{module}-oldnumeric
-Summary:	Python 3 modules providing backward compatibility with old Numeric packages
-Summary(pl.UTF-8):	Moduły Pythona 3 zapewniające wsteczną kompatybilność ze starymi pakietami Numeric
-Group:		Libraries/Python
-Requires:	python3-%{module} = %{epoch}:%{version}-%{release}
-
-%description -n python3-%{module}-oldnumeric
-Python 3 modules providing backward compatibility with old Numeric
-packages.
-
-%description -n python3-%{module}-oldnumeric -l pl.UTF-8
-Moduły Pythona 3 zapewniające wsteczną kompatybilność ze starymi
-pakietami Numeric.
-
-%package -n f2py3
-Summary:	Fortran to Python 3 interface generator
-Summary(pl.UTF-8):	Generator interfejsów z Fortranu do Pythona 3
-Group:		Libraries/Python
-Requires:	python3-%{module} = %{epoch}:%{version}-%{release}
-
-%description -n f2py3
-Fortran to Python 3 interface generator.
-
-%description -n f2py3 -l pl.UTF-8
-Generator interfejsów z Fortranu do Pythona 3.
-
-%prep
-%setup -q -n %{module}-%{version}
-%patch0 -p1
-
-%build
-CC="%{__cc}"; export CC
-CFLAGS="%{rpmcflags}"; export CFLAGS
-
-%if %{with python2}
-%{__python} setup.py build
-%endif
-
-%if %{with python3}
-%{__python3} setup.py build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%{__python} setup.py install \
-	--root=$RPM_BUILD_ROOT
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
-
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/%{module}/doc
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/%{module}/*/{tests,docs}
-# already in f2py package
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/%{module}/f2py/f2py.1
-
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/%{module}/distutils/mingw/gfortran_vs2003_hack.c
-%endif
-
-%if %{with python3}
-%{__python3} setup.py install \
-	--root=$RPM_BUILD_ROOT
-
-%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
-%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
-
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/doc
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/*/{tests,docs}
-# already in f2py package
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/f2py/f2py.1
-
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/distutils/mingw/gfortran_vs2003_hack.c
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/%{module}
-%{py_sitedir}/%{module}/*.py
-%{py_sitedir}/%{module}/*.py[co]
-%dir %{py_sitedir}/%{module}/compat
-%{py_sitedir}/%{module}/compat/*.py
-%{py_sitedir}/%{module}/compat/*.py[co]
-%dir %{py_sitedir}/%{module}/core
-%{py_sitedir}/%{module}/core/*.py
-%{py_sitedir}/%{module}/core/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/core/*.so
-%dir %{py_sitedir}/%{module}/distutils
-%{py_sitedir}/%{module}/distutils/*.py
-%{py_sitedir}/%{module}/distutils/*.py[co]
-%dir %{py_sitedir}/%{module}/distutils/command
-%{py_sitedir}/%{module}/distutils/command/*.py
-%{py_sitedir}/%{module}/distutils/command/*.py[co]
-%dir %{py_sitedir}/%{module}/distutils/fcompiler
-%{py_sitedir}/%{module}/distutils/fcompiler/*.py
-%{py_sitedir}/%{module}/distutils/fcompiler/*.py[co]
-%dir %{py_sitedir}/%{module}/fft
-%{py_sitedir}/%{module}/fft/*.py
-%{py_sitedir}/%{module}/fft/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/fft/fftpack_lite.so
-%dir %{py_sitedir}/%{module}/lib
-%{py_sitedir}/%{module}/lib/*.py
-%{py_sitedir}/%{module}/lib/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/lib/_compiled_base.so
-%dir %{py_sitedir}/%{module}/linalg
-%{py_sitedir}/%{module}/linalg/*.py
-%{py_sitedir}/%{module}/linalg/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/linalg/_umath_linalg.so
-%attr(755,root,root) %{py_sitedir}/%{module}/linalg/lapack_lite.so
-%dir %{py_sitedir}/%{module}/ma
-%{py_sitedir}/%{module}/ma/*.py
-%{py_sitedir}/%{module}/ma/*.py[co]
-%dir %{py_sitedir}/%{module}/matrixlib
-%{py_sitedir}/%{module}/matrixlib/*.py
-%{py_sitedir}/%{module}/matrixlib/*.py[co]
-%dir %{py_sitedir}/%{module}/polynomial
-%{py_sitedir}/%{module}/polynomial/*.py
-%{py_sitedir}/%{module}/polynomial/*.py[co]
-%dir %{py_sitedir}/%{module}/random
-%{py_sitedir}/%{module}/random/*.py
-%{py_sitedir}/%{module}/random/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/random/mtrand.so
-%dir %{py_sitedir}/%{module}/testing
-%{py_sitedir}/%{module}/testing/*.py
-%{py_sitedir}/%{module}/testing/*.py[co]
-%dir %{py_sitedir}/%{module}/tests
-%{py_sitedir}/%{module}/tests/*.py
-%{py_sitedir}/%{module}/tests/*.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitedir}/numpy-%{version}-py*.egg-info
-%endif
-
-%files devel
-%defattr(644,root,root,755)
-%{py_sitedir}/%{module}/core/include
-%{py_sitedir}/%{module}/core/lib
-%{py_sitedir}/%{module}/random/*.h
-
-%files numarray
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/%{module}/numarray
-%{py_sitedir}/%{module}/numarray/*.py
-%{py_sitedir}/%{module}/numarray/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/numarray/_capi.so
-
-%files numarray-devel
-%defattr(644,root,root,755)
-%{py_sitedir}/%{module}/numarray/include
-
-%files oldnumeric
-%defattr(644,root,root,755)
-%dir %{py_sitedir}/%{module}/oldnumeric
-%{py_sitedir}/%{module}/oldnumeric/*.py
-%{py_sitedir}/%{module}/oldnumeric/*.py[co]
-
-%files -n f2py
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/f2py
-%dir %{py_sitedir}/%{module}/f2py
-%{py_sitedir}/%{module}/f2py/*.py
-%{py_sitedir}/%{module}/f2py/*.py[co]
-%{py_sitedir}/%{module}/f2py/src
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py
-%{py3_sitedir}/%{module}/__pycache__
-%dir %{py3_sitedir}/%{module}/compat
-%{py3_sitedir}/%{module}/compat/*.py
-%{py3_sitedir}/%{module}/compat/__pycache__
-%dir %{py3_sitedir}/%{module}/core
-%{py3_sitedir}/%{module}/core/*.py
-%{py3_sitedir}/%{module}/core/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/core/*.cpython-3*.so
-%dir %{py3_sitedir}/%{module}/distutils
-%{py3_sitedir}/%{module}/distutils/*.py
-%{py3_sitedir}/%{module}/distutils/__pycache__
-%dir %{py3_sitedir}/%{module}/distutils/command
-%{py3_sitedir}/%{module}/distutils/command/*.py
-%{py3_sitedir}/%{module}/distutils/command/__pycache__
-%dir %{py3_sitedir}/%{module}/distutils/fcompiler
-%{py3_sitedir}/%{module}/distutils/fcompiler/*.py
-%{py3_sitedir}/%{module}/distutils/fcompiler/__pycache__
-%dir %{py3_sitedir}/%{module}/fft
-%{py3_sitedir}/%{module}/fft/*.py
-%{py3_sitedir}/%{module}/fft/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/fft/fftpack_lite.cpython-3*.so
-%dir %{py3_sitedir}/%{module}/lib
-%{py3_sitedir}/%{module}/lib/*.py
-%{py3_sitedir}/%{module}/lib/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/lib/_compiled_base.cpython-3*.so
-%dir %{py3_sitedir}/%{module}/linalg
-%{py3_sitedir}/%{module}/linalg/*.py
-%{py3_sitedir}/%{module}/linalg/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/linalg/_umath_linalg.cpython-3*.so
-%attr(755,root,root) %{py3_sitedir}/%{module}/linalg/lapack_lite.cpython-3*.so
-%dir %{py3_sitedir}/%{module}/ma
-%{py3_sitedir}/%{module}/ma/*.py
-%{py3_sitedir}/%{module}/ma/__pycache__
-%dir %{py3_sitedir}/%{module}/matrixlib
-%{py3_sitedir}/%{module}/matrixlib/*.py
-%{py3_sitedir}/%{module}/matrixlib/__pycache__
-%dir %{py3_sitedir}/%{module}/polynomial
-%{py3_sitedir}/%{module}/polynomial/*.py
-%{py3_sitedir}/%{module}/polynomial/__pycache__
-%dir %{py3_sitedir}/%{module}/random
-%{py3_sitedir}/%{module}/random/*.py
-%{py3_sitedir}/%{module}/random/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/random/mtrand.cpython-3*.so
-%dir %{py3_sitedir}/%{module}/testing
-%{py3_sitedir}/%{module}/testing/*.py
-%{py3_sitedir}/%{module}/testing/__pycache__
-%dir %{py3_sitedir}/%{module}/tests
-%{py3_sitedir}/%{module}/tests/*.py
-%{py3_sitedir}/%{module}/tests/__pycache__
-%{py3_sitedir}/numpy-%{version}-py*.egg-info
-
-%files -n python3-%{module}-devel
-%defattr(644,root,root,755)
-%{py3_sitedir}/%{module}/core/include
-%{py3_sitedir}/%{module}/core/lib
-%{py3_sitedir}/%{module}/random/*.h
-
-%files -n python3-%{module}-numarray
-%defattr(644,root,root,755)
-%dir %{py3_sitedir}/%{module}/numarray
-%{py3_sitedir}/%{module}/numarray/*.py
-%{py3_sitedir}/%{module}/numarray/__pycache__
-%attr(755,root,root) %{py3_sitedir}/%{module}/numarray/_capi.cpython-3*.so
-
-%files -n python3-%{module}-numarray-devel
-%defattr(644,root,root,755)
-%{py3_sitedir}/%{module}/numarray/include
-
-%files -n python3-%{module}-oldnumeric
-%defattr(644,root,root,755)
-%dir %{py3_sitedir}/%{module}/oldnumeric
-%{py3_sitedir}/%{module}/oldnumeric/*.py
-%{py3_sitedir}/%{module}/oldnumeric/__pycache__
-
-%files -n f2py3
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/f2py3
-%dir %{py3_sitedir}/%{module}/f2py
-%{py3_sitedir}/%{module}/f2py/*.py
-%{py3_sitedir}/%{module}/f2py/__pycache__
-%{py3_sitedir}/%{module}/f2py/src
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-numpy-compat.git/commitdiff/a2265f015be6e327fbf66aaa3c213a80f64573e6



More information about the pld-cvs-commit mailing list