From d6f4a56b7ee759eb3841471fa4d4d11e19238506 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 7 Dec 2022 13:33:36 -0500 Subject: [PATCH] Use a macro to avoid repeating the .so version, and improve .so globs --- protobuf.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/protobuf.spec b/protobuf.spec index b0c58a2..9446fef 100644 --- a/protobuf.spec +++ b/protobuf.spec @@ -15,6 +15,7 @@ Summary: Protocol Buffers - Google's data interchange format Name: protobuf Version: 3.19.4 +%global so_version 30 Release: 7%{?dist} # The entire source is BSD-3-Clause, except the following files, which belong @@ -409,14 +410,14 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} %files %doc CHANGES.txt CONTRIBUTORS.txt README.md %license LICENSE -%{_libdir}/libprotobuf.so.30* +%{_libdir}/libprotobuf.so.%{so_version}{,.*} %files compiler %doc README.md %license LICENSE %{_bindir}/protoc %{_mandir}/man1/protoc.1* -%{_libdir}/libprotoc.so.30* +%{_libdir}/libprotoc.so.%{so_version}{,.*} %files devel %dir %{_includedir}/google @@ -437,7 +438,7 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} %files lite %license LICENSE -%{_libdir}/libprotobuf-lite.so.30* +%{_libdir}/libprotobuf-lite.so.%{so_version}{,.*} %files lite-devel %{_libdir}/libprotobuf-lite.so @@ -507,6 +508,7 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir} - Remove obsolete ldconfig_scriptlets macros - The -vim subpackage now depends on vim-filesystem, no longer on vim-enhanced - Add a man page for protoc +- Use a macro to avoid repeating the .so version, and improve .so globs * Sun Aug 14 2022 Orion Poplawski - 3.19.4-6 - Build python support with C++ (bz#2107921)