Name: bibtex2html
Version: 1.88
Release: 2%{?dist}
Summary: BibTeX to HTML translator
Group: Applications/Publishing
License: GPLv2
URL: http://www.lri.fr/~filliatr/bibtex2html/index.en.html
Source0: http://www.lri.fr/~filliatr/ftp/bibtex2html/bibtex2html-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ocaml hevea
Requires: tetex
%description
BibTeX2HTML is a collection of tools for producing automatically HTML
documents from bibliographies written in the BibTeX format.
%prep
%setup -q
f=CHANGES
iconv -f latin1 -t utf8 < $f > $f.utf8
touch -r $f $f.utf8
mv $f.utf8 $f
%build
%configure
%{__make} %{?_smp_mflags}
%{__make} manual.html
f=manual.html
iconv -f latin1 -t utf8 < $f > $f.utf8
touch -r $f $f.utf8
mv $f.utf8 $f
%install
%{__rm} -rf %{buildroot}
%{__make} install BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc CHANGES GPL README manual.html
%{_bindir}/aux2bib
%{_bindir}/bib2bib
%{_bindir}/bibtex2html
%{_mandir}/man1/aux2bib.1*
%{_mandir}/man1/bib2bib.1*
%{_mandir}/man1/bibtex2html.1*
%changelog
* Sun Dec 9 2007 Terje Rosten - 1.88-2
- Minor style changes
* Sun Dec 9 2007 Patrice Dumas 1.88-1
- initial release