]> git.pld-linux.org Git - packages/python3-numpy.git/blame - python3-numpy.spec
rebuild with tests and docs
[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
44d7a3a0 10Release: 3
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 121%{py3_sitedir}/%{module}/distutils/__pycache__
56ec9c09 122%{py3_sitedir}/%{module}/distutils/checks
c7bc85b9
JB
123%dir %{py3_sitedir}/%{module}/distutils/command
124%{py3_sitedir}/%{module}/distutils/command/*.py
125%{py3_sitedir}/%{module}/distutils/command/__pycache__
126%dir %{py3_sitedir}/%{module}/distutils/fcompiler
127%{py3_sitedir}/%{module}/distutils/fcompiler/*.py
128%{py3_sitedir}/%{module}/distutils/fcompiler/__pycache__
129%dir %{py3_sitedir}/%{module}/fft
130%{py3_sitedir}/%{module}/fft/*.py
982d6a3c 131%{py3_sitedir}/%{module}/fft/*.pyi
c7bc85b9
JB
132%{py3_sitedir}/%{module}/fft/__pycache__
133%attr(755,root,root) %{py3_sitedir}/%{module}/fft/_pocketfft_internal.cpython-3*.so
134%dir %{py3_sitedir}/%{module}/lib
135%{py3_sitedir}/%{module}/lib/*.py
982d6a3c 136%{py3_sitedir}/%{module}/lib/*.pyi
c7bc85b9
JB
137%{py3_sitedir}/%{module}/lib/__pycache__
138%dir %{py3_sitedir}/%{module}/linalg
139%{py3_sitedir}/%{module}/linalg/*.py
982d6a3c 140%{py3_sitedir}/%{module}/linalg/*.pyi
c7bc85b9
JB
141%{py3_sitedir}/%{module}/linalg/__pycache__
142%attr(755,root,root) %{py3_sitedir}/%{module}/linalg/_umath_linalg.cpython-3*.so
143%attr(755,root,root) %{py3_sitedir}/%{module}/linalg/lapack_lite.cpython-3*.so
144%dir %{py3_sitedir}/%{module}/ma
145%{py3_sitedir}/%{module}/ma/*.py
982d6a3c 146%{py3_sitedir}/%{module}/ma/*.pyi
c7bc85b9
JB
147%{py3_sitedir}/%{module}/ma/__pycache__
148%dir %{py3_sitedir}/%{module}/matrixlib
149%{py3_sitedir}/%{module}/matrixlib/*.py
982d6a3c 150%{py3_sitedir}/%{module}/matrixlib/*.pyi
c7bc85b9
JB
151%{py3_sitedir}/%{module}/matrixlib/__pycache__
152%dir %{py3_sitedir}/%{module}/polynomial
153%{py3_sitedir}/%{module}/polynomial/*.py
982d6a3c 154%{py3_sitedir}/%{module}/polynomial/*.pyi
c7bc85b9
JB
155%{py3_sitedir}/%{module}/polynomial/__pycache__
156%dir %{py3_sitedir}/%{module}/random
157%{py3_sitedir}/%{module}/random/*.py
982d6a3c 158%{py3_sitedir}/%{module}/random/*.pyi
c7bc85b9
JB
159%{py3_sitedir}/%{module}/random/__pycache__
160%attr(755,root,root) %{py3_sitedir}/%{module}/random/*.cpython-3*.so
161%dir %{py3_sitedir}/%{module}/testing
162%{py3_sitedir}/%{module}/testing/_private
163%{py3_sitedir}/%{module}/testing/*.py
982d6a3c 164%{py3_sitedir}/%{module}/testing/*.pyi
c7bc85b9 165%{py3_sitedir}/%{module}/testing/__pycache__
982d6a3c
JR
166%dir %{py3_sitedir}/%{module}/typing
167%{py3_sitedir}/%{module}/typing/*.py
168%{py3_sitedir}/%{module}/typing/*.pyi
169%{py3_sitedir}/%{module}/typing/__pycache__
c7bc85b9
JB
170%{py3_sitedir}/numpy-%{version}-py*.egg-info
171
172%files devel
173%defattr(644,root,root,755)
930e1f7b 174%{py3_sitedir}/%{module}/*.pxd
c7bc85b9
JB
175%{py3_sitedir}/%{module}/core/include
176%{py3_sitedir}/%{module}/core/lib
177%{py3_sitedir}/%{module}/random/*.pxd
930e1f7b 178%{py3_sitedir}/%{module}/random/lib
c7bc85b9
JB
179
180%files -n f2py3
181%defattr(644,root,root,755)
982d6a3c 182%attr(755,root,root) %{_bindir}/f2py
c7bc85b9
JB
183%attr(755,root,root) %{_bindir}/f2py3
184%attr(755,root,root) %{_bindir}/f2py%{py3_ver}
185%dir %{py3_sitedir}/%{module}/f2py
186%{py3_sitedir}/%{module}/f2py/*.py
982d6a3c 187%{py3_sitedir}/%{module}/f2py/*.pyi
c7bc85b9
JB
188%{py3_sitedir}/%{module}/f2py/__pycache__
189%{py3_sitedir}/%{module}/f2py/src
This page took 0.129424 seconds and 4 git commands to generate.