Use Python3 during build

This commit is contained in:
Björn Esser 2017-07-02 11:37:08 +02:00
parent 52b41e76fb
commit 114abd6846

View File

@ -2,7 +2,7 @@
Name: jsoncpp Name: jsoncpp
Version: 1.8.1 Version: 1.8.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: JSON library implemented in C++ Summary: JSON library implemented in C++
License: Public Domain or MIT License: Public Domain or MIT
@ -13,7 +13,7 @@ BuildRequires: cmake >= 3.1
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: hardlink BuildRequires: hardlink
BuildRequires: python BuildRequires: python3-devel
%description %description
%{name} is an implementation of a JSON (http://json.org) reader and writer in %{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_PKGCONFIG_SUPPORT=ON \
-DJSONCPP_WITH_CMAKE_PACKAGE=ON \ -DJSONCPP_WITH_CMAKE_PACKAGE=ON \
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \ -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
-DPYTHON_EXECUTABLE="%{__python3}" \
.. ..
popd popd
%make_build -C %{_target_platform} %make_build -C %{_target_platform}
# Build the doc # Build the doc
python doxybuild.py --with-dot --doxygen %{_bindir}/doxygen %{__python3} doxybuild.py --with-dot --doxygen %{_bindir}/doxygen
%install %install
@ -101,6 +102,9 @@ hardlink -cfv %{buildroot}%{_docdir}/%{name}
%changelog %changelog
* Sun Jul 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-2
- Use Python3 during build
* Sun Jul 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-1 * Sun Jul 02 2017 Björn Esser <besser82@fedoraproject.org> - 1.8.1-1
- Update to version 1.8.1 (rhbz#1467033) - Update to version 1.8.1 (rhbz#1467033)
- Use autosetup-macro - Use autosetup-macro