]> git.pld-linux.org Git - packages/highlight.git/blame - highlight.spec
translation files are not directories
[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
b7497651 8Version: 3.53
d9b13a39 9Release: 1
761eb7d5 10License: GPL v3
28e6757e 11Group: Applications/Publishing
78f01f41 12Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2
b7497651 13# Source0-md5: 8ec42b1d6d68f2eab4d27a63ef86bdc7
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}
67
68%description gui
69Qt4 GUI for for highlight - a source code converter to HTML, XHTML,
70RTF, TeX, LaTeX, XSL-FO, and XML.
71
28e6757e 72%prep
73%setup -q
74%patch0 -p1
75
76%build
4d835968
JB
77%{__make} \
78 CXX="%{__cxx}" \
7a8012a7 79 CXXFLAGS="%{rpmcxxflags} -std=c++11"
761eb7d5 80%{__make} gui \
03025ef9 81 QMAKE=qmake-qt5 \
d1a9fc6b 82 CXX="%{__cxx}"
28e6757e 83
84%{?with_apidocs:%{__make} apidocs}
85
86%install
87rm -rf $RPM_BUILD_ROOT
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
91
761eb7d5
TP
92%{__make} install-gui \
93 DESTDIR=$RPM_BUILD_ROOT
94
28e6757e 95# to avoid false `warning: Installed (but unpackaged) file(s) found:' - these files are packaged through %doc
6dca621b 96rm -fr $RPM_BUILD_ROOT%{_docdir}/highlight
28e6757e 97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101%files
102%defattr(644,root,root,755)
03025ef9
JP
103%doc AUTHORS ChangeLog.adoc README.adoc README_LANGLIST.adoc README_PLUGINS.adoc README_REGEX.adoc extras
104%lang(de) %doc README_DE.adoc
761eb7d5 105%attr(755,root,root) %{_bindir}/%{name}
54d6d16e
TP
106%dir %{_datadir}/%{name}
107%{_datadir}/%{name}/langDefs
108%{_datadir}/%{name}/themes
03025ef9
JP
109%{_mandir}/man1/highlight.1*
110%{_mandir}/man5/filetypes.conf.5*
9274fa23
JB
111%dir %{_sysconfdir}
112%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
28e6757e 113
114%if %{with apidocs}
115%files apidocs
116%defattr(644,root,root,755)
117%doc apidocs/html/*
118%endif
761eb7d5
TP
119
120%files gui
6dca621b 121%defattr(644,root,root,755)
761eb7d5 122%attr(755,root,root) %{_bindir}/%{name}-gui
54d6d16e
TP
123%dir %{_datadir}/%{name}/gui_files
124%dir %{_datadir}/%{name}/gui_files/l10n
710c3d49
JP
125%lang(bg) %{_datadir}/%{name}/gui_files/l10n/highlight_bg_BG.qm
126%lang(cs) %{_datadir}/%{name}/gui_files/l10n/highlight_cs_CZ.qm
127%lang(de) %{_datadir}/%{name}/gui_files/l10n/highlight_de_DE.qm
128%lang(es) %{_datadir}/%{name}/gui_files/l10n/highlight_es_ES.qm
129%lang(fr) %{_datadir}/%{name}/gui_files/l10n/highlight_fr_FR.qm
130%lang(it) %{_datadir}/%{name}/gui_files/l10n/highlight_it_IT.qm
131%lang(zh) %{_datadir}/%{name}/gui_files/l10n/highlight_zh_CN.qm
54d6d16e 132%{_datadir}/%{name}/gui_files/ext
7a8012a7
JP
133%dir %{_datadir}/%{name}/plugins
134%{_datadir}/%{name}/plugins/*.lua
761eb7d5
TP
135%{_desktopdir}/*.desktop
136%{_pixmapsdir}/*.xpm
This page took 0.353582 seconds and 4 git commands to generate.