summaryrefslogtreecommitdiff
path: root/scite-el/scite.spec
diff options
context:
space:
mode:
Diffstat (limited to 'scite-el/scite.spec')
-rw-r--r--scite-el/scite.spec14
1 files changed, 14 insertions, 0 deletions
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}
bgstack15