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