2017-10-04 16:09:38 +00:00
|
|
|
# Build documentation in HTML with images
|
|
|
|
%bcond_without jsoncpp_enables_doc
|
|
|
|
|
2016-01-03 17:15:40 +00:00
|
|
|
%global jsondir json
|
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
Name: jsoncpp
|
|
|
|
Version: 1.8.4
|
2018-06-19 08:45:18 +00:00
|
|
|
Release: 4%{?dist}
|
2017-12-26 07:47:41 +00:00
|
|
|
Summary: JSON library implemented in C++
|
2016-03-25 12:34:02 +00:00
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
License: Public Domain or MIT
|
|
|
|
URL: https://github.com/open-source-parsers/%{name}
|
|
|
|
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2013-02-15 10:52:29 +00:00
|
|
|
|
2016-12-28 18:09:47 +00:00
|
|
|
BuildRequires: cmake >= 3.1
|
2017-11-08 09:07:57 +00:00
|
|
|
BuildRequires: python3-devel
|
2013-02-15 10:52:29 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{name} is an implementation of a JSON (http://json.org) reader and writer in
|
|
|
|
C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format.
|
|
|
|
It is easy for humans to read and write. It is easy for machines to parse and
|
|
|
|
generate.
|
|
|
|
|
2013-02-15 11:22:21 +00:00
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development headers and library for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-02-15 10:52:29 +00:00
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
%description devel
|
2013-02-15 10:52:29 +00:00
|
|
|
This package contains the development headers and library for %{name}.
|
|
|
|
|
|
|
|
|
2017-10-04 16:09:38 +00:00
|
|
|
%if %{with jsoncpp_enables_doc}
|
2017-12-26 07:47:41 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
2013-02-15 11:22:21 +00:00
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: hardlink
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
2016-03-25 12:34:02 +00:00
|
|
|
This package contains the documentation for %{name}.
|
2017-10-04 16:09:38 +00:00
|
|
|
%endif
|
2013-02-15 11:22:21 +00:00
|
|
|
|
|
|
|
|
2013-02-15 10:52:29 +00:00
|
|
|
%prep
|
2017-07-02 09:07:58 +00:00
|
|
|
%autosetup -p 1
|
2017-10-04 16:09:38 +00:00
|
|
|
%if %{with jsoncpp_enables_doc}
|
2017-07-02 09:53:43 +00:00
|
|
|
doxygen -s -u doc/doxyfile.in
|
|
|
|
sed -i -e 's!^DOT_FONTNAME.*=.*!DOT_FONTNAME =!g' doc/doxyfile.in
|
2017-10-04 16:09:38 +00:00
|
|
|
%endif
|
2016-03-25 12:34:02 +00:00
|
|
|
|
2013-02-15 10:52:29 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-02 09:07:58 +00:00
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
2016-03-25 12:34:02 +00:00
|
|
|
%cmake -DBUILD_STATIC_LIBS=OFF \
|
|
|
|
-DJSONCPP_WITH_WARNING_AS_ERROR=OFF \
|
|
|
|
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \
|
|
|
|
-DJSONCPP_WITH_CMAKE_PACKAGE=ON \
|
2016-12-28 18:09:47 +00:00
|
|
|
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
|
2017-07-02 09:37:08 +00:00
|
|
|
-DPYTHON_EXECUTABLE="%{__python3}" \
|
2017-07-02 09:07:58 +00:00
|
|
|
..
|
|
|
|
popd
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
2017-10-04 16:09:38 +00:00
|
|
|
%if %{with jsoncpp_enables_doc}
|
2013-02-15 10:52:29 +00:00
|
|
|
# Build the doc
|
2017-07-02 09:37:08 +00:00
|
|
|
%{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen
|
2017-10-04 16:09:38 +00:00
|
|
|
%endif
|
2013-02-15 10:52:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2017-07-02 09:07:58 +00:00
|
|
|
%make_install -C %{_target_platform}
|
2013-02-15 10:52:29 +00:00
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
install -pm 0644 README.md %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
2017-10-04 16:09:38 +00:00
|
|
|
%if %{with jsoncpp_enables_doc}
|
2017-07-02 09:07:58 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/html
|
2017-12-26 07:47:41 +00:00
|
|
|
install -pm 0644 dist/doxygen/*/*.{html,png} %{buildroot}%{_docdir}/%{name}/html
|
2017-07-02 09:07:58 +00:00
|
|
|
hardlink -cfv %{buildroot}%{_docdir}/%{name}
|
2017-10-04 16:09:38 +00:00
|
|
|
%endif
|
2013-02-15 10:52:29 +00:00
|
|
|
|
2016-03-25 12:34:02 +00:00
|
|
|
|
|
|
|
%check
|
2017-07-02 09:07:58 +00:00
|
|
|
%make_build -C %{_target_platform} jsoncpp_check
|
2016-03-25 12:34:02 +00:00
|
|
|
|
|
|
|
|
2018-02-02 10:12:49 +00:00
|
|
|
%ldconfig_scriptlets
|
2013-02-15 10:52:29 +00:00
|
|
|
|
2016-03-25 12:34:02 +00:00
|
|
|
|
2013-02-15 10:52:29 +00:00
|
|
|
%files
|
2016-03-25 12:34:02 +00:00
|
|
|
%license AUTHORS LICENSE
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/README.md
|
2017-12-26 07:47:41 +00:00
|
|
|
%if %{with jsoncpp_enables_doc}
|
2013-09-10 19:14:02 +00:00
|
|
|
%exclude %{_docdir}/%{name}/html
|
2017-10-04 16:09:38 +00:00
|
|
|
%endif
|
2016-01-03 17:15:40 +00:00
|
|
|
%{_libdir}/lib%{name}.so.*
|
2013-02-15 10:52:29 +00:00
|
|
|
|
2016-03-25 12:34:02 +00:00
|
|
|
|
2013-02-15 10:52:29 +00:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/lib%{name}.so
|
2017-07-02 09:07:58 +00:00
|
|
|
%{_includedir}/%{jsondir}
|
2017-08-07 08:54:59 +00:00
|
|
|
%{_libdir}/cmake/*
|
2017-12-26 07:47:41 +00:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2013-02-15 11:22:21 +00:00
|
|
|
|
2016-03-25 12:34:02 +00:00
|
|
|
|
2017-10-04 16:09:38 +00:00
|
|
|
%if %{with jsoncpp_enables_doc}
|
2013-02-15 11:22:21 +00:00
|
|
|
%files doc
|
2017-12-26 07:47:41 +00:00
|
|
|
%license %{_datadir}/licenses/%{name}
|
|
|
|
%doc %{_docdir}/%{name}
|
2017-10-04 16:09:38 +00:00
|
|
|
%endif
|
2016-03-25 12:34:02 +00:00
|
|
|
|
2013-02-15 10:52:29 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-06-19 08:45:18 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8.4-4
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-07 19:17:45 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-02 10:12:49 +00:00
|
|
|
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.4-2
|
|
|
|
- Switch to %%ldconfig_scriptlets
|
|
|
|
|
2017-12-26 07:47:41 +00:00
|
|
|
* Tue Dec 26 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.4-1
|
|
|
|
- Update to version 1.8.4 (rhbz#1529017)
|
|
|
|
|
2017-09-01 20:18:22 +00:00
|
|
|
* Tue Aug 29 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.3-1
|
|
|
|
- Update to version 1.8.3 (rhbz#1485908)
|
|
|
|
|
2017-08-07 08:54:59 +00:00
|
|
|
* Mon Aug 07 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-6
|
|
|
|
- Rebuilt for AutoReq cmake-filesystem
|
|
|
|
|
2017-08-03 00:03:56 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 14:44:10 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-07-02 09:53:43 +00:00
|
|
|
* Sun Jul 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-3
|
|
|
|
- Fix warnings from Doxygen
|
|
|
|
|
2017-07-02 09:37:08 +00:00
|
|
|
* Sun Jul 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-2
|
|
|
|
- Use Python3 during build
|
|
|
|
|
2017-07-02 09:07:58 +00:00
|
|
|
* Sun Jul 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-1
|
|
|
|
- Update to version 1.8.1 (rhbz#1467033)
|
|
|
|
- Use autosetup-macro
|
|
|
|
- Build out of tree
|
|
|
|
- Hardlink documentation files
|
|
|
|
|
2017-05-15 19:52:12 +00:00
|
|
|
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 17:27:40 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-28 18:09:47 +00:00
|
|
|
* Wed Dec 28 2016 Björn Esser <fedora@besser82.io> - 1.8.0-1
|
|
|
|
- Update to version 1.8.0
|
|
|
|
- Use up-to-date %%make-macros
|
|
|
|
- Run testsuite during %%check instead during %%build
|
|
|
|
|
2016-10-03 03:30:24 +00:00
|
|
|
* Mon Oct 03 2016 Björn Esser <fedora@besser82.io> - 1.7.7-1
|
|
|
|
- Update to version 1.7.7 (#1372329)
|
|
|
|
|
2016-07-17 11:40:16 +00:00
|
|
|
* Sun Jul 17 2016 Sébastien Willmann <sebastien.willmann@gmail.com> - 1.7.4-1
|
|
|
|
- Update to version 1.7.4
|
|
|
|
|
2016-06-20 18:23:30 +00:00
|
|
|
* Mon Jun 20 2016 Sébastien Willmann <sebastien.willmann@gmail.com> - 1.7.2-3
|
|
|
|
- Revert #1336082
|
|
|
|
|
2016-06-13 21:15:17 +00:00
|
|
|
* Mon Jun 13 2016 Sébastien Willmann <sebastien.willmann@gmail.com> - 1.7.2-2
|
|
|
|
- Fix include dir path (#1336082)
|
|
|
|
|
2016-03-26 05:39:24 +00:00
|
|
|
* Sat Mar 26 2016 Björn Esser <fedora@besser82.io> - 1.7.2-1
|
|
|
|
- Update to version 1.7.2
|
|
|
|
|
2016-03-25 12:34:02 +00:00
|
|
|
* Fri Mar 25 2016 Björn Esser <fedora@besser82.io> - 1.7.1-1
|
|
|
|
- Update to version 1.7.1
|
|
|
|
- Use %%license and %%doc properly
|
|
|
|
- Add generated CMake-target
|
|
|
|
- Move %%check after %%install
|
|
|
|
- Remove Group-tag, needed for el <= 5, only
|
|
|
|
- Drop Patch0, not needed anymore
|
|
|
|
|
2016-02-16 18:22:46 +00:00
|
|
|
* Tue Feb 16 2016 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.10.5-4
|
|
|
|
- Disabled Werror
|
|
|
|
|
2016-02-04 01:28:33 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-03 21:08:12 +00:00
|
|
|
* Sun Jan 3 2016 Ville Skyttä <ville.skytta@iki.fi> - 0.10.5-2
|
|
|
|
- Add disttag
|
|
|
|
|
2016-01-03 17:15:40 +00:00
|
|
|
* Sun Jan 03 2016 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.10.5-2
|
|
|
|
- Use cmake instead of scons
|
|
|
|
|
2015-09-13 19:50:05 +00:00
|
|
|
* Sun Sep 13 2015 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.10.5-1
|
|
|
|
- Update to version 0.10.5
|
|
|
|
|
2015-08-14 18:43:36 +00:00
|
|
|
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 0.6.0-0.18.rc2
|
|
|
|
- Link libjsoncpp with -z now
|
|
|
|
|
2015-06-17 12:37:50 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.17.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-04-15 14:31:13 +00:00
|
|
|
* Wed Apr 15 2015 Orion Poplawski <orion@cora.nwra.com> - 0.6.0-0.16.rc2
|
|
|
|
- Rebuild for gcc 5 C++11 ABI change
|
|
|
|
|
2015-02-16 15:44:31 +00:00
|
|
|
* Mon Feb 16 2015 Orion Poplawski <orion@cora.nwra.com> - 0.6.0-0.15.rc2
|
|
|
|
- Rebuild for gcc 5 C++11
|
|
|
|
|
2014-09-21 10:48:05 +00:00
|
|
|
* Sun Sep 21 2014 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.14.rc2
|
|
|
|
- Allow int values to be converted to string (#1143774)
|
|
|
|
|
2014-08-16 22:36:11 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.13.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 01:10:43 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.12.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-09-10 19:14:02 +00:00
|
|
|
* Tue Sep 10 2013 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.11.rc2
|
|
|
|
- https://bugzilla.redhat.com/show_bug.cgi?id=998149 : applied Michael Schwendt's
|
|
|
|
patch to fix duplicated documentation
|
|
|
|
|
2013-08-03 21:46:55 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-0.10.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-15 21:57:46 +00:00
|
|
|
* Fri Mar 15 2013 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.9.rc2
|
|
|
|
- Changed Summary
|
|
|
|
- Added %%doc files to the doc package
|
|
|
|
- Added python as an explicit BuildRequires
|
|
|
|
|
2013-02-15 11:22:21 +00:00
|
|
|
* Fri Feb 15 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.8.rc2
|
|
|
|
- Added documentation sub-package
|
|
|
|
|
2013-02-15 10:52:29 +00:00
|
|
|
* Sun Jan 20 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.7.rc2
|
|
|
|
- Added graphviz as a BuildRequire
|
|
|
|
|
|
|
|
* Sat Jan 19 2013 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.6.rc2
|
|
|
|
- Install the corrected library
|
|
|
|
|
|
|
|
* Sat Dec 22 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.5.rc2
|
|
|
|
- Added libjsoncpp.so.0
|
|
|
|
- Moved the shared lib build to the correct section
|
|
|
|
|
|
|
|
* Fri Dec 21 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.4.rc2
|
|
|
|
- Removed doc subpackage
|
|
|
|
- Added .pc file
|
|
|
|
- Fixed shared lib
|
|
|
|
|
|
|
|
* Wed Dec 12 2012 Sebastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.3.rc2
|
|
|
|
- Removed static package
|
|
|
|
- Preserving timestamp on installed files
|
|
|
|
- Added guard grep to the sed expression
|
|
|
|
- Removed duplicated doc files
|
|
|
|
- Removed dependency on pkgconfig
|
|
|
|
- Changed base package group
|
|
|
|
|
|
|
|
* Sun Dec 02 2012 Sébastien Willmann <sebastien.willmann@gmail.com> - 0.6.0-0.2.rc2
|
|
|
|
- Changed license field to Public Domain or MIT
|
|
|
|
|
|
|
|
* Tue Nov 27 2012 Sébastien Willmann <sebastien.willmann@gmail.com> 0.6.0-0.1.rc2
|
|
|
|
- Creation of the spec file
|