3 # - description for oldnumeric
7 Summary: Python numerical facilities
8 Summary(pl.UTF-8): Moduły do obliczeń numerycznych dla języka Python
14 Group: Libraries/Python
15 Source0: http://dl.sourceforge.net/numpy/%{module}-%{version}.tar.gz
16 # Source0-md5: af066b59a50bf5dbe1a14d6be3df6937
17 URL: http://sourceforge.net/projects/numpy/
18 BuildRequires: lapack-devel >= 3.1.1-2
19 BuildRequires: python-devel
20 BuildRequires: rpm-pythonprov
21 %pyrequires_eq python-libs
22 # -- dropped some time ago
23 Obsoletes: python-numpy-Properties
24 # -- dropped some time ago, should have been released as separate package, but wasn't
25 Obsoletes: python-numpy-kinds
26 # old subpackage, merged into main
27 Obsoletes: python-numpy-FFT
28 # -- dropped during Numeric->numpy transition
29 Obsoletes: python-numpy-MA
30 Obsoletes: python-numpy-RNG
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 NumPy is a collection of extension modules to provide high-performance
35 multidimensional numeric arrays to the Python programming language.
37 %description -l pl.UTF-8
38 Pakiet umożliwia wydajne obliczenia numeryczne na macierzach
42 Summary: C header files for numerical modules
43 Summary(pl.UTF-8): Pliki nagłówkowe języka C modułów numerycznych
44 Group: Development/Languages/Python
45 %pyrequires_eq python-devel
46 Requires: %{name} = %{epoch}:%{version}-%{release}
49 C header files for numerical modules.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe języka C modułów numerycznych.
55 Summary: Array manipulation and computations for python
56 Summary(pl.UTF-8): Operacje i obliczenia na tablicach dla Pythona
57 Group: Development/Languages/Python
58 Requires: %{name} = %{epoch}:%{version}-%{release}
61 Numarray provides array manipulation and computational capabilities
62 similar to those found in IDL, Matlab, or Octave. Using numarray, it
63 is possible to write many efficient numerical data processing
64 applications directly in Python without using any C, C++ or Fortran
65 code (as well as doing such analysis interactively within Python or
66 PyRAF). For algorithms that are not well suited for efficient
67 computation using array facilities it is possible to write C functions
68 (and eventually Fortran) that can read and write numarray arrays that
69 can be called from Python.
71 Numarray is a re-implementation of an older Python array module called
72 Numeric. In general its interface is very similar. It is mostly
73 backward compatible and will be becoming more so in future releases.
75 %description numarray -l pl.UTF-8
76 Numarray zapewnia narzędzia do operacji oraz obliczeń na tablicach
77 podobne do tych, jakie zapewniają IDL, Matlab czy Octave. Używając
78 numarray możliwe jest stworzenie bezpośrednio w Pythonie, nie używając
79 wstawek C, C++ czy fortranowych, wielu wydajnych aplikacji do
80 przetwarzania danych numerycznych. Dla algorytmów, które nie pracują
81 wydajnie z tablicami, możliwe jest napisanie funkcji C, które mogą
82 czytać i zapisywać tablice numarray, i które mogą być wywoływane z
85 Numarray jest ponowną implementacją starszego modułu Pythona -
86 Numeric. Interfejsy tych modułów są do siebie bardzo podobne. Numarray
87 jest w większości przypadków kompatybilny wstecz, a sytuacja poprawi
88 się w nowszych wersjach.
90 %package numarray-devel
91 Summary: Header files for python-numarray
92 Summary(pl.UTF-8): Pliki nagłówkowe dla python-numarray
93 Group: Development/Libraries
94 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
95 Requires: %{name}-numarray = %{epoch}:%{version}-%{release}
97 %description numarray-devel
98 Header files for python-numarray.
100 %description numarray-devel -l pl.UTF-8
101 Pliki nagłówkowe dla python-numarray.
104 Summary: Old numeric packages
105 Summary(pl.UTF-8): Stare pakiety numeric
106 Group: Libraries/Python
107 Requires: %{name} = %{epoch}:%{version}-%{release}
109 %description oldnumeric
110 Old numeric packages.
112 %description oldnumeric -l pl.UTF-8
113 Stare pakiety numeric.
116 Summary: Fortran to Python interface generator
117 Summary(pl.UTF-8): Generator interfejsów z Fortranu do Pythona
118 Group: Libraries/Python
119 Requires: %{name} = %{epoch}:%{version}-%{release}
122 Fortran to Python interface generator.
124 %description -n f2py -l pl.UTF-8
125 Generator interfejsów z Fortranu do Pythona.
128 %setup -q -n %{module}-%{version}
131 CC="%{__cc}"; export CC
132 CFLAGS="%{rpmcflags}"; export CFLAGS
133 %{__python} setup.py build
136 rm -rf $RPM_BUILD_ROOT
138 %{__python} setup.py install \
139 --root=$RPM_BUILD_ROOT
141 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
142 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
145 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/%{module}/{*.txt,COMPATIBILITY,scipy_compatibility,doc}
146 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/%{module}/*/{tests,docs}
147 # already in f2py package
148 rm -rf $RPM_BUILD_ROOT%{py_sitedir}/%{module}/f2py/f2py.1
151 rm -rf $RPM_BUILD_ROOT
154 %defattr(644,root,root,755)
155 %dir %{py_sitedir}/%{module}
156 %{py_sitedir}/%{module}/*.py[co]
157 %{py_sitedir}/%{module}/tests
158 %dir %{py_sitedir}/%{module}/core
159 %{py_sitedir}/%{module}/core/*.py[co]
160 %attr(755,root,root) %{py_sitedir}/%{module}/core/*.so
161 %dir %{py_sitedir}/%{module}/distutils
162 %{py_sitedir}/%{module}/distutils/*.py[co]
163 %dir %{py_sitedir}/%{module}/distutils/command
164 %{py_sitedir}/%{module}/distutils/command/*.py[co]
165 %dir %{py_sitedir}/%{module}/distutils/fcompiler
166 %{py_sitedir}/%{module}/distutils/fcompiler/*.py[co]
167 %dir %{py_sitedir}/%{module}/fft
168 %attr(755,root,root) %{py_sitedir}/%{module}/fft/*.so
169 %{py_sitedir}/%{module}/fft/*.py[co]
170 %dir %{py_sitedir}/%{module}/lib
171 %{py_sitedir}/%{module}/lib/*.py[co]
172 %attr(755,root,root) %{py_sitedir}/%{module}/lib/*.so
173 %dir %{py_sitedir}/%{module}/linalg
174 %{py_sitedir}/%{module}/linalg/*.py[co]
175 %attr(755,root,root) %{py_sitedir}/%{module}/linalg/*.so
176 %dir %{py_sitedir}/%{module}/random
177 %{py_sitedir}/%{module}/random/*.py[co]
178 %attr(755,root,root) %{py_sitedir}/%{module}/random/*.so
179 %dir %{py_sitedir}/%{module}/testing
180 %{py_sitedir}/%{module}/testing/*.py[co]
181 %if "%{py_ver}" > "2.4"
182 %{py_sitedir}/numpy-*.egg-info
184 %dir %{py_sitedir}/numpy/ma
185 %{py_sitedir}/numpy/ma/*.py[co]
188 %defattr(644,root,root,755)
189 %{py_sitedir}/%{module}/core/include
190 %{py_sitedir}/%{module}/random/*.h
193 %defattr(644,root,root,755)
194 %dir %{py_sitedir}/%{module}/numarray
195 %attr(755,root,root) %{py_sitedir}/%{module}/numarray/*.so
196 %{py_sitedir}/%{module}/numarray/*.py[co]
198 %files numarray-devel
199 %defattr(644,root,root,755)
200 %dir %{py_sitedir}/%{module}/numarray/numpy
201 %{py_sitedir}/%{module}/numarray/numpy/*
204 %defattr(644,root,root,755)
205 %dir %{py_sitedir}/%{module}/oldnumeric
206 %{py_sitedir}/%{module}/oldnumeric/*
209 %defattr(644,root,root,755)
210 %attr(744,root,root) %{_bindir}/f2py
211 %dir %{py_sitedir}/%{module}/f2py
212 %{py_sitedir}/%{module}/f2py/*.py[co]
213 %{py_sitedir}/%{module}/f2py/src