3 %bcond_with apidocs # don't generate apidocs subpackage
5 Summary: A source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
6 Summary(pl.UTF-8): Konwerter kodu źródłowego do formatów HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
11 Group: Applications/Publishing
12 Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2
13 # Source0-md5: 6c886515231f5c16eca991a736eefe6e
14 Patch0: %{name}-Makefile.patch
15 URL: http://www.andre-simon.de/
16 BuildRequires: QtCore-devel
17 BuildRequires: QtGui-devel
18 BuildRequires: boost-devel
19 %{?with_apidocs:BuildRequires: doxygen}
20 BuildRequires: libstdc++-devel
21 BuildRequires: lua52-devel
22 BuildRequires: qt4-build
23 BuildRequires: qt4-qmake
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _sysconfdir /etc/highlight
29 Highlight is a universal converter from source code to HTML, XHTML,
30 RTF, TeX, LaTeX, XSL-FO, and XML. (X)HTML output is formatted by
31 Cascading Style Sheets. It supports 100 programming languages and
32 includes 50 highlighting color themes. It's possible to easily enhance
33 the parsing database. The converter includes some features to provide
34 a consistent layout of the input code.
36 %description -l pl.UTF-8
37 Highlight jest uniwersalnym konwerterem kodu źródłowego do formatów
38 HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML. Wyjście (X)HTML jest
39 formatowane przez kaskadowe arkusze stylów (CSS). Highlight wspiera
40 100 języków programowania i zawiera 50 kolorystycznych motywów
41 podświetlania składni. Umożliwia łatwe ulepszanie bazy parsowania.
42 Konwerter zawiera pewne cechy zapewniające spójny układ graficzny kodu
46 Summary: API documentation for highlight - a source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
47 Summary(pl.UTF-8): Dokumentacja API highlight - konwertera kodu źródłowego do HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
49 %if "%{_rpmversion}" >= "5"
54 API documentation for highlight - a source code converter to HTML,
55 XHTML, RTF, TeX, LaTeX, XSL-FO, and XML.
57 %description apidocs -l pl.UTF-8
58 Dokumentacja API highlight - konwertera kodu źródłowego do formatu
59 HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML.
62 Summary: GUI for highlight - a source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
63 Summary(pl.UTF-8): GUI do highlight - konwertera kodu źródłowego do HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
64 Group: Development/Tools
68 Qt4 GUI for for highlight - a source code converter to HTML, XHTML,
69 RTF, TeX, LaTeX, XSL-FO, and XML.
78 CXXFLAGS="%{rpmcxxflags} -std=c++11"
82 CXXFLAGS="%{rpmcxxflags} -std=c++11 "'$(DEFINES)'
84 %{?with_apidocs:%{__make} apidocs}
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 %{__make} install-gui \
93 DESTDIR=$RPM_BUILD_ROOT
95 # to avoid false `warning: Installed (but unpackaged) file(s) found:' - these files are packaged through %doc
96 rm -fr $RPM_BUILD_ROOT%{_docdir}/highlight
99 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog README README_LANGLIST README_REGEX TODO examples
104 %lang(de) %doc README_DE
105 %attr(755,root,root) %{_bindir}/%{name}
106 %dir %{_datadir}/%{name}
107 %{_datadir}/%{name}/langDefs
108 %{_datadir}/%{name}/themes
111 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
115 %defattr(644,root,root,755)
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/%{name}-gui
122 %dir %{_datadir}/%{name}/gui_files
123 %dir %{_datadir}/%{name}/gui_files/l10n
124 %lang(cs) %dir %{_datadir}/%{name}/gui_files/l10n/highlight_cs_CZ.qm
125 %lang(de) %dir %{_datadir}/%{name}/gui_files/l10n/highlight_de_DE.qm
126 %lang(es) %dir %{_datadir}/%{name}/gui_files/l10n/highlight_es_ES.qm
127 %lang(zh) %dir %{_datadir}/%{name}/gui_files/l10n/highlight_zh_CN.qm
128 %{_datadir}/%{name}/gui_files/ext
129 %dir %{_datadir}/%{name}/plugins
130 %{_datadir}/%{name}/plugins/*.lua
131 %{_desktopdir}/*.desktop