diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 02:15:57 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 02:15:57 +0000 |
commit | 9fbdd102e9c54cccd0acbf24fd451d976e4e519e (patch) | |
tree | 6535d4e746ba268f9744f2742902e25cf884f9d9 | |
parent | 5dba0fb3011a8c7caae1bec069d29c2ad2b92eba (diff) |
automatic import of python3-gmpy2openeuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-gmpy2.spec | 82 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/gmpy2-2.1.5.tar.gz diff --git a/python-gmpy2.spec b/python-gmpy2.spec new file mode 100644 index 0000000..5f1aec5 --- /dev/null +++ b/python-gmpy2.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gmpy2 +Version: 2.1.5 +Release: 1 +Summary: gmpy2 interface to GMP/MPIR, MPFR, and MPC for Python 2.7 and 3.5+ +License: LGPL-3.0+ +URL: https://github.com/aleaxit/gmpy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d9/2e/2848cb5ab5240cb34b967602990450d0fd715f013806929b2f82821cef7f/gmpy2-2.1.5.tar.gz + + +%description +gmpy2 is an optimized, C-coded Python extension module that supports fast +multiple-precision arithmetic. gmpy2 is based on the original gmpy module. +gmpy2 adds support for correctly rounded multiple-precision real arithmetic +(using the MPFR library) and complex arithmetic (using the MPC library). + +%package -n python3-gmpy2 +Summary: gmpy2 interface to GMP/MPIR, MPFR, and MPC for Python 2.7 and 3.5+ +Provides: python-gmpy2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-gmpy2 +gmpy2 is an optimized, C-coded Python extension module that supports fast +multiple-precision arithmetic. gmpy2 is based on the original gmpy module. +gmpy2 adds support for correctly rounded multiple-precision real arithmetic +(using the MPFR library) and complex arithmetic (using the MPC library). + +%package help +Summary: Development documents and examples for gmpy2 +Provides: python3-gmpy2-doc +%description help +gmpy2 is an optimized, C-coded Python extension module that supports fast +multiple-precision arithmetic. gmpy2 is based on the original gmpy module. +gmpy2 adds support for correctly rounded multiple-precision real arithmetic +(using the MPFR library) and complex arithmetic (using the MPC library). + +%prep +%autosetup -n gmpy2-2.1.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-gmpy2 -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Feb 25 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.5-1 +- Package Spec generated @@ -0,0 +1 @@ +0cd8e9d89c2f9d018eb52d2983abaeb4 gmpy2-2.1.5.tar.gz |