diff --git a/spdlog.changes b/spdlog.changes index 41b3e2e..7f38421 100644 --- a/spdlog.changes +++ b/spdlog.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 24 21:39:39 UTC 2022 - Bernd Ritter + +- another sover approach + ------------------------------------------------------------------- Mon Oct 24 21:13:33 UTC 2022 - Bernd Ritter diff --git a/spdlog.spec b/spdlog.spec index d6c9fad..bef0737 100644 --- a/spdlog.spec +++ b/spdlog.spec @@ -26,7 +26,7 @@ URL: https://github.com/gabime/spdlog Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source99: baselibs.conf # PATCH-FIX-UPSTREAM fix for bug boo#1199306 -Patch0: https://github.com/gabime/%{name}/commit/e36b69a0ecbdfb51cc28087b11256fb88c360ba4.patch +Patch0: https://github.com/gabime/%{name}/commit/e36b69a0ecbdfb51cc28087b11256fb88c360ba4.patch BuildRequires: cmake >= 3.10 %if 0%{?suse_version} > 1500 BuildRequires: gcc-c++ >= 8 @@ -44,7 +44,7 @@ This is a packaged version of the gabime/spdlog header-only C++ logging library available at Github. %package devel -Summary: Development files for %{name} +Summary: Development files for %{name}%{_sover} Requires: lib%{name}%{_sover} = %{version} Requires: libstdc++-devel Requires: pkgconfig(fmt) @@ -53,7 +53,7 @@ Requires: pkgconfig(fmt) The %{name}-devel package contains C++ header files for developing applications that use %{name}. -%package -n lib%{name}%{version} +%package -n lib%{name}%{_sover} Summary: C++ logging library %description -n lib%{name}%{_sover} @@ -82,22 +82,22 @@ test -x "$(type -p g++-8)" && export CXX=g++-8 %ninja_install -C build %check -export LD_LIBRARY_PATH="%{_builddir}/%{name}-%{version}/build" +export LD_LIBRARY_PATH="%{_builddir}/%{name}%{_sover}-%{version}/build" %ctest -%post -n lib%{name}.so.%{version} -p /sbin/ldconfig +%post -n lib%{name}%{_sover} -p /sbin/ldconfig -%postun -n lib%{name}.so.%{version} -p /sbin/ldconfig +%postun -n lib%{name}%{_sover} -p /sbin/ldconfig %files devel %license LICENSE %doc README.md -%{_includedir}/%{name} +%{_includedir}/%{name}%{_sover} %{_libdir}/lib%{name}%{_sover}.so -%{_libdir}/cmake/%{name} -%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/cmake/%{name}%{_sover} +%{_libdir}/pkgconfig/%{name}%{_sover}.pc -%files -n lib%{name}.so.%{version} -%{_libdir}/lib%{name}.so.%{version} +%files -n lib%{name}%{_sover} +%{_libdir}/lib%{name}%{_sover}.so.* %changelog