## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond_without check %global forgeurl https://gitlab.cern.ch/VecGeom/VecGeom Version: 1.2.7 %global tag v%{version} %forgemeta Name: vecgeom Release: %autorelease Summary: A vectorized geometry library for particle-detector simulation # the library is licensed under Apache-2.0, except # base/robin_hood.h - robin-hood-hashing - MIT # the following source code files from celeritas project - Apache-2.0 OR MIT: # VecGeom/management/{ColorUtils.h,Environment.h,Logger.h,LoggerMessage.h,LoggerTypes.h} # source/{ColorUtils.cpp,Environment.cpp,Logger.cpp,LoggerMessage.cpp,LoggerTypes.cpp} License: Apache-2.0 AND MIT AND (Apache-2.0 OR MIT) URL: %{forgeurl} Source0: %{forgesource} # add soversion to the library # modified from https://gitlab.cern.ch/VecGeom/VecGeom/-/merge_requests/889 Patch0: vecgeom-add-soversion.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: pkgconfig(xerces-c) BuildRequires: cmake(veccore) %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 development files for %{name}. %prep %forgeautosetup -p1 %build %cmake \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DVECGEOM_GDML=ON \ %cmake_build %install %cmake_install %if %{with check} %check # the tests all passed only on x86_64 architecture currently %ifarch x86_64 %ctest %endif %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 ## START: Generated by rpmautospec * Fri Oct 18 2024 Pete Walter - 1.2.7-4 - Rebuild for xerces-c 3.3 * Sat Jul 20 2024 Fedora Release Engineering - 1.2.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 1.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 19 2023 topazus - 1.2.7-1 - update to 1.2.7; rhbz#2255218 * Mon Dec 04 2023 topazus - 1.2.6-1 - initial import; rhbz#2225004 ## END: Generated by rpmautospec