Accepting request 1030963 from home:jengelh:branches:devel:libraries:c_c++
fix build failure OBS-URL: https://build.opensuse.org/request/show/1030963 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=71
This commit is contained in:
parent
be982b2aec
commit
10e3678c0a
@ -1,3 +1 @@
|
||||
libspdlog1
|
||||
+/usr/lib(64)?/libspdlog1/.*
|
||||
requires -libspdlog1-<targettype>
|
||||
libspdlog1_10
|
||||
|
31
spdlog.spec
31
spdlog.spec
@ -16,8 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%define _sover 1_10
|
||||
Name: spdlog
|
||||
%define lname libspdlog1_10
|
||||
%define sover 1.10
|
||||
Version: 1.10.0
|
||||
Release: 0
|
||||
Summary: C++ logging library
|
||||
@ -26,7 +27,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,8 +45,8 @@ This is a packaged version of the gabime/spdlog header-only C++
|
||||
logging library available at Github.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}%{_sover}
|
||||
Requires: lib%{name}%{_sover} = %{version}
|
||||
Summary: Header files for spdlog
|
||||
Requires: %{lname} = %{version}
|
||||
Requires: libstdc++-devel
|
||||
Requires: pkgconfig(fmt)
|
||||
|
||||
@ -53,10 +54,10 @@ Requires: pkgconfig(fmt)
|
||||
The %{name}-devel package contains C++ header files for developing
|
||||
applications that use %{name}.
|
||||
|
||||
%package -n lib%{name}%{_sover}
|
||||
%package -n %{lname}
|
||||
Summary: C++ logging library
|
||||
|
||||
%description -n lib%{name}%{_sover}
|
||||
%description -n %{lname}
|
||||
This is a packaged version of the gabime/spdlog C++ logging library
|
||||
available at Github.
|
||||
|
||||
@ -82,22 +83,22 @@ test -x "$(type -p g++-8)" && export CXX=g++-8
|
||||
%ninja_install -C build
|
||||
|
||||
%check
|
||||
export LD_LIBRARY_PATH="%{_builddir}/%{name}%{_sover}-%{version}/build"
|
||||
export LD_LIBRARY_PATH="%{_builddir}/%{lname}-%{version}/build"
|
||||
%ctest
|
||||
|
||||
%post -n lib%{name}%{_sover} -p /sbin/ldconfig
|
||||
%post -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%postun -n lib%{name}%{_sover} -p /sbin/ldconfig
|
||||
%postun -n %{lname} -p /sbin/ldconfig
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_includedir}/%{name}%{_sover}
|
||||
%{_libdir}/lib%{name}%{_sover}.so
|
||||
%{_libdir}/cmake/%{name}%{_sover}
|
||||
%{_libdir}/pkgconfig/%{name}%{_sover}.pc
|
||||
%{_includedir}/spdlog/
|
||||
%{_libdir}/libspdlog.so
|
||||
%{_libdir}/cmake/spdlog/
|
||||
%{_libdir}/pkgconfig/spdlog.pc
|
||||
|
||||
%files -n lib%{name}%{_sover}
|
||||
%{_libdir}/lib%{name}%{_sover}.so.*
|
||||
%files -n %{lname}
|
||||
%{_libdir}/libspdlog.so.*
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user