forked from pool/python-gmpy2
GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3x OBS-URL: https://build.opensuse.org/request/show/612069 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gmpy2?expand=0&rev=1
73 lines
2.2 KiB
RPMSpec
73 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-gmpy2
|
|
#
|
|
# Copyright (c) 2018 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-%{**}}
|
|
Name: python-gmpy2
|
|
Version: 2.0.8
|
|
Release: 0
|
|
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}
|
|
|
|
%check
|
|
%{python_expand export PYTHONDONTWRITEBYTECODE=1
|
|
export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
|
pushd test
|
|
$python runtests.py
|
|
popd
|
|
}
|
|
|
|
%files %{python_files}
|
|
%doc README
|
|
%license COPYING COPYING.LESSER
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|