%undefine _debugsource_packages Summary: A model for recola2 Name: recola2-SM Version: 2.2.3 Release: 2%{?dist} License: GPLv3 Prefix: %{_prefix} #Source0: https://www.hepforge.org/archive/recola/recola2-{version}.tar.gz Source0: https://www.hepforge.org/archive/recola/SM_2.2.3.tar.gz URL: https://recola.gitlab.io/recola2/ BuildRequires: collier gcc-c++ Requires: collier %if 0%{?rhel} || 0%{?fedora} BuildRequires: gcc-gfortran BuildRequires: python3-devel %if %{?fedora}%{!?fedora:0} BuildRequires: chrpath %endif %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} >= 8 BuildRequires: cmake >= 3.4.3 %else BuildRequires: cmake3 >= 3.4.3 %endif %endif %if 0%{?suse_version} BuildRequires: gcc-fortran BuildRequires: cmake >= 3.4.3 BuildRequires: python3-devel %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 -n SM_2.2.3 #setup -q -T -D -a 1 %build %if 0%{?rhel} || 0%{?fedora} %if %{?rhel}%{!?rhel:0} == 8 %cmake . -DCOLLIER_LIB_PATH=/usr/share/cmake -DSYSCONFIG_INSTALL_DIR=%{_prefix}/share/cmake/ %make_build %endif %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} > 8 %cmake -DCOLLIER_LIB_PATH=/usr/share/cmake -DSYSCONFIG_INSTALL_DIR=%{_prefix}/share/cmake/ %cmake_build %endif %endif %if 0%{?suse_version} %cmake -DCOLLIER_LIB_PATH=/usr/share/cmake -DSYSCONFIG_INSTALL_DIR=%{_prefix}/share/cmake/ %make_build %endif %install %if 0%{?rhel} || 0%{?fedora} %if %{?fedora}%{!?fedora:0} || %{?rhel}%{!?rhel:0} > 8 %cmake_install %else %make_install %endif %if %{?fedora}%{!?fedora:0} chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libmodelfile.so %endif %endif %if 0%{?suse_version} cd build %make_install %endif %files %defattr(-,root,root) %{_includedir}/* %{_libdir}/* %{_prefix}/share/cmake/* %clean rm -rf %{buildroot} %post ldconfig %changelog * Tue Jul 12 2022 Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de - 2.2.4 * Thu Nov 23 2017 Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de - Initial