424b237
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
424b237
# Debuginfo is not useful for OCaml programs since gdb doesn't know about OCaml
424b237
%global debug_package %{nil}
424b237
424b237
Name:           bibtex2html
8760f4e
Version:        1.94
8760f4e
Release:        1%{?dist}
424b237
Summary:        Collection of tools for translating from BibTeX to HTML
424b237
424b237
Group:          Applications/Publishing
424b237
License:        GPLv2
424b237
URL:            http://www.lri.fr/~filliatr/bibtex2html/index.en.html
424b237
Source0:        http://www.lri.fr/~filliatr/ftp/bibtex2html/bibtex2html-%{version}.tar.gz
424b237
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
424b237
424b237
BuildRequires:  ocaml >= 3.10.0
424b237
BuildRequires:  perl
424b237
BuildRequires:  tex(latex)
424b237
# temp conditional until ocaml works on ppc64
424b237
%ifnarch ppc64 
424b237
BuildRequires:  hevea
424b237
%endif
424b237
8760f4e
ExcludeArch: sparc64 s390 s390x
424b237
424b237
%description
424b237
bibtex2html is a collection of tools for translating from BibTeX to HTML. 
424b237
They allow to produce, from a set of bibliography files in BibTeX format, 
424b237
a bibliography in HTML format.
424b237
424b237
%prep
424b237
%setup -q
424b237
for file in CHANGES ; do
424b237
   mv $file timestamp && \
424b237
   iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp && \
424b237
   touch -r timestamp $file && \
424b237
   rm timestamp
424b237
done
424b237
424b237
%build
424b237
%configure 
424b237
make %{?_smp_mflags}
424b237
# temp conditional until ocaml works on ppc64
424b237
%ifnarch ppc64
424b237
make doc
424b237
%else
424b237
make manual.ps
424b237
%endif
424b237
424b237
%install
424b237
rm -rf %{buildroot}
424b237
%{__perl} -pi -e 's|^BINDIR=.*|BINDIR=%{buildroot}%{_bindir}|g;' Makefile
424b237
%{__perl} -pi -e 's|^MANDIR =.*|MANDIR=%{buildroot}%{_mandir}|g;' Makefile
424b237
make install 
424b237
424b237
%clean
424b237
rm -rf %{buildroot}
424b237
424b237
%files
424b237
%defattr(-,root,root,-)
424b237
%doc CHANGES README GPL COPYING manual.dvi manual.ps 
424b237
# temp conditional until ocaml works on ppc64
424b237
%ifnarch ppc64
424b237
%doc manual.html
424b237
%endif
424b237
%{_mandir}/man1/*.1.gz
424b237
%{_bindir}/*
424b237
424b237
%changelog
8760f4e
* Fri Oct 02 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.94-1
8760f4e
- Upstream 1.94
8760f4e
8760f4e
* Tue Sep 22 2009 Dennis Gilmore <dennis@ausil.us> - 1.93-5
8760f4e
- ExcludeArch sparc64 s390 s390x
8760f4e
8760f4e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.93-4
8760f4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8760f4e
424b237
* Thu Mar 19 2009 Guido Grazioli <guido.grazioli@gmail.com> 1.93-3
424b237
- added manual (no html on ppc64 until hevea available)
8760f4e
424b237
* Wed Mar 18 2009 Guido Grazioli <guido.grazioli@gmail.com> 1.93-2
424b237
- sanitized charset conversion
424b237
- added smp make flags
8760f4e
424b237
* Tue Mar 17 2009 Guido Grazioli <guido.grazioli@gmail.com> 1.93-1
424b237
- initial packaging