Compare commits

..

No commits in common. 'epel9' and 'i8ce' have entirely different histories.
epel9 ... i8ce

4
.gitignore vendored

@ -1,3 +1 @@
/jsoncpp.pc SOURCES/jsoncpp-1.8.4.tar.gz
/jsoncpp-src-*.tar.gz
/jsoncpp-*.tar.gz

@ -0,0 +1 @@
98a56dba0cc6378c91668b6e1c120a657820c45e SOURCES/jsoncpp-1.8.4.tar.gz

@ -3,24 +3,18 @@
%global jsondir json %global jsondir json
# Avoid accidental so-name bumps.
# ATTENTION!!! You need to run a bootstrap build
# of cmake *BEFORE* bumping the so-name here!
%global sover 25
Name: jsoncpp Name: jsoncpp
Version: 1.9.5 Version: 1.8.4
Release: 1%{?dist} Release: 6%{?dist}
Summary: JSON library implemented in C++ Summary: JSON library implemented in C++
License: Public Domain or MIT 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
@ -62,46 +56,39 @@ sed -i -e 's!^DOT_FONTNAME.*=.*!DOT_FONTNAME =!g' doc/doxyfile.in
%build %build
%cmake \ mkdir -p %{_target_platform}
-DBUILD_STATIC_LIBS:BOOL=OFF \ pushd %{_target_platform}
-DBUILD_OBJECT_LIBS:BOOL=OFF \ %cmake -DBUILD_STATIC_LIBS=OFF \
-DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON \ -DJSONCPP_WITH_WARNING_AS_ERROR=OFF \
-DJSONCPP_WITH_EXAMPLE:BOOL=OFF \ -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \
-DJSONCPP_WITH_PKGCONFIG_SUPPORT:BOOL=ON \ -DJSONCPP_WITH_CMAKE_PACKAGE=ON \
-DJSONCPP_WITH_POST_BUILD_UNITTEST:BOOL=OFF \ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
-DJSONCPP_WITH_STRICT_ISO:BOOL=ON \ -DPYTHON_EXECUTABLE="%{__python3}" \
-DJSONCPP_WITH_TESTS:BOOL=ON \ ..
-DJSONCPP_WITH_WARNING_AS_ERROR:BOOL=OFF \ popd
-DPYTHON_EXECUTABLE:STRING="%{__python3}" %make_build -C %{_target_platform}
%cmake_build
%if %{with jsoncpp_enables_doc} %if %{with jsoncpp_enables_doc}
# Build the doc # Build the doc
cp -p %{__cmake_builddir}/version .
%{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen %{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen
rm -f version
%endif %endif
%install %install
%cmake_install %make_install -C %{_target_platform}
mkdir -p %{buildroot}%{_docdir}/%{name} mkdir -p %{buildroot}%{_docdir}/%{name}
install -pm 0644 README.md %{buildroot}%{_docdir}/%{name} install -pm 0644 README.md %{buildroot}%{_docdir}/%{name}
%if %{with jsoncpp_enables_doc} %if %{with jsoncpp_enables_doc}
mkdir -p %{buildroot}%{_docdir}/%{name}/html mkdir -p %{buildroot}%{_docdir}/%{name}/html
cp -a dist/doxygen/jsoncpp-api-html-/* %{buildroot}%{_docdir}/%{name}/html install -pm 0644 dist/doxygen/*/*.{html,png} %{buildroot}%{_docdir}/%{name}/html
find %{buildroot}%{_docdir} -type d -print0 | xargs -0 chmod -c 0755
find %{buildroot}%{_docdir} -type f -print0 | xargs -0 chmod -c 0644
hardlink -cfv %{buildroot}%{_docdir}/%{name} hardlink -cfv %{buildroot}%{_docdir}/%{name}
%endif %endif
%check %check
# Run tests single threaded. %make_build -C %{_target_platform} jsoncpp_check
%global _smp_mflags -j1
%ctest
%ldconfig_scriptlets %ldconfig_scriptlets
@ -114,8 +101,7 @@ 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.%{sover}* %{_libdir}/lib%{name}.so.*
%{_libdir}/lib%{name}.so.%{version}
%files devel %files devel
@ -133,46 +119,8 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
%changelog %changelog
* Wed Nov 03 2021 Björn Esser <besser82@fedoraproject.org> - 1.9.5-1 * Sat Apr 06 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.8.4-6
- Update to version 1.9.5 - Rebuilt for MSVSphere 8.9
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Sep 30 18:54:18 CEST 2020 Björn Esser <besser82@fedoraproject.org> - 1.9.4-2
- Explicitly disable static libraries on build (rhbz#1883926)
* Sun Sep 27 16:25:23 CEST 2020 Björn Esser <besser82@fedoraproject.org> - 1.9.4-1
- Update to version 1.9.4 (rhbz#1882874)
- Package all files generated by doxygen
- Run tests single threaded
* Wed Jul 29 2020 Björn Esser <besser82@fedoraproject.org> - 1.9.3-3
- Use new cmake macros
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat May 30 2020 Björn Esser <besser82@fedoraproject.org> - 1.9.3-1
- Update to version 1.9.3 (rhbz#1841985)
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Nov 14 2019 Björn Esser <besser82@fedoraproject.org> - 1.9.2-1
- Update to version 1.9.2 (rhbz#1742004)
* Fri Aug 16 2019 Björn Esser <besser82@fedoraproject.org> - 1.9.1-1
- Update to version 1.9.1 (rhbz#1742004)
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed Jul 03 2019 Björn Esser <besser82@fedoraproject.org> - 1.9.0-1
- Update to version 1.9.0 (rhbz#1726491)
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-6 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

@ -1 +0,0 @@
SHA512 (jsoncpp-1.9.5.tar.gz) = 1d06e044759b1e1a4cc4960189dd7e001a0a4389d7239a6d59295af995a553518e4e0337b4b4b817e70da5d9731a4c98655af90791b6287870b5ff8d73ad8873
Loading…
Cancel
Save