]> git.pld-linux.org Git - packages/python3-numpy.git/blame - python3-numpy.spec
- copied from python-numpy.spec, updated to 1.18.1 (python2 support dropped since...
[packages/python3-numpy.git] / python3-numpy.spec
CommitLineData
c7bc85b9
JB
1%define module numpy
2Summary: Python 3.x numerical facilities
3Summary(pl.UTF-8): Moduły do obliczeń numerycznych dla języka Python 3.x
4Name: python3-%{module}
5Version: 1.18.1
6Release: 1
7Epoch: 1
8License: BSD
9Group: Libraries/Python
10#Source0Download: https://github.com/numpy/numpy/releases/
11Source0: https://github.com/numpy/numpy/releases/download/v%{version}/%{module}-%{version}.tar.gz
12# Source0-md5: 9ab88e85f5b1fc70506287317b58f71d
13URL: http://sourceforge.net/projects/numpy/
14BuildRequires: gcc-fortran
15BuildRequires: lapack-devel >= 3.1.1-2
16BuildRequires: python3-Cython >= 0.29.14
17BuildRequires: python3-devel >= 1:3.5
18BuildRequires: python3-setuptools
19BuildRequires: rpm-pythonprov
20BuildRequires: rpmbuild(macros) >= 1.714
21Requires: python3-libs >= 1:3.5
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25NumPy is a collection of extension modules to provide high-performance
26multidimensional numeric arrays to the Python programming language.
27
28This package contains Python 3 modules.
29
30%description -l pl.UTF-8
31NumPy to zbiór modułów rozszerzeń zapewniających wydajne obliczenia
32numeryczne na macierzach wielowymiarowych w języku Python.
33
34Ten pakiet zawiera moduły Pythona 3.
35
36%package devel
37Summary: C header files for Python 3 numerical modules
38Summary(pl.UTF-8): Pliki nagłówkowe języka C modułów numerycznych Pythona 3
39Group: Development/Languages/Python
40%pyrequires_eq python-devel
41Requires: %{name} = %{epoch}:%{version}-%{release}
42
43%description devel
44C header files for Python 3 numerical modules.
45
46%description devel -l pl.UTF-8
47Pliki nagłówkowe języka C modułów numerycznych Pythona 3.
48
49%package -n f2py3
50Summary: Fortran to Python 3 interface generator
51Summary(pl.UTF-8): Generator interfejsów z Fortranu do Pythona 3
52Group: Libraries/Python
53Requires: %{name} = %{epoch}:%{version}-%{release}
54
55%description -n f2py3
56Fortran to Python 3 interface generator.
57
58%description -n f2py3 -l pl.UTF-8
59Generator 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.)
67CFLAGS="%{rpmcflags} -fPIC"
68LDFLAGS="%{rpmldflags} -shared"
69
70%py3_build
71
72%install
73rm -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
86rm -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
This page took 0.099838 seconds and 4 git commands to generate.