Name: c++utilities %global _basename cpp-utilities %global forgeurl https://github.com/Martchus/%{_basename} Version: 5.26.1 %forgemeta %define soname 5 Release: 1%{?dist} Summary: Common C++ classes and routines License: GPL-2.0-or-later URL: %{forgeurl} Source: %{forgesource} BuildRequires: cmake >= 3.17 BuildRequires: cppunit-devel >= 1.14.0 BuildRequires: gcc-c++ BuildRequires: ninja-build %description Common C++ classes and routines such as argument parser, IO and conversion utilities. #------------------------------------------------------------------ %package -n lib%{name}%{soname} Summary: Common C++ classes and routines %description -n lib%{name}%{soname} Common C++ classes and routines such as argument parser, IO and conversion utilities. %files -n lib%{name}%{soname} %license LICENSE %{_libdir}/lib%{name}.so.%{soname}* #------------------------------------------------------------------ %package devel Summary: Devel files for %{name} Requires: cmake >= 3.9 Requires: glibc-devel Requires: lib%{name}%{soname} = %{version} Requires: libstdc++-devel Requires: pkg-config %description devel Development files for %{name} %files devel %doc README.md %{_includedir}/%{name} %{_datadir}/%{name} %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/lib%{name}.so #------------------------------------------------------------------ %prep %forgeautosetup %build %cmake -DBUILD_SHARED_LIBS:BOOL=ON %cmake_build %check export LD_LIBRARY_PATH="$PWD/%{__cmake_builddir}:$LD_LIBRARY_PATH" %cmake_build --target check %install %cmake_install #------------------------------------------------------------------ %changelog * Fri Sep 20 2024 Hazel Bunny - 5.26.1-1 - Update to version 5.26.1 * Mon Aug 12 2024 Hazel Bunny - 5.26.0-1 - Update to version 5.26.0 * Fri Jul 5 2024 Hazel Bunny - 5.25.0-1 - Adopt from obs://home:mkittler