]> git.pld-linux.org Git - packages/python3-pythran.git/commitdiff
- python-pythran.spec updated to 0.11.0 for python3 auto/th/python3-pythran-0.11.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Mar 2022 20:07:46 +0000 (21:07 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Mar 2022 20:07:46 +0000 (21:07 +0100)
python3-pythran.spec [moved from python-pythran.spec with 55% similarity]

similarity index 55%
rename from python-pythran.spec
rename to python3-pythran.spec
index 3171f0c41c0558f69c3910dfb0c397cf3a7d765a..4450dee79bdd52ad0583c8a2cee3f60ecfe13350 100644 (file)
@@ -3,48 +3,28 @@
 # Conditional build:
 %bcond_with    doc     # Sphinx documentation
 %bcond_with    tests   # unit tests (missing in sdist)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
 
 Summary:       Ahead of Time compiler for numeric kernels
 Summary(pl.UTF-8):     Kompilator z wyprzedzeniem dla jąder numerycznych
-Name:          python-pythran
-# keep 0.9.5 here for python 2 support
-Version:       0.9.5
+Name:          python3-pythran
+Version:       0.11.0
 Release:       1
 License:       BSD
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/pythran/
 Source0:       https://files.pythonhosted.org/packages/source/p/pythran/pythran-%{version}.tar.gz
-# Source0-md5: da6cbfd2d5b278e41f359db347f6620b
+# Source0-md5: e09e90484771937ab499380858bdb18d
 URL:           https://pypi.org/project/pythran/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-pytest-runner
-BuildRequires: python-setuptools >= 1:12.0.5
-%if %{with tests}
-BuildRequires: python-beniget >= 0.2.0
-BuildRequires: python-decorator
-BuildRequires: python-gast >= 0.3.0
-BuildRequires: python-networkx >= 2
-BuildRequires: python-numpy
-BuildRequires: python-ply >= 3.4
-BuildRequires: python-six
-%endif
-%endif
-%if %{with python3}
 BuildRequires: python3-modules >= 1:3.2
 BuildRequires: python3-pytest-runner
 BuildRequires: python3-setuptools >= 1:12.0.5
 %if %{with tests}
-BuildRequires: python3-beniget >= 0.2.0
-BuildRequires: python3-decorator
-BuildRequires: python3-gast >= 0.3.0
-BuildRequires: python3-networkx >= 2
+BuildRequires: python3-beniget >= 0.4.0
+BuildRequires: python3-beniget < 0.5
+BuildRequires: python3-gast >= 0.5.0
+BuildRequires: python3-gast < 0.6
 BuildRequires: python3-numpy
 BuildRequires: python3-ply >= 3.4
-BuildRequires: python3-six
-%endif
 %endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
@@ -55,7 +35,7 @@ BuildRequires:        python3-numpy
 BuildRequires: python3-scipy
 BuildRequires: sphinx-pdg-3
 %endif
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.2
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -71,24 +51,6 @@ skupiający się na obliczeniach naukowych. Przyjmuje moduł Pythona z
 niewielkim opisem interfejsu i zamienia go na natywny moduł Pythona o
 tym samym interfejsie, ale (miejmy nadzieję) szybszy.
 
-%package -n python3-pythran
-Summary:       Ahead of Time compiler for numeric kernels
-Summary(pl.UTF-8):     Kompilator z wyprzedzeniem dla jąder numerycznych
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.2
-
-%description -n python3-pythran
-Pythran is an ahead of time compiler for a subset of the Python
-language, with a focus on scientific computing. It takes a Python
-module annotated with a few interface description and turns it into a
-native Python module with the same interface, but (hopefully) faster.
-
-%description -n python3-pythran -l pl.UTF-8
-Pythran to kompilator z wyprzedzeniem dla podzbioru języka Python,
-skupiający się na obliczeniach naukowych. Przyjmuje moduł Pythona z
-niewielkim opisem interfejsu i zamienia go na natywny moduł Pythona o
-tym samym interfejsie, ale (miejmy nadzieję) szybszy.
-
 %package apidocs
 Summary:       API documentation for Python pythran module
 Summary(pl.UTF-8):     Dokumentacja API modułu Pythona pythran
@@ -104,13 +66,7 @@ Dokumentacja API modułu Pythona pythran.
 %setup -q -n pythran-%{version}
 
 %build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
 %py3_build %{?with_tests:test}
-%endif
 
 %if %{with doc}
 %{__make} -C docs html \
@@ -120,42 +76,19 @@ Dokumentacja API modułu Pythona pythran.
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/pythran{,-2}
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/pythran-config{,-2}
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
 
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/pythran{,-3}
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/pythran-config{,-3}
 ln -sf pythran-3 $RPM_BUILD_ROOT%{_bindir}/pythran
 ln -sf pythran-config-3 $RPM_BUILD_ROOT%{_bindir}/pythran-config
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc LICENSE README.rst
-%attr(755,root,root) %{_bindir}/pythran-2
-%attr(755,root,root) %{_bindir}/pythran-config-2
-%{py_sitescriptdir}/omp
-%{py_sitescriptdir}/pythran
-%{py_sitescriptdir}/pythran-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pythran
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
+%doc AUTHORS Changelog LICENSE README.rst
 %attr(755,root,root) %{_bindir}/pythran
 %attr(755,root,root) %{_bindir}/pythran-3
 %attr(755,root,root) %{_bindir}/pythran-config
@@ -163,7 +96,6 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitescriptdir}/omp
 %{py3_sitescriptdir}/pythran
 %{py3_sitescriptdir}/pythran-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
This page took 0.121046 seconds and 4 git commands to generate.