%define _unpackaged_files_terminate_build 0 %define debug_package %{nil} Name: njet Version: 2.0.0 Release: 3%{?dist} License: GPL Url: https://bitbucket.org/njet Source0: https://bitbucket.org/njet/njet/downloads/%{name}-%{version}.tar.gz Patch0: patch-njet-0.txt Summary: NJet is a library for multi-parton one-loop matrix elements BuildRequires: gcc-gfortran gcc-c++ autoconf automake libtool %if %{?rhel}%{!?rhel:0} == 8 Requires: python2 %else Requires: python %endif Prefix: %{_prefix} %description NJet is a library for multi-parton one-loop matrix elements in massless QCD. NJet is based on the generalized unitarity program NGluon and uses QCDLoop/FF for scalar intergrals and libqd for extended precision arithmetic. %prep %setup -q %patch0 -p0 %if %{?rhel}%{!?rhel:0} == 8 sed -i 's@python@python2@1' blha/njet.py %endif %if %{?fedora}%{!?fedora:0} >= 31 sed -i 's@python@python2@1' blha/njet.py %endif %build #autoreconf export FFLAGS=-std=legacy ./configure --with-qd=/usr --prefix=/usr --libdir=/usr/%_lib make %install %make_install %files /usr/%_lib/* /usr/bin/* /usr/include/* /usr/share/* %changelog * Thu May 26 2016 Andrii Verbytskyi 2.2.0 + Initial spec file