Avoid accidental so-name bumps

This commit is contained in:
Björn Esser 2019-07-03 18:21:48 +02:00
parent 03d2d8ec50
commit 0459dc16ff
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -3,6 +3,10 @@
%global jsondir json %global jsondir json
# Avoid accidental so-name bumps.
%global sover 21
Name: jsoncpp Name: jsoncpp
Version: 1.9.0 Version: 1.9.0
Release: 1%{?dist} Release: 1%{?dist}
@ -12,9 +16,9 @@ License: Public Domain or MIT
URL: https://github.com/open-source-parsers/%{name} URL: https://github.com/open-source-parsers/%{name}
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.1
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: cmake >= 3.1
BuildRequires: python3-devel BuildRequires: python3-devel
%description %description
@ -103,7 +107,8 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
%if %{with jsoncpp_enables_doc} %if %{with jsoncpp_enables_doc}
%exclude %{_docdir}/%{name}/html %exclude %{_docdir}/%{name}/html
%endif %endif
%{_libdir}/lib%{name}.so.* %{_libdir}/lib%{name}.so.%{sover}*
%{_libdir}/lib%{name}.so.%{version}
%files devel %files devel