5 %define python_ver %(echo `python -c "import sys; print (sys.version[:3])"`)
6 %define python_sitepkgsdir %(echo `python -c "import sys; print (sys.prefix + '/lib/python' + sys.version[:3] + '/site-packages/')"`)
7 %define python_compile_opt python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])"
8 %define python_compile python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1])"
10 Summary: Python numerical facilities
11 Name: python-%{module}
14 Copyright: Distributable
15 Group: Development/Languages/Python
16 Group(de): Entwicklung/Sprachen/Python
17 Group(pl): Programowanie/Jêzyki/Python
18 Source0: http://prdownloads.sourceforge.net/numpy/%{mname}-%{version}.tar.gz
19 URL: http://www.pfdubois.com/numpy/
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Requires: python >= 1.5
22 BuildRequires: python-devel >= 1.5
25 NumPy is a collection of extension modules to provide high-performance
26 multidimensional numeric arrays to the Python programming language.
30 Group: Development/Languages/Python
31 Group(de): Entwicklung/Sprachen/Python
32 Group(pl): Programowanie/Jêzyki/Python
33 Requires: %{name} = %{version}
40 Group: Development/Languages/Python
41 Group(de): Entwicklung/Sprachen/Python
42 Group(pl): Programowanie/Jêzyki/Python
43 Requires: %{name} = %{version}
50 Group: Development/Languages/Python
51 Group(de): Entwicklung/Sprachen/Python
52 Group(pl): Programowanie/Jêzyki/Python
53 Requires: %{name} = %{version}
54 Requires: %{name}-kinds = %{version}
61 Group: Development/Languages/Python
62 Group(de): Entwicklung/Sprachen/Python
63 Group(pl): Programowanie/Jêzyki/Python
64 Requires: %{name} = %{version}
71 Group: Development/Languages/Python
72 Group(de): Entwicklung/Sprachen/Python
73 Group(pl): Programowanie/Jêzyki/Python
74 Requires: %{name} = %{version}
76 %description Properties
80 Summary: Random Number Generator Objects for NumPy
81 Group: Development/Languages/Python
82 Group(de): Entwicklung/Sprachen/Python
83 Group(pl): Programowanie/Jêzyki/Python
84 Requires: %{name} = %{version}
87 RNG provides a random number object to Numerical Python.
90 %setup -q -n %{mname}-%{version}
93 python setup_all.py build
96 python setup_all.py install --root=$RPM_BUILD_ROOT
97 %python_compile_opt $RPM_BUILD_ROOT%{python_sitepkgsdir}
98 %python_compile $RPM_BUILD_ROOT%{python_sitepkgsdir}
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %dir %{python_sitepkgsdir}/%{mname}
106 %{python_sitepkgsdir}/%{mname}.pth
107 %attr(755,root,root) %{python_sitepkgsdir}/%{mname}/*.so
108 %{python_sitepkgsdir}/%{mname}/*.pyc
109 %{python_sitepkgsdir}/%{mname}/*.pyo
112 %defattr(644,root,root,755)
113 %{_includedir}/python%{python_ver}/%{mname}
116 %defattr(644,root,root,755)
117 %dir %{python_sitepkgsdir}/FFT
118 %attr(755,root,root) %{python_sitepkgsdir}/FFT/*.so
119 %{python_sitepkgsdir}/FFT/*.pyc
120 %{python_sitepkgsdir}/FFT/*.pyo
123 %defattr(644,root,root,755)
124 %dir %{python_sitepkgsdir}/kinds
125 %attr(755,root,root) %{python_sitepkgsdir}/kinds/*.so
126 %{python_sitepkgsdir}/kinds/*.pyc
127 %{python_sitepkgsdir}/kinds/*.pyo
130 %defattr(644,root,root,755)
131 %dir %{python_sitepkgsdir}/MA
132 %{python_sitepkgsdir}/MA/*.pyc
133 %{python_sitepkgsdir}/MA/*.pyo
136 %defattr(644,root,root,755)
137 %{python_sitepkgsdir}/Properties.pyc
138 %{python_sitepkgsdir}/Properties.pyo
141 %defattr(644,root,root,755)
142 %dir %{python_sitepkgsdir}/RNG
143 %attr(755,root,root) %{python_sitepkgsdir}/RNG/*.so
144 %{python_sitepkgsdir}/RNG/*.pyc
145 %{python_sitepkgsdir}/RNG/*.pyo