Accepting request 612069 from devel:languages:python

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
This commit is contained in:
2018-06-02 10:03:49 +00:00
committed by Git OBS Bridge
commit e9d45451fe
5 changed files with 108 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
gmpy2-2.0.8.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f
size 280551

9
python-gmpy2.changes Normal file
View File

@@ -0,0 +1,9 @@
-------------------------------------------------------------------
Thu May 24 17:33:34 UTC 2018 - toddrme2178@gmail.com
- spec file cleanups
-------------------------------------------------------------------
Sat Aug 26 02:00:40 UTC 2017 - toddrme2178@gmail.com
- Initial version

72
python-gmpy2.spec Normal file
View File

@@ -0,0 +1,72 @@
#
# 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