]> git.pld-linux.org Git - packages/highlight.git/blame - highlight.spec
up to 3.60
[packages/highlight.git] / highlight.spec
CommitLineData
28e6757e 1#
4d835968 2# Conditional build:
7a8012a7 3%bcond_with apidocs # don't generate apidocs subpackage
6dca621b 4
28e6757e 5Summary: A source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
d4345fd9 6Summary(pl.UTF-8): Konwerter kodu źródłowego do formatów HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
28e6757e 7Name: highlight
13b9f4a9 8Version: 3.60
d9b13a39 9Release: 1
761eb7d5 10License: GPL v3
28e6757e 11Group: Applications/Publishing
78f01f41 12Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2
13b9f4a9 13# Source0-md5: 33f7f5548ac86e18a39b93fbefbe7e5d
28e6757e 14Patch0: %{name}-Makefile.patch
15URL: http://www.andre-simon.de/
03025ef9
JP
16BuildRequires: Qt5Core-devel
17BuildRequires: Qt5Gui-devel
18BuildRequires: Qt5Widgets-devel
7a8012a7 19BuildRequires: boost-devel
6dca621b
ER
20%{?with_apidocs:BuildRequires: doxygen}
21BuildRequires: libstdc++-devel
03025ef9
JP
22BuildRequires: lua53-devel
23BuildRequires: qt5-build
24BuildRequires: qt5-qmake
28e6757e 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
761eb7d5 27%define _sysconfdir /etc/highlight
28e6757e 28
29%description
30Highlight is a universal converter from source code to HTML, XHTML,
31RTF, TeX, LaTeX, XSL-FO, and XML. (X)HTML output is formatted by
32Cascading Style Sheets. It supports 100 programming languages and
33includes 50 highlighting color themes. It's possible to easily enhance
34the parsing database. The converter includes some features to provide
35a consistent layout of the input code.
36
100d6ecf
JR
37%description -l pl.UTF-8
38Highlight jest uniwersalnym konwerterem kodu źródłowego do formatów
39HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML. Wyjście (X)HTML jest
40formatowane przez kaskadowe arkusze stylów (CSS). Highlight wspiera
41100 języków programowania i zawiera 50 kolorystycznych motywów
42podświetlania składni. Umożliwia łatwe ulepszanie bazy parsowania.
43Konwerter zawiera pewne cechy zapewniające spójny układ graficzny kodu
44wejściowego.
28e6757e 45
46%package apidocs
47Summary: API documentation for highlight - a source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
d4345fd9 48Summary(pl.UTF-8): Dokumentacja API highlight - konwertera kodu źródłowego do HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
28e6757e 49Group: Documentation
6dca621b
ER
50%if "%{_rpmversion}" >= "5"
51BuildArch: noarch
52%endif
28e6757e 53
54%description apidocs
55API documentation for highlight - a source code converter to HTML,
56XHTML, RTF, TeX, LaTeX, XSL-FO, and XML.
57
100d6ecf
JR
58%description apidocs -l pl.UTF-8
59Dokumentacja API highlight - konwertera kodu źródłowego do formatu
4d835968 60HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML.
28e6757e 61
761eb7d5
TP
62%package gui
63Summary: GUI for highlight - a source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
64Summary(pl.UTF-8): GUI do highlight - konwertera kodu źródłowego do HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
65Group: Development/Tools
66Requires: %{name}
13b9f4a9
JP
67Requires(post,postun): gtk-update-icon-cache
68Requires: hicolor-icon-theme
761eb7d5
TP
69
70%description gui
71Qt4 GUI for for highlight - a source code converter to HTML, XHTML,
72RTF, TeX, LaTeX, XSL-FO, and XML.
73
28e6757e 74%prep
75%setup -q
76%patch0 -p1
77
78%build
4d835968
JB
79%{__make} \
80 CXX="%{__cxx}" \
7a8012a7 81 CXXFLAGS="%{rpmcxxflags} -std=c++11"
761eb7d5 82%{__make} gui \
03025ef9 83 QMAKE=qmake-qt5 \
d1a9fc6b 84 CXX="%{__cxx}"
28e6757e 85
86%{?with_apidocs:%{__make} apidocs}
87
88%install
89rm -rf $RPM_BUILD_ROOT
90
91%{__make} install \
92 DESTDIR=$RPM_BUILD_ROOT
93
761eb7d5
TP
94%{__make} install-gui \
95 DESTDIR=$RPM_BUILD_ROOT
96
28e6757e 97# to avoid false `warning: Installed (but unpackaged) file(s) found:' - these files are packaged through %doc
6dca621b 98rm -fr $RPM_BUILD_ROOT%{_docdir}/highlight
28e6757e 99
100%clean
101rm -rf $RPM_BUILD_ROOT
102
13b9f4a9
JP
103%post gui
104%update_icon_cache hicolor
105
106%postun gui
107%update_icon_cache hicolor
108
28e6757e 109%files
110%defattr(644,root,root,755)
03025ef9
JP
111%doc AUTHORS ChangeLog.adoc README.adoc README_LANGLIST.adoc README_PLUGINS.adoc README_REGEX.adoc extras
112%lang(de) %doc README_DE.adoc
761eb7d5 113%attr(755,root,root) %{_bindir}/%{name}
54d6d16e
TP
114%dir %{_datadir}/%{name}
115%{_datadir}/%{name}/langDefs
116%{_datadir}/%{name}/themes
03025ef9
JP
117%{_mandir}/man1/highlight.1*
118%{_mandir}/man5/filetypes.conf.5*
9274fa23
JB
119%dir %{_sysconfdir}
120%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
28e6757e 121
122%if %{with apidocs}
123%files apidocs
124%defattr(644,root,root,755)
125%doc apidocs/html/*
126%endif
761eb7d5
TP
127
128%files gui
6dca621b 129%defattr(644,root,root,755)
761eb7d5 130%attr(755,root,root) %{_bindir}/%{name}-gui
54d6d16e
TP
131%dir %{_datadir}/%{name}/gui_files
132%dir %{_datadir}/%{name}/gui_files/l10n
710c3d49
JP
133%lang(bg) %{_datadir}/%{name}/gui_files/l10n/highlight_bg_BG.qm
134%lang(cs) %{_datadir}/%{name}/gui_files/l10n/highlight_cs_CZ.qm
135%lang(de) %{_datadir}/%{name}/gui_files/l10n/highlight_de_DE.qm
136%lang(es) %{_datadir}/%{name}/gui_files/l10n/highlight_es_ES.qm
137%lang(fr) %{_datadir}/%{name}/gui_files/l10n/highlight_fr_FR.qm
138%lang(it) %{_datadir}/%{name}/gui_files/l10n/highlight_it_IT.qm
139%lang(zh) %{_datadir}/%{name}/gui_files/l10n/highlight_zh_CN.qm
54d6d16e 140%{_datadir}/%{name}/gui_files/ext
7a8012a7
JP
141%dir %{_datadir}/%{name}/plugins
142%{_datadir}/%{name}/plugins/*.lua
761eb7d5 143%{_desktopdir}/*.desktop
13b9f4a9 144%{_iconsdir}/hicolor/*x*/apps/highlight.png
This page took 0.194637 seconds and 4 git commands to generate.