summaryrefslogtreecommitdiff
path: root/scite-el/scite.spec
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-05-06 16:41:43 -0400
committerB Stack <bgstack15@gmail.com>2019-05-06 16:41:43 -0400
commitdd2b823f8314ce3da486cdd2d03ad77d0a6412d3 (patch)
treefc24cef27be1884e3f89bbf9649773c13eda4b7b /scite-el/scite.spec
parentWIP: split scite into el and fedora packages (diff)
downloadstackrpms-dd2b823f8314ce3da486cdd2d03ad77d0a6412d3.tar.gz
stackrpms-dd2b823f8314ce3da486cdd2d03ad77d0a6412d3.tar.bz2
stackrpms-dd2b823f8314ce3da486cdd2d03ad77d0a6412d3.zip
WIP: add scl to scite-el for el6
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