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