%undefine _debugsource_packages Summary: recola - Recola is a Fortran95 computer program for the automated generation and numerical computation of EW and QCD amplitudes in the Standard Model at next-to-leading order. Name: recola Version: 1.4.1 Release: 2%{?dist} License: GPLv3 Prefix: %{_prefix} Source: https://www.hepforge.org/archive/recola/recola-%{version}.tar.gz BuildRequires: collier gcc-gfortran gcc-c++ Requires: collier %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 BuildRequires: cmake >= 3.4.3 %else BuildRequires: cmake3 >= 3.4.3 %endif %description Recola is a Fortran95 computer program for the automated generation and numerical computation of EW and QCD amplitudes in the Standard Model at next-to-leading order. %prep %setup -q %build %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 %cmake \ %else %cmake3 \ %endif . -DCOLLIER_LIB_PATH=/usr/share/cmake -DSYSCONFIG_INSTALL_DIR=%{_prefix}/share/cmake/ %if %{?fedora}%{!?fedora:0} make -C x86_64-redhat-linux-gnu %else make %endif %install %if %{?fedora}%{!?fedora:0} make -C x86_64-redhat-linux-gnu install DESTDIR=%{buildroot} %else make install DESTDIR=%{buildroot} %endif %files %defattr(-,root,root) /%{_prefix}/include/* %{_prefix}/%_lib/* %{_prefix}/share/cmake/* %clean rm -rf %{buildroot} %post ldconfig %changelog * Thu Nov 23 2017 Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de - Initial