diff options
Diffstat (limited to 'scite-el')
-rw-r--r-- | scite-el/scite.spec | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/scite-el/scite.spec b/scite-el/scite.spec index 8e2c9d2..8f66f20 100644 --- a/scite-el/scite.spec +++ b/scite-el/scite.spec @@ -1,4 +1,6 @@ -%global tarballversion 375 +# el is on 3.x, fc is on 4.x +%global pkgversion 3.7.5 +%define tarballversion %( echo %pkgversion | tr -d '.' ) %define scl_env %{nil} %define scl_buildreq coreutils @@ -7,10 +9,10 @@ %define scl_buildreq devtoolset-7-toolchain %endif -Name: scite -Version: 3.7.5 +Name: scite +Version: %{pkgversion} Release: 1%{?dist} -Summary: SCIntilla based GTK2 text editor +Summary: SCIntilla-based GTK text editor License: MIT Group: Applications/Editors Url: http://www.scintilla.org/SciTE.html @@ -19,15 +21,15 @@ Packager: B Stack <bgstack15@gmail.com> Source0: https://www.scintilla.org/scite%{tarballversion}.tgz Patch0: scite-utf8.patch -%if 0%{?el7} +BuildRequires: desktop-file-utils BuildRequires: gcc-c++ +BuildRequires: %{scl_buildreq} +%if 0%{?el6} +BuildRequires: gtk2-devel +%else BuildRequires: gtk3-devel %endif -BuildRequires: gtk2-devel -BuildRequires: desktop-file-utils -BuildRequires: %{scl_buildreq} - Provides: bundled(scintilla) = %{version} %description @@ -42,26 +44,25 @@ building and running programs. 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 + 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 +EOFSCL %endif -%endif - -%if 0%{?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 +%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 @@ -77,14 +78,19 @@ desktop-file-install --delete-original \ --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 @@ -93,8 +99,11 @@ desktop-file-install --delete-original \ %{_datadir}/applications/* %changelog -* Mon May 06 2019 B Stack <bgstack15@gmail.com> - 3.7.5-1 -- Rebuilt for Enterprise Linux +* 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 @@ -172,7 +181,7 @@ desktop-file-install --delete-original \ - 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 |