Summary: C2html - converts C files to HTML
Summary(pl.UTF-8): C2html - konwerter źródeł C do HTML
Name: c2html
Version: 0.9.5
Release: 1
License: GPL v2
Group: Applications/Text
Source0: http://user.cs.tu-berlin.de/~schintke/x2html/%{name}-%{version}.tar.gz
# Source0-md5: 324cd6c50dd611607e3366840bbc61f2
Patch0: %{name}-DESTDIR.patch
URL: http://user.cs.tu-berlin.de/~schintke/x2html/index.html
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: flex
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
C2html highlights C-language sources like emacs does. Output is in
HTML format. Also works as CGI to convert files on the fly.
%description -l pl.UTF-8
C2html podświetla składnię źródeł C podobnie jak emacs. Wyjście jest
w formacie HTML. Działa także jako CGI konwertując pliki w locie.
%prep
%setup -q
%patch0 -p0
%build
%{__aclocal}
%{__autoconf}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# to avoid "warning: found installed files not placed in any package: blabla"
rm -rf $RPM_BUILD_ROOT/usr/doc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*