Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python3-mpmath
> python3-mpmath.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python3-mpmath.spec of Package python3-mpmath
# # spec file for package python3-mpmath for Mer, based on OpenSuse version # %define modname mpmath Name: python3-%{modname} Version: 0.19 Release: 0 Summary: Python library for arbitrary-precision floating-point arithmetic License: BSD-3-Clause Packager: Roberto Colistete Jr. <rcolistete.maemo@gmail.com> Vendor: Fredrik Johansson <mpmath@googlegroups.com> Group: Development/Libraries/Python Url: http://mpmath.org Source0: %{modname}-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: python3-six Requires: python3-six BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description Mpmath is a pure-Python library for multiprecision floating-point arithmetic. It provides an extensive set of transcendental functions, unlimited exponent sizes, complex numbers, interval arithmetic, numerical integration and differentiation, root-finding, linear algebra, and much more. Almost any calculation can be performed just as well at 10-digit or 1000-digit precision, and in many cases mpmath implements asymptotically fast algorithms that scale well for extremely high precision work. If available, mpmath will (optionally) use gmpy to speed up high precision operations. %define python3_sitelib %{_libdir}/python3.?/site-packages %prep %setup -q -n %{modname}-%{version} sed -i 's/\r//' mpmath/tests/runtests.py # fix wrong-script-end-of-line-encoding rpmlint warning sed -i '1d' mpmath/tests/runtests.py # fix non-executable-script rpmlint warning %build # CLEAN UP SHEBANGS FROM NON-EXEC FILES for f in eigen eigen_symmetric do sed -i '/\#!\/usr\/bin\/python/ d' mpmath/tests/test_${f}.py sed -i '/\#!\/usr\/bin\/python/ d' mpmath/matrices/${f}.py done sed -i '/\#!\/usr\/bin\/python/ d' mpmath/tests/test_levin.py python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root) %{python_sitelib}/* %changelog * Sun Aug 14 2016 Roberto Colistete Jr. <rcolistete.maemo@gmail.com> - 0.19 - (Python 3) mpmath 0.19 (10/06/2014) for Mer (14/08/2016) : - * first release.