]> git.pld-linux.org Git - packages/python-numpy.git/blobdiff - python-numpy.spec
- ver. 1.6.2
[packages/python-numpy.git] / python-numpy.spec
index ca49bd8b8ea561dae54897735cba72324484eb9e..7f8f3a6247cbb9ef23af1e9a4581fba4bd99a6e6 100644 (file)
-
-%define module numpy
-%define mname Numeric
-
-%define        python_ver      %(echo `python -c "import sys; print (sys.version[:3])"`)
-%define        python_sitepkgsdir      %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)
-%define python_compile_opt python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])"
-%define python_compile python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])"
-
-Summary:       Python numerical facilities 
-Summary(pl):   Modu³y do obliczeñ numerycznych dla jêzyka Python
+%define                module  numpy
+Summary:       Python numerical facilities
+Summary(pl.UTF-8):     Moduły do obliczeń numerycznych dla języka Python
 Name:          python-%{module}
-Version:       20.2.0
+Version:       1.6.2
 Release:       1
-License:       distributable
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-Source0:       http://prdownloads.sourceforge.net/numpy/%{mname}-%{version}.tar.gz
-URL:           http://www.pfdubois.com/numpy/
+Epoch:         1
+License:       BSD
+Group:         Libraries/Python
+Source0:       http://downloads.sourceforge.net/numpy/%{module}-%{version}.tar.gz
+# Source0-md5: 95ed6c9dcc94af1fc1642ea2a33c1bba
+URL:           http://sourceforge.net/projects/numpy/
+BuildRequires: lapack-devel >= 3.1.1-2
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+%pyrequires_eq python-libs
+# -- 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)
-%requires_eq   python
-BuildRequires: python-devel >= 1.5
 
 %description
 NumPy is a collection of extension modules to provide high-performance
 multidimensional numeric arrays to the Python programming language.
 
-%description -l pl
-Pakiet umo¿liwia wydajne obliczenia numeryczne na macierzach
+%description -l pl.UTF-8
+Pakiet umożliwia wydajne obliczenia numeryczne na macierzach
 wielowymiarowych.
 
 %package devel
 Summary:       C header files for numerical modules
-Summary(pl):   Pliki nag³ówkowe jêzyka C modu³ów numerycznych
+Summary(pl.UTF-8):     Pliki nagłówkowe języka C modułów numerycznych
 Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-%requires_eq   python
-Requires:      %{name} = %{version}
+%pyrequires_eq python-devel
+Obsoletes:     python-Numeric-devel
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description devel
 C header files for numerical modules.
 
-%description devel -l pl
-Pliki nag³ówkowe jêzyka C modu³ów numerycznych.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe języka C modułów numerycznych.
 
-%package FFT
-Summary:       Interface to the FFTPACK FORTRAN library
-Summary(pl):   Interfejs do biblioteki FFTPACK jêzyka Fortran
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-%requires_eq   python
-Requires:      %{name} = %{version}
-
-%description FFT
-The FFT.py module provides a simple interface to the FFTPACK FORTRAN
-library, which is a powerful standard library for doing fast Fourier
-transforms of real and complex data sets.
-
-%description FFT -l pl
-Modu³ FFT zawiera prosty interfejs do biblioteki FFTPACK jêzyka
-Fortran. Ta biblioteka o wysokich mo¿liwo¶ciach jest standardowo
-u¿ywana do prowadzenia obliczeñ za pomoc± dyskretnej transformaty
-Fouriera na liczba rzeczywistych i zespolonych.
-
-%package kinds
-Summary:       Implementation of PEP 0242 - precision and range control of numeric computations
-Summary(pl):   Implementacja propozycji PEP 0242 - mo¿liwo¶æ kontrolowania precyzji i zakresu obliczeñ numerycznych
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-%requires_eq   python
-Requires:      %{name} = %{version}
-Requires:      %{name}-kinds = %{version}
-
-%description kinds
-This is implementation of PEP 0242. PEP's abstract follows:
-
-This proposal gives the user optional control over the precision and
-range of numeric computations so that a computation can be written
-once and run anywhere with at least the desired precision and range.
-It is backward compatible with existing code.
-
-%description kinds -l pl
-Modu³ zawiera implementacjê propozycji PEP 0242. Oto jej streszczenie.
-
-Propozycja ta umo¿liwia u¿ytkownikowi, opcjonalnie, kontrolê nad
-precyzj± i zakresem obliczeñ numerycznych. Dziêki temu raz napisane
-obliczenia mog± byæ uruchamiane na dowolnej maszynie. Mechanizm jest
-kompatybilny wstecz z istniej±cymi programami.
-
-%package MA
-Summary:       MA - a facility for dealing with masked arrays
-Summary(pl):   Modu³ do obs³ugi macierzy niepe³nych
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-%requires_eq   python
-Requires:      %{name} = %{version}
-
-%description MA
-Masked arrays are arrays that may have missing or invalid entries.
-Module MA provides a work-alike replacement for Numeric that supports
-data arrays with masks.
-
-%description MA -l pl
-Macierze niepe³ne s± to macierze, którym mo¿e brakowaæ lub mog±
-zawieraæ niepoprawne warto¶ci. Modu³ MA zawiera odpowiednie narzêdzia
-do operowania na tego typu macierzach.
-
-%package Properties
-Summary:       Property class implementation for Python
-Summary(pl):   Implementacja klasy z w³a¶ciwo¶ciami dla jêzyka Python
-Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-%requires_eq   python
-Requires:      %{name} = %{version}
-
-%description Properties
-PropertiedClass is a mixin class that can be used to emulate
-properties in a Python class. A property is an attribute whose read,
-write, or deleting requires special handling. It is also possible to
-use this facility to prevent the writing or deleting of a property.
-
-%description Properties -l pl
-PropertiedClass jest klas±, która mo¿e byæ u¿yta do emulacji
-w³a¶ciwo¶ci w klasach jêzyka Python. W³a¶ciwo¶æ klasy jest atrybutem,
-którego czytanie, przypisywanie mu warto¶ci, czy te¿ jego usuwanie
-powinno byæ traktowane w sposób specjalny. Mechanizm ten mo¿e byæ te¿
-u¿ywany w celu ustalenia jakiego¶ atrybutu jako tylko do odczytu.
-
-%package RNG
-Summary:       Random Number Generator Object for NumPy
-Summary:       Obiekt generatora liczb losowych dla modu³u NumPy
+%package numarray
+Summary:       Array manipulation and computations for python
+Summary(pl.UTF-8):     Operacje i obliczenia na tablicach dla Pythona
 Group:         Development/Languages/Python
