# # spec file for package python-gmpy2 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test %define skip_python3 1 Name: python-gmpy2 Version: 2.0.8 Release: 1.5 Summary: GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3x License: LGPL-3.0 Group: Development/Languages/Python Url: https://github.com/aleaxit/gmpy Source: https://files.pythonhosted.org/packages/source/g/gmpy2/gmpy2-%{version}.zip BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gmp-devel BuildRequires: libmpir-devel BuildRequires: mpc-devel BuildRequires: mpfr-devel BuildRequires: python-rpm-macros BuildRequires: unzip %python_subpackages %description gmpy2 is a C-coded Python extension module that supports multiple-precision arithmetic. In addition to supporting GMP or MPIR for multiple-precision integer and rational arithmetic, gmpy2 adds support for the MPFR (correctly rounded real floating-point arithmetic) and MPC (correctly rounded complex floating-point arithmetic) libraries. %prep %setup -q -n gmpy2-%{version} %build export CFLAGS="%{optflags}" %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %defattr(-,root,root,-) %doc COPYING COPYING.LESSER README %{python_sitearch}/* %changelog * Sat Aug 26 2017 toddrme2178@gmail.com - Initial version