- Make sure we switch to python3 only on SLE15+ and not on SLE12

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/graphite2?expand=0&rev=52
This commit is contained in:
Tomáš Chvátal 2017-12-05 12:01:54 +00:00 committed by Git OBS Bridge
parent 2c934879d6
commit 764fd26af5
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 5 12:03:29 UTC 2017 - tchvatal@suse.com
- Make sure we switch to python3 only on SLE15+ and not on SLE12
-------------------------------------------------------------------
Mon Nov 20 12:16:37 UTC 2017 - mpluskal@suse.com

View File

@ -40,7 +40,11 @@ BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: pkgconfig
BuildRequires: python3
%if %{suse_version} >= 1330
BuildRequires: python3-base
%else
BuildRequires: python-base
%endif
%description
Graphite2 is a project within SIL's Non-Roman Script Initiative and Language
@ -88,8 +92,10 @@ This package contains the %{name} development files.
%build
# Make sure to use python3 everywhere
%if %{suse_version} >= 1330
find tests -type f -exec sed -i "s|python|python3|g" {} +
find . -name *.cmake -exec sed -i "s|python|python3|g" {} +
%endif
%cmake \
-DGRAPHITE2_COMPARE_RENDERER=OFF \
-DGRAPHITE2_NTRACING=ON \