Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ecsos:python
python-gmpy2
python-gmpy2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-gmpy2.spec of Package python-gmpy2
# # spec file for package python-gmpy2 # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %{?sle15_python_module_pythons} Name: python-gmpy2 Version: 2.1.5 Release: 0 Summary: GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3x License: LGPL-3.0-only URL: https://github.com/aleaxit/gmpy Source: https://files.pythonhosted.org/packages/source/g/gmpy2/gmpy2-%{version}.tar.gz # PATCH-FIX-UPSTREAM https://github.com/aleaxit/gmpy/pull/422 Update MPFR to 4.2.1 in build scripts & fix test failures on new version Patch0: mpfr421.patch # PATCH-FIX-UPSTREAM file included in https://github.com/aleaxit/gmpy/issues/418#issuecomment-1706721394 Patch1: gmpy2_cache.c.diff # PATCH-FIX-UPSTREAM included in https://github.com/aleaxit/gmpy/issues/446 Patch2: support-python-312.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gmp-devel BuildRequires: mpc-devel BuildRequires: mpfr-devel BuildRequires: python-rpm-macros %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 %autosetup -p1 -n gmpy2-%{version} %build export CFLAGS="%{optflags}" %pyproject_wheel %install %pyproject_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}/gmpy2 %{python_sitearch}/gmpy2-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor