%bcond_without check %global forgeurl https://gitlab.cern.ch/VecGeom/VecGeom Version: 1.2.4 %global tag v%{version} %forgemeta Name: vecgeom Release: %autorelease Summary: vectorized geometry library for particle-detector simulation (toolkits) License: Apache-2.0 URL: %{forgeurl} Source0: %{forgesource} # modified from https://gitlab.cern.ch/VecGeom/VecGeom/-/merge_requests/889 Patch0: vecgeom-add-soversion.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: xerces-c-devel BuildRequires: veccore-devel %description VecGeom is a geometry modeller library with hit-detection features as needed by particle detector simulation at the LHC and beyond. It was incubated by a Geant-R&D initiative and the motivation to combine the code of Geant4 and ROOT/TGeo into a single, better maintainable piece of software within the EU-AIDA program. As such it is close in scope to TGeo and Geant4 geometry modellers. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %forgeautosetup -p1 %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DVECGEOM_GDML=ON \ %cmake_build %install %cmake_install %if %{with check} %check %ctest %endif %files %license LICENSE.txt APACHE-LICENSE-2.0.txt %doc README.md %{_libdir}/libvecgeom.so.1.2* %{_libdir}/libvgdml.so.1.2* %files devel %{_includedir}/VecGeom/ %dir %{_libdir}/cmake/VecGeom %{_libdir}/cmake/VecGeom/*.cmake %{_libdir}/libvecgeom.so %{_libdir}/libvgdml.so %changelog %autochangelog