%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: 23.1 Release: 0.1 License: distributable Group: Libraries/Python Source0: http://dl.sourceforge.net/numpy/%{mname}-%{version}.tar.gz # Source0-md5: 5cd24ed20627f5cbc822a2bed8ff27e9 URL: http://www.pfdubois.com/numpy/ BuildRequires: python-devel >= 2.3 BuildRequires: rpm-pythonprov %pyrequires_eq python 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. %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 %pyrequires_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: Libraries/Python %pyrequires_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. # -- will be released as separate package #%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: Libraries/Python #%pyrequires_eq python #Requires: %{name} = %{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: Libraries/Python %pyrequires_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. # -- removed(?) #%package Properties #Summary: Property class implementation for Python #Summary(pl): Implementacja klasy z właściwościami dla języka Python #Group: Libraries/Python #%pyrequires_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(pl): Obiekt generatora liczb losowych dla modułu NumPy Group: Libraries/Python %pyrequires_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 CC="%{__cc}"; export CC CFLAGS="%{rpmcflags}"; export CFLAGS python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.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) %{py_incdir}/%{mname} %files FFT %defattr(644,root,root,755) %dir %{py_sitedir}/%{mname}/FFT %attr(755,root,root) %{py_sitedir}/%{mname}/FFT/*.so %{py_sitedir}/%{mname}/FFT/*.py[co] #%files kinds #%defattr(644,root,root,755) #%dir %{py_sitedir}/%{mname}/kinds #%attr(755,root,root) %{py_sitedir}/%{mname}/kinds/*.so #%{py_sitedir}/%{mname}/kinds/*.py[co] %files MA %defattr(644,root,root,755) %dir %{py_sitedir}/%{mname}/MA %{py_sitedir}/%{mname}/MA/*.py[co] #%files Properties #%defattr(644,root,root,755) #%dir %{py_sitedir}/%{mname}/PropertiedClasses #%{py_sitedir}/%{mname}/PropertiedClasses/*.py[co] %files RNG %defattr(644,root,root,755) %dir %{py_sitedir}/%{mname}/RNG %attr(755,root,root) %{py_sitedir}/%{mname}/RNG/*.so %{py_sitedir}/%{mname}/RNG/*.py[co]