From a86ab11698c6a26b718060f9acffe342b99c1cc5 Mon Sep 17 00:00:00 2001 From: zhongtao Date: Fri, 9 May 2025 10:38:03 +1400 Subject: [PATCH] distinguish between statically and dynamically compiled pc files to prevent BEP binary differences Signed-off-by: zhongtao --- protobuf.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/protobuf.spec b/protobuf.spec index b614396..9ef7027 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -15,7 +15,7 @@ Summary: Protocol Buffers - Google's data interchange format Name: protobuf Version: 25.1 -Release: 8 +Release: 9 License: BSD-3-Clause URL: https://github.com/protocolbuffers/protobuf Source: https://github.com/protocolbuffers/protobuf/releases/download/v%{version}%{?rcver}/%{name}-all-%{version}%{?rcver}.tar.gz @@ -300,6 +300,7 @@ fail=1 %install %ninja_install -C build-static +mv %{buildroot}%{_libdir}/pkgconfig/protobuf.pc %{buildroot}%{_libdir}/pkgconfig/protobuf-static.pc %ninja_install -C build %if %{with python} @@ -344,6 +345,7 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir} %{_includedir}/utf8_validity.h %{_libdir}/libprotobuf.so %{_libdir}/libprotoc.so +%{_libdir}/pkgconfig/protobuf-static.pc %{_libdir}/pkgconfig/protobuf.pc %{_libdir}/pkgconfig/utf8_range.pc %doc examples/add_person.cc examples/addressbook.proto examples/list_people.cc examples/Makefile examples/README.md @@ -397,6 +399,12 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_emacs_sitestartdir} %endif %changelog +* Fri May 09 2025 zhongtao - 25.1-9 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: distinguish between statically and dynamically compiled pc files to prevent BEP binary differences + * Thu Nov 14 2024 Funda Wang - 25.1-8 - adopt to new cmake macro -- Gitee