]>
Commit | Line | Data |
---|---|---|
1 | %define module numpy | |
2 | Summary: Python 3.x numerical facilities | |
3 | Summary(pl.UTF-8): Moduły do obliczeń numerycznych dla języka Python 3.x | |
4 | Name: python3-%{module} | |
5 | Version: 1.18.1 | |
6 | Release: 1 | |
7 | Epoch: 1 | |
8 | License: BSD | |
9 | Group: Libraries/Python | |
10 | #Source0Download: https://github.com/numpy/numpy/releases/ | |
11 | Source0: https://github.com/numpy/numpy/releases/download/v%{version}/%{module}-%{version}.tar.gz | |
12 | # Source0-md5: 9ab88e85f5b1fc70506287317b58f71d | |
13 | URL: http://sourceforge.net/projects/numpy/ | |
14 | BuildRequires: gcc-fortran | |
15 | BuildRequires: lapack-devel >= 3.1.1-2 | |
16 | BuildRequires: python3-Cython >= 0.29.14 | |
17 | BuildRequires: python3-devel >= 1:3.5 | |
18 | BuildRequires: python3-setuptools | |
19 | BuildRequires: rpm-pythonprov | |
20 | BuildRequires: rpmbuild(macros) >= 1.714 | |
21 | Requires: python3-libs >= 1:3.5 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | NumPy is a collection of extension modules to provide high-performance | |
26 | multidimensional numeric arrays to the Python programming language. | |
27 | ||
28 | This package contains Python 3 modules. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | NumPy to zbiór modułów rozszerzeń zapewniających wydajne obliczenia | |
32 | numeryczne na macierzach wielowymiarowych w języku Python. | |
33 | ||
34 | Ten pakiet zawiera moduły Pythona 3. | |
35 | ||
36 | %package devel | |
37 | Summary: C header files for Python 3 numerical modules | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe języka C modułów numerycznych Pythona 3 | |
39 | Group: Development/Languages/Python | |
40 | %pyrequires_eq python-devel | |
41 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | C header files for Python 3 numerical modules. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe języka C modułów numerycznych Pythona 3. | |
48 | ||
49 | %package -n f2py3 | |
50 | Summary: Fortran to Python 3 interface generator | |
51 | Summary(pl.UTF-8): Generator interfejsów z Fortranu do Pythona 3 | |
52 | Group: Libraries/Python | |
53 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
54 | ||
55 | %description -n f2py3 | |
56 | Fortran to Python 3 interface generator. | |
57 | ||
58 | %description -n f2py3 -l pl.UTF-8 | |
59 | Generator interfejsów z Fortranu do Pythona 3. | |
60 | ||
61 | %prep | |
62 | %setup -q -n %{module}-%{version} | |
63 | ||
64 | %build | |
65 | # numpy.distutils uses CFLAGS/LDFLAGS as its own flags replacements, | |
66 | # instead of appending proper options (like -fPIC/-shared resp.) | |
67 | CFLAGS="%{rpmcflags} -fPIC" | |
68 | LDFLAGS="%{rpmldflags} -shared" | |
69 | ||
70 | %py3_build | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %py3_install | |
76 | ||
77 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/doc | |
78 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/random/_examples | |
79 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/tests | |
80 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/*/tests | |
81 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/LICENSE.txt | |
82 | ||
83 | %{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/distutils/mingw/gfortran_vs2003_hack.c | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc LICENSE.txt THANKS.txt | |
91 | %dir %{py3_sitedir}/%{module} | |
92 | %{py3_sitedir}/%{module}/*.py | |
93 | %{py3_sitedir}/%{module}/__pycache__ | |
94 | %dir %{py3_sitedir}/%{module}/compat | |
95 | %{py3_sitedir}/%{module}/compat/*.py | |
96 | %{py3_sitedir}/%{module}/compat/__pycache__ | |
97 | %dir %{py3_sitedir}/%{module}/core | |
98 | %{py3_sitedir}/%{module}/core/*.py | |
99 | %{py3_sitedir}/%{module}/core/__pycache__ | |
100 | %attr(755,root,root) %{py3_sitedir}/%{module}/core/*.cpython-3*.so | |
101 | %dir %{py3_sitedir}/%{module}/distutils | |
102 | %{py3_sitedir}/%{module}/distutils/*.py | |
103 | %{py3_sitedir}/%{module}/distutils/__pycache__ | |
104 | %dir %{py3_sitedir}/%{module}/distutils/command | |
105 | %{py3_sitedir}/%{module}/distutils/command/*.py | |
106 | %{py3_sitedir}/%{module}/distutils/command/__pycache__ | |
107 | %dir %{py3_sitedir}/%{module}/distutils/fcompiler | |
108 | %{py3_sitedir}/%{module}/distutils/fcompiler/*.py | |
109 | %{py3_sitedir}/%{module}/distutils/fcompiler/__pycache__ | |
110 | %dir %{py3_sitedir}/%{module}/fft | |
111 | %{py3_sitedir}/%{module}/fft/*.py | |
112 | %{py3_sitedir}/%{module}/fft/__pycache__ | |
113 | %attr(755,root,root) %{py3_sitedir}/%{module}/fft/_pocketfft_internal.cpython-3*.so | |
114 | %dir %{py3_sitedir}/%{module}/lib | |
115 | %{py3_sitedir}/%{module}/lib/*.py | |
116 | %{py3_sitedir}/%{module}/lib/__pycache__ | |
117 | %dir %{py3_sitedir}/%{module}/linalg | |
118 | %{py3_sitedir}/%{module}/linalg/*.py | |
119 | %{py3_sitedir}/%{module}/linalg/__pycache__ | |
120 | %attr(755,root,root) %{py3_sitedir}/%{module}/linalg/_umath_linalg.cpython-3*.so | |
121 | %attr(755,root,root) %{py3_sitedir}/%{module}/linalg/lapack_lite.cpython-3*.so | |
122 | %dir %{py3_sitedir}/%{module}/ma | |
123 | %{py3_sitedir}/%{module}/ma/*.py | |
124 | %{py3_sitedir}/%{module}/ma/__pycache__ | |
125 | %dir %{py3_sitedir}/%{module}/matrixlib | |
126 | %{py3_sitedir}/%{module}/matrixlib/*.py | |
127 | %{py3_sitedir}/%{module}/matrixlib/__pycache__ | |
128 | %dir %{py3_sitedir}/%{module}/polynomial | |
129 | %{py3_sitedir}/%{module}/polynomial/*.py | |
130 | %{py3_sitedir}/%{module}/polynomial/__pycache__ | |
131 | %dir %{py3_sitedir}/%{module}/random | |
132 | %{py3_sitedir}/%{module}/random/*.py | |
133 | %{py3_sitedir}/%{module}/random/__pycache__ | |
134 | %attr(755,root,root) %{py3_sitedir}/%{module}/random/*.cpython-3*.so | |
135 | %dir %{py3_sitedir}/%{module}/testing | |
136 | %{py3_sitedir}/%{module}/testing/_private | |
137 | %{py3_sitedir}/%{module}/testing/*.py | |
138 | %{py3_sitedir}/%{module}/testing/__pycache__ | |
139 | %{py3_sitedir}/numpy-%{version}-py*.egg-info | |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %{py3_sitedir}/%{module}/core/include | |
144 | %{py3_sitedir}/%{module}/core/lib | |
145 | %{py3_sitedir}/%{module}/random/*.pxd | |
146 | ||
147 | %files -n f2py3 | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_bindir}/f2py3 | |
150 | %attr(755,root,root) %{_bindir}/f2py%{py3_ver} | |
151 | %dir %{py3_sitedir}/%{module}/f2py | |
152 | %{py3_sitedir}/%{module}/f2py/*.py | |
153 | %{py3_sitedir}/%{module}/f2py/__pycache__ | |
154 | %{py3_sitedir}/%{module}/f2py/src |