4 %bcond_with doc # Sphinx documentation
5 %bcond_with tests # unit tests (missing in sdist)
7 Summary: Ahead of Time compiler for numeric kernels
8 Summary(pl.UTF-8): Kompilator z wyprzedzeniem dla jąder numerycznych
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pythran/
15 Source0: https://files.pythonhosted.org/packages/source/p/pythran/pythran-%{version}.tar.gz
16 # Source0-md5: e09e90484771937ab499380858bdb18d
17 URL: https://pypi.org/project/pythran/
18 BuildRequires: python3-modules >= 1:3.2
19 BuildRequires: python3-pytest-runner
20 BuildRequires: python3-setuptools >= 1:12.0.5
22 BuildRequires: python3-beniget >= 0.4.0
23 BuildRequires: python3-beniget < 0.5
24 BuildRequires: python3-gast >= 0.5.0
25 BuildRequires: python3-gast < 0.6
26 BuildRequires: python3-numpy
27 BuildRequires: python3-ply >= 3.4
29 BuildRequires: rpm-pythonprov
30 BuildRequires: rpmbuild(macros) >= 1.714
32 BuildRequires: python3-guzzle_sphinx_theme
33 BuildRequires: python3-nbsphinx
34 BuildRequires: python3-numpy
35 BuildRequires: python3-scipy
36 BuildRequires: sphinx-pdg-3
38 Requires: python3-modules >= 1:3.2
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Pythran is an ahead of time compiler for a subset of the Python
44 language, with a focus on scientific computing. It takes a Python
45 module annotated with a few interface description and turns it into a
46 native Python module with the same interface, but (hopefully) faster.
48 %description -l pl.UTF-8
49 Pythran to kompilator z wyprzedzeniem dla podzbioru języka Python,
50 skupiający się na obliczeniach naukowych. Przyjmuje moduł Pythona z
51 niewielkim opisem interfejsu i zamienia go na natywny moduł Pythona o
52 tym samym interfejsie, ale (miejmy nadzieję) szybszy.
55 Summary: API documentation for Python pythran module
56 Summary(pl.UTF-8): Dokumentacja API modułu Pythona pythran
60 API documentation for Python pythran module.
62 %description apidocs -l pl.UTF-8
63 Dokumentacja API modułu Pythona pythran.
66 %setup -q -n pythran-%{version}
69 %py3_build %{?with_tests:test}
72 %{__make} -C docs html \
73 SPHINXBUILD=sphinx-build-3
77 rm -rf $RPM_BUILD_ROOT
81 %{__mv} $RPM_BUILD_ROOT%{_bindir}/pythran{,-3}
82 %{__mv} $RPM_BUILD_ROOT%{_bindir}/pythran-config{,-3}
83 ln -sf pythran-3 $RPM_BUILD_ROOT%{_bindir}/pythran
84 ln -sf pythran-config-3 $RPM_BUILD_ROOT%{_bindir}/pythran-config
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc AUTHORS Changelog LICENSE README.rst
92 %attr(755,root,root) %{_bindir}/pythran
93 %attr(755,root,root) %{_bindir}/pythran-3
94 %attr(755,root,root) %{_bindir}/pythran-config
95 %attr(755,root,root) %{_bindir}/pythran-config-3
96 %{py3_sitescriptdir}/omp
97 %{py3_sitescriptdir}/pythran
98 %{py3_sitescriptdir}/pythran-%{version}-py*.egg-info
102 %defattr(644,root,root,755)
103 %doc docs/_build/html/*