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