SHA256
1
0
forked from pool/spdlog

Accepting request 1135257 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/1135257
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spdlog?expand=0&rev=31
This commit is contained in:
Ana Guerrero 2023-12-28 21:54:35 +00:00 committed by Git OBS Bridge
commit 7d221c63f1
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 14 09:47:07 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Add some symbol versions to ease rebuilds and transition on
user systems when fmt changes [boo#1217820]
-------------------------------------------------------------------
Thu Nov 16 13:08:02 UTC 2023 - Jiri Srain <jsrain@suse.com>

View File

@ -77,6 +77,12 @@ sed -i -e "s,\r,," README.md LICENSE
%build
export CXX=g++
test -x "$(type -p g++-8)" && export CXX=g++-8
# spdlog embodies fmt ABI; add some symvers so both ld.so and rpm notice the change.
v=$(rpm -q --qf="%%{VERSION}" --whatprovides "pkgconfig(fmt)" | sed -e 's/\..*//')
echo "FMT_$v { global: _ZN6spdlog*N3fmt${#v}v${v}; };" >spdlog.sym
v="$PWD/spdlog.sym"
%cmake -G Ninja \
-DSPDLOG_BUILD_TESTS=ON \
-DSPDLOG_BUILD_BENCH=OFF \
@ -84,6 +90,7 @@ test -x "$(type -p g++-8)" && export CXX=g++-8
-DCMAKE_BUILD_TYPE=Release \
-DSPDLOG_BUILD_EXAMPLES=OFF \
-DSPDLOG_BUILD_SHARED=ON \
-DCMAKE_SHARED_LINKER_FLAGS="%{?build_ldflags} -Wl,--as-needed -Wl,-z,now -Wl,--version-script=$v" \
..
%ninja_build