%global real_version 2.02.03 %global tarball_version 0%real_version Name: evtgen Version: %real_version Release: 2%{?dist} Summary: Event generator for particle physics License: GPL-3.0-or-later URL: https://evtgen.hepforge.org/ Source0: https://evtgen.hepforge.org/downloads?f=EvtGen-%{tarball_version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: python3 BuildRequires: pythia8-devel BuildRequires: HepMC3-devel BuildRequires: HepMC3-search-devel Requires: %{name}-data = %{version}-%{release} %description EvtGen is a Monte Carlo event generator that simulates the decays of heavy flavor particles, primarily B and D mesons. It contains a range of decay models for intermediate and final states containing scalar, vector and tensor mesons or resonances, as well as leptons, photons and baryons. Decay amplitudes are used to generate each branch of a given full decay tree, taking into account angular and time-dependent correlations which allows for the simulation of CP-violating processes. %package devel Summary: Development files for evtgen Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the header files and libraries needed to develop applications using evtgen. %package data Summary: Data files for evtgen Requires: %{name}%{?_isa} = %{version}-%{release} BuildArch: noarch %description data This package contains the data files needed by evtgen. %prep %autosetup -n EvtGen/R%{gsub %tarball_version [.] -} # disable setting RPATHs sed -i '/CMAKE_INSTALL_RPATH/d' cmake/Modules/CompilerFlags.cmake # don't install static libraries sed -i '/TARGETS/ s/\<[^[:space:]]*Static[^[:space:]]*\>//g' src/CMakeLists.txt %build %cmake -DEVTGEN_PYTHIA=BOOL:ON %cmake_build %install %cmake_install %files %license COPYING %doc %{_docdir}/EvtGen %{_libdir}/libEvtGen.so.* %{_libdir}/libEvtGenExternal.so.* %files devel %{_libdir}/libEvtGen.so %{_libdir}/libEvtGenExternal.so %{_includedir}/EvtGen %{_includedir}/EvtGenExternal %{_includedir}/EvtGenBase %{_includedir}/EvtGenModels %{_datadir}/EvtGen/cmake %files data %{_datadir}/EvtGen/ %exclude %{_datadir}/EvtGen/cmake %changelog %autochangelog