-Group(de):     Entwicklung/Sprachen/Python
-Group(pl):     Programowanie/Jêzyki/Python
-%requires_eq   python
-Requires:      %{name} = %{version}
-
-%description RNG
-RNG provides a random number object to Numerical Python.
-
-%description RNG -l pl
-Modu³ ten zawiera implementacjê obiektu generatora liczb losowych dla
-jêzyka 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.
+
+%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.
+
+%package numarray-devel
+Summary:       Header files for python-numarray
+Summary(pl.UTF-8):     Pliki nagłówkowe dla 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 python-numarray.
+
+%package oldnumeric
+Summary:       Modules providing backward compatibility with old Numeric packages
+Summary(pl.UTF-8):     Moduły zapewniające wsteczną kompatybilność ze starymi pakietami Numeric
+Group:         Libraries/Python
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description oldnumeric
+Modules providing backward compatibility with old Numeric packages.
+
+%description oldnumeric -l pl.UTF-8
+Moduły zapewniające wsteczną kompatybilność ze starymi pakietami
+Numeric.
+
+%package -n f2py
+Summary:       Fortran to Python interface generator
+Summary(pl.UTF-8):     Generator interfejsów z Fortranu do Pythona
+Group:         Libraries/Python
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description -n f2py
+Fortran to Python interface generator.
+
+%description -n f2py -l pl.UTF-8
+Generator interfejsów z Fortranu do Pythona.
 
 %prep
-%setup -q -n %{mname}-%{version}
+%setup -q -n %{module}-%{version}
 
 %build
-CFLAGS="%{rpmcflags}"
-export CFLAGS
-python setup_all.py build
+CC="%{__cc}"; export CC
+CFLAGS="%{rpmcflags}"; export CFLAGS
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python setup_all.py install --root=$RPM_BUILD_ROOT
-%python_compile_opt $RPM_BUILD_ROOT%{python_sitepkgsdir}
-%python_compile $RPM_BUILD_ROOT%{python_sitepkgsdir}
+
+%{__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}/*/{benchmarks,tests,docs}
+# already in f2py package
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/%{module}/f2py/f2py.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir %{python_sitepkgsdir}/%{mname}
-%{python_sitepkgsdir}/%{mname}.pth
-%attr(755,root,root) %{python_sitepkgsdir}/%{mname}/*.so
-%{python_sitepkgsdir}/%{mname}/*.py[co]
+%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/lapack_lite.so
+%dir %{py_sitedir}/numpy/ma
+%{py_sitedir}/numpy/ma/*.py
+%{py_sitedir}/numpy/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)
-%{_includedir}/python%{python_ver}/%{mname}
-
-%files FFT
-%defattr(644,root,root,755)
-%dir %{python_sitepkgsdir}/FFT
-%attr(755,root,root) %{python_sitepkgsdir}/FFT/*.so
-%{python_sitepkgsdir}/FFT/*.py[co]
+%{py_sitedir}/%{module}/core/include
+%{py_sitedir}/%{module}/core/lib
+%{py_sitedir}/%{module}/random/*.h
 
-%files kinds
+%files numarray
 %defattr(644,root,root,755)
-%dir %{python_sitepkgsdir}/kinds
-%attr(755,root,root) %{python_sitepkgsdir}/kinds/*.so
-%{python_sitepkgsdir}/kinds/*.py[co]
+%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 MA
+%files numarray-devel
 %defattr(644,root,root,755)
-%dir %{python_sitepkgsdir}/MA
-%{python_sitepkgsdir}/MA/*.py[co]
+%{py_sitedir}/%{module}/numarray/include
 
-%files Properties
+%files oldnumeric
 %defattr(644,root,root,755)
-%dir %{python_sitepkgsdir}/PropertiedClasses
-%{python_sitepkgsdir}/PropertiedClasses/*.py[co]
+%dir %{py_sitedir}/%{module}/oldnumeric
+%{py_sitedir}/%{module}/oldnumeric/*.py
+%{py_sitedir}/%{module}/oldnumeric/*.py[co]
 
-%files RNG
+%files -n f2py
 %defattr(644,root,root,755)
-%dir %{python_sitepkgsdir}/RNG
-%attr(755,root,root) %{python_sitepkgsdir}/RNG/*.so
-%{python_sitepkgsdir}/RNG/*.py[co]
+%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
This page took 0.050129 seconds and 4 git commands to generate.