- another sover approach

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=70
This commit is contained in:
Bernd Ritter 2022-10-24 21:39:59 +00:00 committed by Git OBS Bridge
parent 477770278e
commit be982b2aec
2 changed files with 16 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 24 21:39:39 UTC 2022 - Bernd Ritter <comrad@posteo.de>
- another sover approach
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 24 21:13:33 UTC 2022 - Bernd Ritter <comrad@posteo.de> Mon Oct 24 21:13:33 UTC 2022 - Bernd Ritter <comrad@posteo.de>

View File

@ -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 Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf Source99: baselibs.conf
# PATCH-FIX-UPSTREAM fix for bug boo#1199306 # 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 BuildRequires: cmake >= 3.10
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
BuildRequires: gcc-c++ >= 8 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. logging library available at Github.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}%{_sover}
Requires: lib%{name}%{_sover} = %{version} Requires: lib%{name}%{_sover} = %{version}
Requires: libstdc++-devel Requires: libstdc++-devel
Requires: pkgconfig(fmt) Requires: pkgconfig(fmt)
@ -53,7 +53,7 @@ Requires: pkgconfig(fmt)
The %{name}-devel package contains C++ header files for developing The %{name}-devel package contains C++ header files for developing
applications that use %{name}. applications that use %{name}.
%package -n lib%{name}%{version} %package -n lib%{name}%{_sover}
Summary: C++ logging library Summary: C++ logging library
%description -n lib%{name}%{_sover} %description -n lib%{name}%{_sover}
@ -82,22 +82,22 @@ test -x "$(type -p g++-8)" && export CXX=g++-8
%ninja_install -C build %ninja_install -C build
%check %check
export LD_LIBRARY_PATH="%{_builddir}/%{name}-%{version}/build" export LD_LIBRARY_PATH="%{_builddir}/%{name}%{_sover}-%{version}/build"
%ctest %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 %files devel
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%{_includedir}/%{name} %{_includedir}/%{name}%{_sover}
%{_libdir}/lib%{name}%{_sover}.so %{_libdir}/lib%{name}%{_sover}.so
%{_libdir}/cmake/%{name} %{_libdir}/cmake/%{name}%{_sover}
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}%{_sover}.pc
%files -n lib%{name}.so.%{version} %files -n lib%{name}%{_sover}
%{_libdir}/lib%{name}.so.%{version} %{_libdir}/lib%{name}%{_sover}.so.*
%changelog %changelog