diff options
author | B Stack <bgstack15@gmail.com> | 2019-11-11 17:45:30 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-11-11 17:45:30 -0500 |
commit | 4db2c36f63e0abcc7929133a2142271865ee92b4 (patch) | |
tree | 4e989862ad5a9b5075860f47e9ffc13582ffba81 /scite-fedora | |
parent | update ublock-origin extensions (diff) | |
download | stackrpms-4db2c36f63e0abcc7929133a2142271865ee92b4.tar.gz stackrpms-4db2c36f63e0abcc7929133a2142271865ee92b4.tar.bz2 stackrpms-4db2c36f63e0abcc7929133a2142271865ee92b4.zip |
WIP: scite
I have updated the spec but not actually built the rpms yet.
Diffstat (limited to 'scite-fedora')
-rw-r--r-- | scite-fedora/README.md | 16 | ||||
-rw-r--r-- | scite-fedora/scite.spec | 5 | ||||
-rw-r--r-- | scite-fedora/stackrpms-scite.spec.diff | 132 |
3 files changed, 152 insertions, 1 deletions
diff --git a/scite-fedora/README.md b/scite-fedora/README.md new file mode 100644 index 0000000..ea9f9e4 --- /dev/null +++ b/scite-fedora/README.md @@ -0,0 +1,16 @@ +# scite upstream +https://src.fedoraproject.org/rpms/scite/tree/f29 + +# Reason for being in stackrpms +Fedora and CentOS do not package scite and I have use of them. CentOS 7 relies on version 3 of the application. + +# Reverse dependency matrix +Distro | scite version +---------- | --------------- +CentOS 6 | 3.7.5 +CentOS 7 | 3.7.5 +CentOS 8 | 4.1.6 +Fedora 30 | 4.1.6 + +# Differences from upstream +None diff --git a/scite-fedora/scite.spec b/scite-fedora/scite.spec index 8a8f75c..4f35b86 100644 --- a/scite-fedora/scite.spec +++ b/scite-fedora/scite.spec @@ -1,5 +1,5 @@ # el is on 3.x, fc is on 4.x -%global pkgversion 4.1.6 +%global pkgversion 4.2.1 %define tarballversion %( echo %pkgversion | tr -d '.' ) %define scl_env %{nil} @@ -98,6 +98,9 @@ desktop-file-install --delete-original \ %{_datadir}/applications/* %changelog +* Mon Nov 11 2019 B Stack <bgstack15@gmail.com> - 4.2.1-1/3.7.6-1 +- Rewritten to build Fedora and Enterprise Linux versions from a single spec with minor flags changed + * Tue Jun 6 2019 B Stack <bgstack15@gmail.com> - 4.1.6-1/3.7.5-1 - Rewritten to build Fedora and Enterprise Linux versions from a single spec with minor flags changed diff --git a/scite-fedora/stackrpms-scite.spec.diff b/scite-fedora/stackrpms-scite.spec.diff new file mode 100644 index 0000000..7d0fec0 --- /dev/null +++ b/scite-fedora/stackrpms-scite.spec.diff @@ -0,0 +1,132 @@ +--- /usr/src/scite/scite.spec 2019-11-11 17:30:41.918108111 -0500 ++++ /home/bgirton/dev/stackrpms/scite-fedora/scite.spec 2019-11-11 17:40:50.389848953 -0500 +@@ -1,23 +1,33 @@ +-%global tarballversion 375 ++# el is on 3.x, fc is on 4.x ++%global pkgversion 4.2.1 ++%define tarballversion %( echo %pkgversion | tr -d '.' ) + +-Name: scite +-Version: 3.7.5 +-Release: 3%{?dist} +-Summary: SCIntilla based GTK2 text editor ++%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: %{pkgversion} ++Release: 1%{?dist} ++Summary: SCIntilla-based GTK text editor + License: MIT + Group: Applications/Editors + Url: http://www.scintilla.org/SciTE.html ++Packager: B Stack <bgstack15@gmail.com> + +-Source0: http://download.sourceforge.net/scintilla/scite%{tarballversion}.tgz ++Source0: https://www.scintilla.org/scite%{tarballversion}.tgz + Patch0: scite-utf8.patch + +-%if 0%{?fedora}%{?el7} +-BuildRequires: gcc-c++ ++BuildRequires: desktop-file-utils ++BuildRequires: gcc-c++ ++BuildRequires: %{scl_buildreq} ++%if !0%{?el6} + BuildRequires: gtk3-devel + %endif +- + BuildRequires: gtk2-devel +-BuildRequires: desktop-file-utils + + Provides: bundled(scintilla) = %{version} + +@@ -33,20 +43,25 @@ + rm -rf scite/lua + + %build +-%if 0%{?el6} +-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 +-%endif + +-%if 0%{?fedora}%{?el7} +-make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \ +-CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" GTK3=1 DEBUG=1 -C scintilla/gtk +-#Build without lua support +-make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \ +-CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" GTK3=1 DEBUG=1 NO_LUA=1 -C scite/gtk ++%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}" != "" ++EOFSCL ++ %endif ++%else ++ make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \ ++ CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" GTK3=1 DEBUG=1 -C scintilla/gtk ++ #Build without lua support ++ make %{?_smp_mflags} LDFLAGS="%{?__global_ldflags}" \ ++ CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" GTK3=1 DEBUG=1 NO_LUA=1 -C scite/gtk + %endif + + %install +@@ -62,15 +77,19 @@ + --remove-key Encoding \ + %{buildroot}%{_datadir}/applications/SciTE.desktop + +- ++%if 0%{?fedora} ++%posttrans ++/usr/bin/update-desktop-database &> /dev/null || : ++%else + %post + /usr/bin/update-desktop-database &> /dev/null || : + + %postun + /usr/bin/update-desktop-database &> /dev/null || : ++%endif + + %files +-%doc scite/License.txt ++%doc scite/License.txt + %{_mandir}/man1/scite.1* + %{_bindir}/SciTE + %{_bindir}/scite +@@ -79,6 +98,15 @@ + %{_datadir}/applications/* + + %changelog ++* Mon Nov 11 2019 B Stack <bgstack15@gmail.com> - 4.2.1-1/3.7.6-1 ++- Rewritten to build Fedora and Enterprise Linux versions from a single spec with minor flags changed ++ ++* Tue Jun 6 2019 B Stack <bgstack15@gmail.com> - 4.1.6-1/3.7.5-1 ++- Rewritten to build Fedora and Enterprise Linux versions from a single spec with minor flags changed ++ ++* Mon May 6 2019 B Stack <bgstack15@gmail.com> - 4.1.5-1 ++- Brought to latest version ++ + * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.5-3 + - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +@@ -155,7 +183,7 @@ + - drop vendor from desktop-file-install + - use correct LDFLAGS and CXXFLAGS + - install man page correctly +-- drop no longer needed install step and defattr ++- drop no longer needed install step and defattr + + * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22-4 + - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |