From dd2b823f8314ce3da486cdd2d03ad77d0a6412d3 Mon Sep 17 00:00:00 2001 From: B Stack Date: Mon, 6 May 2019 16:41:43 -0400 Subject: WIP: add scl to scite-el for el6 --- scite-el/scite.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scite-el') diff --git a/scite-el/scite.spec b/scite-el/scite.spec index 98ba3e0..8e2c9d2 100644 --- a/scite-el/scite.spec +++ b/scite-el/scite.spec @@ -1,5 +1,12 @@ %global tarballversion 375 +%define scl_env %{nil} +%define scl_buildreq coreutils +%if 0%{?el6} + %define scl_env devtoolset-7 + %define scl_buildreq devtoolset-7-toolchain +%endif + Name: scite Version: 3.7.5 Release: 1%{?dist} @@ -19,6 +26,7 @@ BuildRequires: gtk3-devel BuildRequires: gtk2-devel BuildRequires: desktop-file-utils +BuildRequires: %{scl_buildreq} Provides: bundled(scintilla) = %{version} @@ -35,11 +43,17 @@ rm -rf scite/lua %build %if 0%{?el6} + %if "%{?scl_env}" != "" + scl enable %{scl_env} /bin/bash <<'EOFSCL' + %endif make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \ CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" DEBUG=1 -C scintilla/gtk #Build without lua support make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \ CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" DEBUG=1 NO_LUA=1 -C scite/gtk + %if "%{?scl_env}" != "" +EOF + %endif %endif %if 0%{?el7} -- cgit