%define majver %(echo %version | cut -d. -f1-2) Name: highlight Version: 3.49 Release: 1mamba Summary: A universal source code to formatted text converter Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino URL: http://www.andre-simon.de/ Source: http://www.andre-simon.de/zip/highlight-%{version}.tar.bz2 Patch: highlight-2.15-doc_dir.patch Patch1: highlight-3.33-termcap.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: liblua51-devel BuildRequires: libqt4-devel BuildRequires: libreadline-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Highlight converts source code to formatted text with syntax highlighting. * Coloured output in HTML, XHTML, RTF, TeX, LaTeX, SVG, BBCode and XML format * Supports 150+ programming languages * Includes 40 colour themes * Recognizes nested languages * CLI, GUI and Lib builds available * Platform independent %package gui Summary: highlight frontend Group: Graphical Desktop/Applications/Development Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description gui Highlight converts source code to formatted text with syntax highlighting. * Coloured output in HTML, XHTML, RTF, TeX, LaTeX, SVG, BBCode and XML format * Supports 150+ programming languages * Includes 40 colour themes * Recognizes nested languages * CLI, GUI and Lib builds available * Platform independent This package contains the Qt-based GUI. %prep %setup -q -n %{name}-%{majver} #%patch -p1 sed -i "s|\-llua5\.1||g" src/gui-qt/highlight.pro %patch1 -p1 # Provides: exclude perl(highlight_pipe) from examples cat <<__EOF__ > %{name}-perl.prov #!/bin/sh /usr/lib/rpm/perl.prov \$* | grep -v '^perl(highlight_pipe)$' __EOF__ %define __perl_provides %{_builddir}/%{name}-%{majver}/%{name}-perl.prov chmod +x %{__perl_provides} # Requires: exclude perl(IPC::Open3) from examples cat <<__EOF__ > %{name}-perl.req #!/bin/sh /usr/lib/rpm/perl.req \$* | grep -v '^perl(IPC::Open3)$' __EOF__ %define __perl_requires %{_builddir}/%{name}-%{majver}/%{name}-perl.req chmod +x %{__perl_requires} %build %make clean all gui \ doc_dir=%{_defaultdocdir}/%{name}-%{version}/ %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{_datadir}/{application,pixmap}s %makeinstall install-gui desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ highlight.desktop # Remove documentation rm -rf %{buildroot}%{_defaultdocdir} # Remove this example to avoid incorrect perl provides and requires rm -rf examples/plugins/movabletype %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/highlight %{_bindir}/highlight %dir %{_datadir}/highlight %{_datadir}/highlight/* %{_mandir}/man1/highlight.1* %{_mandir}/man5/filetypes.conf.5* %doc AUTHORS COPYING %files gui %defattr(-,root,root,-) %{_bindir}/highlight-gui %{_datadir}/applications/highlight.desktop %{_datadir}/pixmaps/highlight.xpm #%doc ChangeLog README* TODO examples %changelog * Mon Mar 18 2019 Automatic Build System 3.49-1mamba - automatic version update by autodist * Sat Dec 15 2018 Automatic Build System 3.48-1mamba - automatic version update by autodist * Sun Oct 14 2018 Automatic Build System 3.47-1mamba - automatic version update by autodist * Sun Oct 07 2018 Automatic Build System 3.46-1mamba - automatic version update by autodist * Sun Oct 07 2018 Automatic Build System 3.45-1mamba - automatic version update by autodist * Sat Aug 25 2018 Automatic Build System 3.44-1mamba - automatic version update by autodist * Thu Jan 21 2016 Automatic Build System 3.25-1mamba - automatic version update by autodist * Sat Aug 08 2015 Automatic Build System 3.23-1mamba - automatic version update by autodist * Tue Feb 24 2015 Automatic Build System 3.22-1mamba - automatic version update by autodist * Tue Feb 03 2015 Automatic Build System 3.21-1mamba - automatic version update by autodist * Wed Dec 03 2014 Automatic Build System 3.20-1mamba - automatic version update by autodist * Sat Sep 20 2014 Automatic Build System 3.19-1mamba - automatic version update by autodist * Thu Apr 10 2014 Automatic Build System 3.18-1mamba - automatic version update by autodist * Fri Jan 17 2014 Automatic Build System 3.17-1mamba - automatic version update by autodist * Wed Nov 06 2013 Automatic Build System 3.16.1-1mamba - automatic version update by autodist * Thu Oct 03 2013 Automatic Build System 3.16-1mamba - automatic version update by autodist * Fri Aug 16 2013 Automatic Build System 3.15-1mamba - automatic version update by autodist * Wed Jun 05 2013 Automatic Build System 3.14-1mamba - automatic version update by autodist * Tue Apr 23 2013 Silvan Calarco 3.13-1mamba - update to 3.13 * Fri Feb 24 2012 Automatic Build System 3.7-1mamba - automatic version update by autodist * Tue Jun 22 2010 Stefano Cotta Ramusino 2.16-1mamba - update to 2.16 * Wed Mar 31 2010 Stefano Cotta Ramusino 2.15-1mamba - package created by autospec