Name: python-dijitso Version: 2019.1.0 Release: 1%{?dist} Summary: Distributed just-in-time building of shared libraries License: LGPLv3+ URL: https://fenics-dijitso.readthedocs.org/ Source0: https://bitbucket.org/fenics-project/dijitso/downloads/dijitso-%{version}.tar.gz Source1: https://bitbucket.org/fenics-project/dijitso/downloads/dijitso-%{version}.tar.gz.asc BuildRequires: python3-devel BuildRequires: gcc-c++ BuildRequires: python3dist(pytest) BuildRequires: python3dist(numpy) BuildRequires: python3-mpi4py-mpich BuildRequires: mpich-devel BuildRequires: python3-mpi4py-openmpi BuildRequires: openmpi-devel # We want to build on all architectures to test mpi and compilation, # but the package itself is fully noarch. %global debug_package %{nil} %global _description %{expand: %{summary}. This module is used internally in the FEniCS framework to provide just in time compilation of C++ code that is generated from Python modules. It is only called from within a C++ library, and thus does not need wrapping in a nice Python interface.} %description %_description %package -n python3-dijitso Summary: %summary %{?python_provides python3-dijitso} Requires: python3-mpi4py-runtime Requires: gcc-c++ BuildArch: noarch %description -n python3-dijitso %_description %prep %autosetup -n dijitso-%{version} -p1 %build %py3_build %install %py3_install %check # We test with both mpi implementations, just because we can :_] %_mpich_load %__python3 -m pytest -v test/ %_mpich_unload %_openmpi_load %__python3 -m pytest -v test/ %_openmpi_unload %files -n python3-dijitso %license COPYING %license COPYING.LESSER %doc README.rst /usr/bin/dijitso %{python3_sitelib}/dijitso %{python3_sitelib}/fenics_dijitso-%{version}-py%{python3_version}.egg-info/ %{_mandir}/man1/dijitso.1* %changelog * Tue Oct 8 2019 Zbigniew Jędrzejewski-Szmek - 2019.1.0-1 - Initial packaging