%define module numpy %define mname Numeric Summary: Python numerical facilities Summary(pl): Moduły do obliczeń numerycznych dla języka Python Name: python-%{module} Version: 20.2.0 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/ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %requires_eq python BuildRequires: python-devel >= 1.5 BuildRequires: rpm-pythonprov %include /usr/lib/rpm/macros.python %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 wielowymiarowych. %package devel Summary: C header files for numerical modules Summary(pl): 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} %description devel C header files for numerical modules. %description devel -l pl 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 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. %prep %setup -q -n %{mname}-%{version} %build CFLAGS="%{rpmcflags}" export CFLAGS python setup_all.py build %install rm -rf $RPM_BUILD_ROOT python setup_all.py install --root=$RPM_BUILD_ROOT %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_comp $RPM_BUILD_ROOT%{py_sitedir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %dir %{py_sitedir}/%{mname} %{py_sitedir}/%{mname}.pth %attr(755,root,root) %{py_sitedir}/%{mname}/*.so %{py_sitedir}/%{mname}/*.py[co] %files devel %defattr(644,root,root,755) %{_includedir}/python%{py_ver}/%{mname} %files FFT %defattr(644,root,root,755) %dir %{py_sitedir}/FFT %attr(755,root,root) %{py_sitedir}/FFT/*.so %{py_sitedir}/FFT/*.py[co] %files kinds %defattr(644,root,root,755) %dir %{py_sitedir}/kinds %attr(755,root,root) %{py_sitedir}/kinds/*.so %{py_sitedir}/kinds/*.py[co] %files MA %defattr(644,root,root,755) %dir %{py_sitedir}/MA %{py_sitedir}/MA/*.py[co] %files Properties %defattr(644,root,root,755) %dir %{py_sitedir}/PropertiedClasses %{py_sitedir}/PropertiedClasses/*.py[co] %files RNG %defattr(644,root,root,755) %dir %{py_sitedir}/RNG %attr(755,root,root) %{py_sitedir}/RNG/*.so %{py_sitedir}/RNG/*.py[co]