- add BR on zlib-devel

- build with python3
This commit is contained in:
Than Ngo 2018-06-27 13:43:40 +02:00
parent 0dbbc6466d
commit e06306446f

View File

@ -46,6 +46,7 @@ BuildRequires: bison
BuildRequires: cmake BuildRequires: cmake
%if %{xapian_core_support} == "ON" %if %{xapian_core_support} == "ON"
BuildRequires: xapian-core-devel BuildRequires: xapian-core-devel
BuildRequires: zlib-devel
%endif %endif
Requires: perl-interpreter Requires: perl-interpreter
@ -101,6 +102,7 @@ mkdir -p %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%if ! 0%{?_module_build} %if ! 0%{?_module_build}
%cmake \ %cmake \
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
-Dbuild_doc=ON \ -Dbuild_doc=ON \
-Dbuild_wizard=ON \ -Dbuild_wizard=ON \
-Dbuild_xmlparser=ON \ -Dbuild_xmlparser=ON \
@ -111,6 +113,7 @@ pushd %{_target_platform}
.. ..
%else %else
%cmake \ %cmake \
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
-Dbuild_doc=OFF \ -Dbuild_doc=OFF \
-Dbuild_wizard=OFF \ -Dbuild_wizard=OFF \
-Dbuild_xmlparser=ON \ -Dbuild_xmlparser=ON \