]> git.pld-linux.org Git - packages/highlight.git/blame - highlight.spec
- release 2
[packages/highlight.git] / highlight.spec
CommitLineData
28e6757e 1#
4d835968 2# Conditional build:
28e6757e 3%bcond_without apidocs # don't generate apidocs subpackage
4#
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
8Version: 2.4.3
dc15bb67 9Release: 2
28e6757e 10License: GPL
11Group: Applications/Publishing
12Source0: http://www.andre-simon.de/zip/%{name}-%{version}.tar.gz
13# Source0-md5: 19b0437361f84467fff11bdbeba654a0
14Patch0: %{name}-Makefile.patch
15URL: http://www.andre-simon.de/
28e6757e 16%{?with_apidocs:BuildRequires: doxygen}
4d835968 17BuildRequires: libstdc++-devel
28e6757e 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _sysconfdir /etc/highlight
21
22%description
23Highlight is a universal converter from source code to HTML, XHTML,
24RTF, TeX, LaTeX, XSL-FO, and XML. (X)HTML output is formatted by
25Cascading Style Sheets. It supports 100 programming languages and
26includes 50 highlighting color themes. It's possible to easily enhance
27the parsing database. The converter includes some features to provide
28a consistent layout of the input code.
29
100d6ecf
JR
30%description -l pl.UTF-8
31Highlight jest uniwersalnym konwerterem kodu źródłowego do formatów
32HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML. Wyjście (X)HTML jest
33formatowane przez kaskadowe arkusze stylów (CSS). Highlight wspiera
34100 języków programowania i zawiera 50 kolorystycznych motywów
35podświetlania składni. Umożliwia łatwe ulepszanie bazy parsowania.
36Konwerter zawiera pewne cechy zapewniające spójny układ graficzny kodu
37wejściowego.
28e6757e 38
39%package apidocs
40Summary: API documentation for highlight - a source code converter to HTML, XHTML, RTF, TeX, LaTeX, XSL-FO, and XML
d4345fd9 41Summary(pl.UTF-8): Dokumentacja API highlight - konwertera kodu źródłowego do HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML
28e6757e 42Group: Documentation
43
44%description apidocs
45API documentation for highlight - a source code converter to HTML,
46XHTML, RTF, TeX, LaTeX, XSL-FO, and XML.
47
100d6ecf
JR
48%description apidocs -l pl.UTF-8
49Dokumentacja API highlight - konwertera kodu źródłowego do formatu
4d835968 50HTML, XHTML, RTF, TeX, LaTeX, XSL-FO oraz XML.
28e6757e 51
52%prep
53%setup -q
54%patch0 -p1
55
56%build
4d835968
JB
57%{__make} \
58 CXX="%{__cxx}" \
59 CXXFLAGS="%{rpmcxxflags}"
28e6757e 60
61%{?with_apidocs:%{__make} apidocs}
62
63%install
64rm -rf $RPM_BUILD_ROOT
65
66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
68
69# to avoid false `warning: Installed (but unpackaged) file(s) found:' - these files are packaged through %doc
70rm -fr $RPM_BUILD_ROOT/usr/share/doc/highlight
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
77%doc AUTHORS ChangeLog README README_INDENT README_REGEX TODO examples
78%lang(de) %doc README_DE
79%lang(es) %doc README_ES
80%attr(755,root,root) %{_bindir}/*
81%{_datadir}/%{name}
82%{_mandir}/man1/*
9274fa23
JB
83%dir %{_sysconfdir}
84%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
28e6757e 85
86%if %{with apidocs}
87%files apidocs
88%defattr(644,root,root,755)
89%doc apidocs/html/*
90%endif
This page took 0.0880840000000001 seconds and 4 git commands to generate.