%global _lto_cflags %{nil} Name: QuantLib-SWIG Version: 1.29 Release: 1%{?dist} Summary: The SWIG wrappers for QuantLib License: BSD URL: http://www.quantlib.org Source0: https://github.com/lballabio/%{name}/releases/download/%{name}-v%{version}/%{name}-%{version}.tar.gz %description . %package -n python%{python3_pkgversion}-QuantLib Summary: The Python wrapper for the QuantLib library BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: QuantLib-devel = %{version} Requires: QuantLib = %{version} %description -n python%{python3_pkgversion}-QuantLib The Python wrapper for the QuantLib library. %prep %setup -q %build cd Python CPPFLAGS="$RPM_OPT_FLAGS -Wno-sign-compare -std=c++14" \ %py3_build %install cd Python %py3_install %check cd Python %{__python3} setup.py test %files -n python%{python3_pkgversion}-QuantLib %license LICENSE.TXT %{python3_sitearch}/QuantLib* %exclude %{_datadir}/doc/quantlib/LICENSE.TXT