From 0459dc16ffd935c9e6e64d65297a461f718d4979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Wed, 3 Jul 2019 18:21:48 +0200 Subject: [PATCH] Avoid accidental so-name bumps --- jsoncpp.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jsoncpp.spec b/jsoncpp.spec index d45a06c..2304022 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -3,6 +3,10 @@ %global jsondir json +# Avoid accidental so-name bumps. +%global sover 21 + + Name: jsoncpp Version: 1.9.0 Release: 1%{?dist} @@ -12,9 +16,9 @@ License: Public Domain or MIT URL: https://github.com/open-source-parsers/%{name} Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake >= 3.1 BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: cmake >= 3.1 BuildRequires: python3-devel %description @@ -103,7 +107,8 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name} %if %{with jsoncpp_enables_doc} %exclude %{_docdir}/%{name}/html %endif -%{_libdir}/lib%{name}.so.* +%{_libdir}/lib%{name}.so.%{sover}* +%{_libdir}/lib%{name}.so.%{version} %files devel