summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-05-05 18:04:27 -0400
committerB Stack <bgstack15@gmail.com>2019-05-05 18:04:27 -0400
commit3f132d5eef83beb4bb0a8820c86e527494da6d75 (patch)
tree61be6118d4c0b5dd0d49e79ff9f69d9bca016a67
parentfix type in source0 (diff)
downloadstackrpms-3f132d5eef83beb4bb0a8820c86e527494da6d75.tar.gz
stackrpms-3f132d5eef83beb4bb0a8820c86e527494da6d75.tar.bz2
stackrpms-3f132d5eef83beb4bb0a8820c86e527494da6d75.zip
add scl for el6, el7
-rw-r--r--scite/scite.spec17
1 files changed, 16 insertions, 1 deletions
diff --git a/scite/scite.spec b/scite/scite.spec
index df70755..7072223 100644
--- a/scite/scite.spec
+++ b/scite/scite.spec
@@ -1,5 +1,12 @@
%global tarballversion 415
+%define scl_env %{nil}
+%define scl_buildreq coreutils
+%if 0%{?el6}%{?el7}
+ %define scl_env devtoolset-7
+ %define scl_buildreq devtoolset-7-toolchain
+%endif
+
Name: scite
Version: 4.1.5
Release: 1%{?dist}
@@ -13,8 +20,9 @@ Source0: https://www.scintilla.org/scite%{tarballversion}.tgz
Patch0: scite-utf8.patch
%if 0%{?fedora}%{?el7}
-BuildRequires: gcc-c++
+BuildRequires: gcc-c++
BuildRequires: gtk3-devel
+BuildRequires: %{scl_buildreq}
%endif
BuildRequires: gtk2-devel
@@ -34,6 +42,9 @@ building and running programs.
rm -rf scite/lua
%build
+%if "%{?scl_env}" != ""
+ scl enable %{scl_env} /bin/bash <<'EOFSCL'
+%endif
%if 0%{?el6}
make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \
CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" DEBUG=1 -C scintilla/gtk
@@ -49,6 +60,10 @@ make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \
make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \
CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" GTK3=1 DEBUG=1 NO_LUA=1 -C scite/gtk
%endif
+:
+%if "%{?scl_env}" != ""
+EOFSCL
+%endif
%install
make DESTDIR=%{buildroot} -C scite/gtk install
bgstack15