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