forked from pool/spdlog
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
|
libspdlog1_10
|
||||||
+/usr/lib(64)?/libspdlog1/.*
|
|
||||||
requires -libspdlog1-<targettype>
|
|
||||||
|
29
spdlog.spec
29
spdlog.spec
@ -16,8 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define _sover 1_10
|
|
||||||
Name: spdlog
|
Name: spdlog
|
||||||
|
%define lname libspdlog1_10
|
||||||
|
%define sover 1.10
|
||||||
Version: 1.10.0
|
Version: 1.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: C++ logging library
|
Summary: C++ logging library
|
||||||
@ -44,8 +45,8 @@ 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}%{_sover}
|
Summary: Header files for spdlog
|
||||||
Requires: lib%{name}%{_sover} = %{version}
|
Requires: %{lname} = %{version}
|
||||||
Requires: libstdc++-devel
|
Requires: libstdc++-devel
|
||||||
Requires: pkgconfig(fmt)
|
Requires: pkgconfig(fmt)
|
||||||
|
|
||||||
@ -53,10 +54,10 @@ 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}%{_sover}
|
%package -n %{lname}
|
||||||
Summary: C++ logging library
|
Summary: C++ logging library
|
||||||
|
|
||||||
%description -n lib%{name}%{_sover}
|
%description -n %{lname}
|
||||||
This is a packaged version of the gabime/spdlog C++ logging library
|
This is a packaged version of the gabime/spdlog C++ logging library
|
||||||
available at Github.
|
available at Github.
|
||||||
|
|
||||||
@ -82,22 +83,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}%{_sover}-%{version}/build"
|
export LD_LIBRARY_PATH="%{_builddir}/%{lname}-%{version}/build"
|
||||||
%ctest
|
%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
|
%files devel
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{_includedir}/%{name}%{_sover}
|
%{_includedir}/spdlog/
|
||||||
%{_libdir}/lib%{name}%{_sover}.so
|
%{_libdir}/libspdlog.so
|
||||||
%{_libdir}/cmake/%{name}%{_sover}
|
%{_libdir}/cmake/spdlog/
|
||||||
%{_libdir}/pkgconfig/%{name}%{_sover}.pc
|
%{_libdir}/pkgconfig/spdlog.pc
|
||||||
|
|
||||||
%files -n lib%{name}%{_sover}
|
%files -n %{lname}
|
||||||
%{_libdir}/lib%{name}%{_sover}.so.*
|
%{_libdir}/libspdlog.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user