]> git.pld-linux.org Git - packages/python3-numpy.git/blame - python3-numpy.spec
- updated to 1.22.2, R python3-devel, not python-devel
[packages/python3-numpy.git] / python3-numpy.spec
CommitLineData
3a26a2ba
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4
c7bc85b9
JB
5%define module numpy
6Summary: Python 3.x numerical facilities
7Summary(pl.UTF-8): Moduły do obliczeń numerycznych dla języka Python 3.x
8Name: python3-%{module}
98e4d49d 9Version: 1.22.2
982d6a3c 10Release: 1
c7bc85b9
JB
11Epoch: 1
12License: BSD
13Group: Libraries/Python
14#Source0Download: https://github.com/numpy/numpy/releases/
15Source0: https://github.com/numpy/numpy/releases/download/v%{version}/%{module}-%{version}.tar.gz
98e4d49d 16# Source0-md5: 5b506b01ef454f39272ca75de1c7f61c
982d6a3c 17URL: https://github.com/numpy/numpy
c7bc85b9
JB
18BuildRequires: gcc-fortran
19BuildRequires: lapack-devel >= 3.1.1-2
982d6a3c 20BuildRequires: python3-Cython >= 0.29.24
930e1f7b 21BuildRequires: python3-devel >= 1:3.6
c7bc85b9 22BuildRequires: python3-setuptools
3a26a2ba
JB
23%if %{with tests}
24BuildRequires: python3-pytest
25%endif
c7bc85b9
JB
26BuildRequires: rpm-pythonprov
27BuildRequires: rpmbuild(macros) >= 1.714
930e1f7b 28Requires: python3-libs >= 1:3.6
c7bc85b9
JB
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32NumPy is a collection of extension modules to provide high-performance
33multidimensional numeric arrays to the Python programming language.
34
35This package contains Python 3 modules.
36
37%description -l pl.UTF-8
38NumPy to zbiór modułów rozszerzeń zapewniających wydajne obliczenia
39numeryczne na macierzach wielowymiarowych w języku Python.
40
41Ten pakiet zawiera moduły Pythona 3.
42
43%package devel
44Summary: C header files for Python 3 numerical modules
45Summary(pl.UTF-8): Pliki nagłówkowe języka C modułów numerycznych Pythona 3
46Group: Development/Languages/Python
98e4d49d 47%pyrequires_eq python3-devel
c7bc85b9
JB
48Requires: %{name} = %{epoch}:%{version}-%{release}
49
50%description devel
51C header files for Python 3 numerical modules.
52
53%description devel -l pl.UTF-8
54Pliki nagłówkowe języka C modułów numerycznych Pythona 3.
55
56%package -n f2py3
57Summary: Fortran to Python 3 interface generator
58Summary(pl.UTF-8): Generator interfejsów z Fortranu do Pythona 3
59Group: Libraries/Python
60Requires: %{name} = %{epoch}:%{version}-%{release}
61
62%description -n f2py3
63Fortran to Python 3 interface generator.
64
65%description -n f2py3 -l pl.UTF-8
66Generator interfejsów z Fortranu do Pythona 3.
67
68%prep
69%setup -q -n %{module}-%{version}
70
71%build
72# numpy.distutils uses CFLAGS/LDFLAGS as its own flags replacements,
73# instead of appending proper options (like -fPIC/-shared resp.)
74CFLAGS="%{rpmcflags} -fPIC"
75LDFLAGS="%{rpmldflags} -shared"
76
77%py3_build
78
3a26a2ba
JB
79%if %{with tests}
80%{__python3} runtests.py --mode=full
81%endif
82
c7bc85b9
JB
83%install
84rm -rf $RPM_BUILD_ROOT
85
86%py3_install
87
88%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/doc
89%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/random/_examples
90%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/tests
91%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/*/tests
92%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/LICENSE.txt
93
94%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/distutils/mingw/gfortran_vs2003_hack.c
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%files
100%defattr(644,root,root,755)
101%doc LICENSE.txt THANKS.txt
102%dir %{py3_sitedir}/%{module}
103%{py3_sitedir}/%{module}/*.py
982d6a3c
JR
104%{py3_sitedir}/%{module}/*.pyi
105%{py3_sitedir}/%{module}/py.typed
c7bc85b9 106%{py3_sitedir}/%{module}/__pycache__
98e4d49d
MK
107%dir %{py3_sitedir}/%{module}/array_api
108%{py3_sitedir}/%{module}/array_api/*.py
109%{py3_sitedir}/%{module}/array_api/__pycache__
c7bc85b9
JB
110%dir %{py3_sitedir}/%{module}/compat
111%{py3_sitedir}/%{module}/compat/*.py
112%{py3_sitedir}/%{module}/compat/__pycache__
113%dir %{py3_sitedir}/%{module}/core
114%{py3_sitedir}/%{module}/core/*.py
982d6a3c 115%{py3_sitedir}/%{module}/core/*.pyi
c7bc85b9
JB
116%{py3_sitedir}/%{module}/core/__pycache__
117%attr(755,root,root) %{py3_sitedir}/%{module}/core/*.cpython-3*.so
118%dir %{py3_sitedir}/%{module}/distutils
119%{py3_sitedir}/%{module}/distutils/*.py
982d6a3c 120%{py3_sitedir}/%{module}/distutils/*.pyi
c7bc85b9
JB
121%{py3_sitedir}/%{module}/distutils/__pycache__
122%dir %{py3_sitedir}/%{module}/distutils/command
123%{py3_sitedir}/%{module}/distutils/command/*.py
124%{py3_sitedir}/%{module}/distutils/command/__pycache__
125%dir %{py3_sitedir}/%{module}/distutils/fcompiler
126%{py3_sitedir}/%{module}/distutils/fcompiler/*.py
127%{py3_sitedir}/%{module}/distutils/fcompiler/__pycache__
128%dir %{py3_sitedir}/%{module}/fft
129%{py3_sitedir}/%{module}/fft/*.py
982d6a3c 130%{py3_sitedir}/%{module}/fft/*.pyi
c7bc85b9
JB
131%{py3_sitedir}/%{module}/fft/__pycache__
132%attr(755,root,root) %{py3_sitedir}/%{module}/fft/_pocketfft_internal.cpython-3*.so
133%dir %{py3_sitedir}/%{module}/lib
134%{py3_sitedir}/%{module}/lib/*.py
982d6a3c 135%{py3_sitedir}/%{module}/lib/*.pyi
c7bc85b9
JB
136%{py3_sitedir}/%{module}/lib/__pycache__
137%dir %{py3_sitedir}/%{module}/linalg
138%{py3_sitedir}/%{module}/linalg/*.py
982d6a3c 139%{py3_sitedir}/%{module}/linalg/*.pyi
c7bc85b9
JB
140%{py3_sitedir}/%{module}/linalg/__pycache__
141%attr(755,root,root) %{py3_sitedir}/%{module}/linalg/_umath_linalg.cpython-3*.so
142%attr(755,root,root) %{py3_sitedir}/%{module}/linalg/lapack_lite.cpython-3*.so
143%dir %{py3_sitedir}/%{module}/ma
144%{py3_sitedir}/%{module}/ma/*.py
982d6a3c 145%{py3_sitedir}/%{module}/ma/*.pyi
c7bc85b9
JB
146%{py3_sitedir}/%{module}/ma/__pycache__
147%dir %{py3_sitedir}/%{module}/matrixlib
148%{py3_sitedir}/%{module}/matrixlib/*.py
982d6a3c 149%{py3_sitedir}/%{module}/matrixlib/*.pyi
c7bc85b9
JB
150%{py3_sitedir}/%{module}/matrixlib/__pycache__
151%dir %{py3_sitedir}/%{module}/polynomial
152%{py3_sitedir}/%{module}/polynomial/*.py
982d6a3c 153%{py3_sitedir}/%{module}/polynomial/*.pyi
c7bc85b9
JB
154%{py3_sitedir}/%{module}/polynomial/__pycache__
155%dir %{py3_sitedir}/%{module}/random
156%{py3_sitedir}/%{module}/random/*.py
982d6a3c 157%{py3_sitedir}/%{module}/random/*.pyi
c7bc85b9
JB
158%{py3_sitedir}/%{module}/random/__pycache__
159%attr(755,root,root) %{py3_sitedir}/%{module}/random/*.cpython-3*.so
160%dir %{py3_sitedir}/%{module}/testing
161%{py3_sitedir}/%{module}/testing/_private
162%{py3_sitedir}/%{module}/testing/*.py
982d6a3c 163%{py3_sitedir}/%{module}/testing/*.pyi
c7bc85b9 164%{py3_sitedir}/%{module}/testing/__pycache__
982d6a3c
JR
165%dir %{py3_sitedir}/%{module}/typing
166%{py3_sitedir}/%{module}/typing/*.py
167%{py3_sitedir}/%{module}/typing/*.pyi
168%{py3_sitedir}/%{module}/typing/__pycache__
c7bc85b9
JB
169%{py3_sitedir}/numpy-%{version}-py*.egg-info
170
171%files devel
172%defattr(644,root,root,755)
930e1f7b 173%{py3_sitedir}/%{module}/*.pxd
c7bc85b9
JB
174%{py3_sitedir}/%{module}/core/include
175%{py3_sitedir}/%{module}/core/lib
176%{py3_sitedir}/%{module}/random/*.pxd
930e1f7b 177%{py3_sitedir}/%{module}/random/lib
c7bc85b9
JB
178
179%files -n f2py3
180%defattr(644,root,root,755)
982d6a3c 181%attr(755,root,root) %{_bindir}/f2py
c7bc85b9
JB
182%attr(755,root,root) %{_bindir}/f2py3
183%attr(755,root,root) %{_bindir}/f2py%{py3_ver}
184%dir %{py3_sitedir}/%{module}/f2py
185%{py3_sitedir}/%{module}/f2py/*.py
982d6a3c 186%{py3_sitedir}/%{module}/f2py/*.pyi
c7bc85b9
JB
187%{py3_sitedir}/%{module}/f2py/__pycache__
188%{py3_sitedir}/%{module}/f2py/src
This page took 0.158817 seconds and 4 git commands to generate.