%define VER 2.4 %define PatchLevel 1 Summary: A universal source code to formatted text converter Name: highlight Version: %{VER}.%{PatchLevel} Release: 1.n0i.1 Group: Development/Tools License: GPL URL: http://www.andre-simon.de/ Source0: http://www.andre-simon.de/zip/%{name}-%{VER}-%{PatchLevel}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, XSL-FO, XML or ANSI escape sequences with syntax highlighting. It supports several programming and markup languages. Language descriptions are configurable and support regular expressions. The utility offers indentation and reformatting capabilities. It is easily possible to create new language definitions and colour themes. %prep %setup -n %{name}-%{VER}-%{PatchLevel} %build CFLAGS="$RPM_OPT_FLAGS -DHL_DATA_DIR=\\\"%{_datadir}/%{name}/\\\"" \ %{__make} -e %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} -e install DESTDIR=$RPM_BUILD_ROOT %{__install} -d $RPM_BUILD_ROOT%{_bindir} %{__mv} $RPM_BUILD_ROOT/usr/local/bin/highlight $RPM_BUILD_ROOT%{_bindir}/%{name} %{__rm} -rf $RPM_BUILD_ROOT/usr{/local,/share/doc} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/* %{_datadir}/%{name} %{_mandir}/man*/* %doc AUTHORS ChangeLog COPYING examples/ README* TODO %changelog * Wed Jul 27 2005 Marius FERARU 2.4.1-1.n0i.1 - rewrote spec file - version 2.4-1 * Tue Feb 26 2002 Andre Simon - Initial build