|
|
|
@ -3,21 +3,16 @@
|
|
|
|
|
|
|
|
|
|
%global jsondir json
|
|
|
|
|
|
|
|
|
|
Name: jsoncpp
|
|
|
|
|
Version: 1.8.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: JSON library implemented in C++
|
|
|
|
|
Name: jsoncpp
|
|
|
|
|
Version: 1.8.4
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: JSON library implemented in C++
|
|
|
|
|
|
|
|
|
|
License: Public Domain or MIT
|
|
|
|
|
URL: https://github.com/open-source-parsers/%{name}
|
|
|
|
|
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
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
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: hardlink
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -27,20 +22,25 @@ It is easy for humans to read and write. It is easy for machines to parse and
|
|
|
|
|
generate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers and library for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers and library for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the development headers and library for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: graphviz
|
|
|
|
|
BuildRequires: hardlink
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
This package contains the documentation for %{name}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -64,7 +64,6 @@ pushd %{_target_platform}
|
|
|
|
|
-DPYTHON_EXECUTABLE="%{__python3}" \
|
|
|
|
|
..
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
@ -76,12 +75,12 @@ popd
|
|
|
|
|
%install
|
|
|
|
|
%make_install -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
install -pm 0644 README.md %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/html
|
|
|
|
|
for f in README.md ; do
|
|
|
|
|
install -p -m 0644 $f %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
done
|
|
|
|
|
install -p -m 0644 dist/doxygen/*/*.{html,png} %{buildroot}%{_docdir}/%{name}/html
|
|
|
|
|
install -pm 0644 dist/doxygen/*/*.{html,png} %{buildroot}%{_docdir}/%{name}/html
|
|
|
|
|
hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -96,9 +95,9 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license AUTHORS LICENSE
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
|
%doc %{_docdir}/%{name}/README.md
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
|
%exclude %{_docdir}/%{name}/html
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/lib%{name}.so.*
|
|
|
|
@ -108,17 +107,20 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
|
%{_includedir}/%{jsondir}
|
|
|
|
|
%{_libdir}/cmake/*
|
|
|
|
|
%{_libdir}/pkgconfig/jsoncpp.pc
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with jsoncpp_enables_doc}
|
|
|
|
|
%files doc
|
|
|
|
|
%license %{_datadir}/licenses/%{name}*
|
|
|
|
|
%doc %{_docdir}/%{name}*
|
|
|
|
|
%license %{_datadir}/licenses/%{name}
|
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 26 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.4-1
|
|
|
|
|
- Update to version 1.8.4 (rhbz#1529017)
|
|
|
|
|
|
|
|
|
|
* Tue Aug 29 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.3-1
|
|
|
|
|
- Update to version 1.8.3 (rhbz#1485908)
|
|
|
|
|
|
|
|
|
|