@@ -9,6 +9,10 @@ Source0: %{name}-%{version}.tar.gz
99# https://github.com/google/libphonenumber/pull/2556
1010Patch1: 0001-Fix-geocoding-build-when-static-libraries-are-off.patch
1111Patch2: 0002-Ensure-build-reproducibility.patch
12+ # "Backport" of https://github.com/google/libphonenumber/pull/3213
13+ Patch3: 0003-cmake-absl.patch
14+ # "Backport" of https://github.com/google/libphonenumber/pull/3215
15+ Patch4: 0004-Update-absl-dependencies-in-CMakeLists.txt
1216
1317BuildRequires: gcc-c++
1418BuildRequires: cmake
@@ -71,6 +75,11 @@ Contains files needed to development with %{name}.
7175# USE_RE2=OFF - don't use google's re2 library (ICU is already in our default install, RE2 isn't)
7276# BUILD_STATIC_LIB=OFF - we don't need static libraries
7377# CMAKE_BUILD_TYPE=RelWithDebInfo - among other things this helps to achieve build reproducibility by defining the NDEBUG macro
78+ #
79+ # abseil protobuf pkgconfig bug:
80+ # https://github.com/protocolbuffers/protobuf/issues/12746#issuecomment-1625152336
81+ # CMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \
82+ # protobuf_MODULE_COMPATIBLE=ON \
7483
7584touch cpp/src/phonenumbers/test_metadata.h
7685%cmake -DBUILD_GEOCODER= ON \
@@ -83,6 +92,8 @@ touch cpp/src/phonenumbers/test_metadata.h
8392 -DBUILD_STATIC_LIB= OFF \
8493 -DCMAKE_BUILD_TYPE= RelWithDebInfo \
8594 -DCMAKE_CXX_STANDARD= 17 \
95+ -DCMAKE_FIND_PACKAGE_PREFER_CONFIG= ON \
96+ -Dprotobuf_MODULE_COMPATIBLE= ON \
8697 cpp
8798
8899%make_build
0 commit comments