- 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:
parent
2c934879d6
commit
764fd26af5
@ -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
|
Mon Nov 20 12:16:37 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
@ -40,7 +40,11 @@ BuildRequires: freetype2-devel
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3
|
%if %{suse_version} >= 1330
|
||||||
|
BuildRequires: python3-base
|
||||||
|
%else
|
||||||
|
BuildRequires: python-base
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Graphite2 is a project within SIL's Non-Roman Script Initiative and Language
|
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
|
%build
|
||||||
# Make sure to use python3 everywhere
|
# Make sure to use python3 everywhere
|
||||||
|
%if %{suse_version} >= 1330
|
||||||
find tests -type f -exec sed -i "s|python|python3|g" {} +
|
find tests -type f -exec sed -i "s|python|python3|g" {} +
|
||||||
find . -name *.cmake -exec sed -i "s|python|python3|g" {} +
|
find . -name *.cmake -exec sed -i "s|python|python3|g" {} +
|
||||||
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-DGRAPHITE2_COMPARE_RENDERER=OFF \
|
-DGRAPHITE2_COMPARE_RENDERER=OFF \
|
||||||
-DGRAPHITE2_NTRACING=ON \
|
-DGRAPHITE2_NTRACING=ON \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user