From 114abd6846fa41b3b59270d34ada1555c3d54848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Sun, 2 Jul 2017 11:37:08 +0200 Subject: [PATCH] Use Python3 during build --- jsoncpp.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jsoncpp.spec b/jsoncpp.spec index 0eb9a6e..3358885 100644 --- a/jsoncpp.spec +++ b/jsoncpp.spec @@ -2,7 +2,7 @@ Name: jsoncpp Version: 1.8.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: JSON library implemented in C++ License: Public Domain or MIT @@ -13,7 +13,7 @@ BuildRequires: cmake >= 3.1 BuildRequires: doxygen BuildRequires: graphviz BuildRequires: hardlink -BuildRequires: python +BuildRequires: python3-devel %description %{name} is an implementation of a JSON (http://json.org) reader and writer in @@ -50,13 +50,14 @@ pushd %{_target_platform} -DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON \ -DJSONCPP_WITH_CMAKE_PACKAGE=ON \ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ + -DPYTHON_EXECUTABLE="%{__python3}" \ .. popd %make_build -C %{_target_platform} # Build the doc -python doxybuild.py --with-dot --doxygen %{_bindir}/doxygen +%{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen %install @@ -101,6 +102,9 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name} %changelog +* Sun Jul 02 2017 Björn Esser - 1.8.1-2 +- Use Python3 during build + * Sun Jul 02 2017 Björn Esser - 1.8.1-1 - Update to version 1.8.1 (rhbz#1467033) - Use autosetup-macro