Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
mpmath
> python3-mpmath.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python3-mpmath.spec of Package mpmath
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: python3-mpmath # >> macros # << macros %define int_name mpmath Summary: Library for arbitrary-precision arithmetic Version: 1.2.1 Release: 0 Group: Libraries License: BSD-3-Clause BuildArch: noarch URL: https://pypi.org/project/mpmath/ Source0: https://files.pythonhosted.org/packages/source/m/%{int_name}/%{int_name}-%{version}.tar.gz Patch0: setup.patch BuildRequires: pkgconfig(python) BuildRequires: python3-rpm-macros BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm %description %{summary}. %prep %setup -q -n %{int_name}-%{version} # setup.patch %patch0 -p1 # >> setup 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 # << setup %build # >> build pre # << build pre %{py3_build} # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %{py3_install} # >> install post find %{buildroot}%{python3_sitelib} -type f -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + # << install post %files %defattr(-,root,root,-) # >> files %license LICENSE %doc README.rst %dir %{python3_sitelib}/%{int_name} %{python3_sitelib}/%{int_name} %{python3_sitelib}/%{int_name}-%{version}-py*.egg-info # << files