[packages/highlight] up to 3.60
atler
atler at pld-linux.org
Sat Jan 16 16:01:24 CET 2021
commit 13b9f4a9ccc6f0de0aa3c4e95338b510fd7289b1
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Jan 16 15:50:58 2021 +0100
up to 3.60
highlight-Makefile.patch | 6 +++---
highlight.spec | 14 +++++++++++---
2 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/highlight.spec b/highlight.spec
index 85dc7bd..53e90e8 100644
--- a/highlight.spec
+++ b/highlight.spec
@@ -5,12 +5,12 @@
Summary: A source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
Summary(pl.UTF-8): Konwerter kodu źródłowego do formatów HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
Name: highlight
-Version: 3.58
+Version: 3.60
Release: 1
License: GPL v3
Group: Applications/Publishing
Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2
-# Source0-md5: 06d9b1070ee9eed48a3769815eb8204e
+# Source0-md5: 33f7f5548ac86e18a39b93fbefbe7e5d
Patch0: %{name}-Makefile.patch
URL: http://www.andre-simon.de/
BuildRequires: Qt5Core-devel
@@ -64,6 +64,8 @@ Summary: GUI for highlight - a source code converter to HTML, XHTML, RTF, TeX, L
Summary(pl.UTF-8): GUI do highlight - konwertera kodu źródłowego do HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
Group: Development/Tools
Requires: %{name}
+Requires(post,postun): gtk-update-icon-cache
+Requires: hicolor-icon-theme
%description gui
Qt4 GUI for for highlight - a source code converter to HTML, XHTML,
@@ -98,6 +100,12 @@ rm -fr $RPM_BUILD_ROOT%{_docdir}/highlight
%clean
rm -rf $RPM_BUILD_ROOT
+%post gui
+%update_icon_cache hicolor
+
+%postun gui
+%update_icon_cache hicolor
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog.adoc README.adoc README_LANGLIST.adoc README_PLUGINS.adoc README_REGEX.adoc extras
@@ -133,4 +141,4 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/%{name}/plugins
%{_datadir}/%{name}/plugins/*.lua
%{_desktopdir}/*.desktop
-%{_pixmapsdir}/*.xpm
+%{_iconsdir}/hicolor/*x*/apps/highlight.png
diff --git a/highlight-Makefile.patch b/highlight-Makefile.patch
index d092a75..a840369 100644
--- a/highlight-Makefile.patch
+++ b/highlight-Makefile.patch
@@ -11,9 +11,9 @@ diff -urN highlight-3.34.orig/src/makefile highlight-3.34/src/makefile
# Copy *.conf, ./langDefs, ./themes amd ./indentSchemes to /your/path/.
# See ../makefile for the definition of ${data_dir}
@@ -19,13 +19,13 @@
- QMAKE=qmake
- # Added -std=c++11 because of auto_ptr to unique_ptr transition
+ QMAKE ?= qmake
+
-CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG -std=c++11 -D_FILE_OFFSET_BITS=64
+CXXFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG -std=c++11 -D_FILE_OFFSET_BITS=64
@@ -26,7 +26,7 @@ diff -urN highlight-3.34.orig/src/makefile highlight-3.34/src/makefile
-CFLAGS_DILU=-fno-strict-aliasing
+CXXFLAGS_DILU=-fno-strict-aliasing
- SO_VERSION=3.53
+ SO_VERSION=3.60
@@ -63,7 +63,7 @@
endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/highlight.git/commitdiff/2c97026b48d212dc7ac334b892fd43b0b5db965e
More information about the pld-cvs-commit
mailing list