11a146b
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
11a146b
# Debuginfo is not useful for OCaml programs since gdb doesn't know about OCaml
11a146b
%global debug_package %{nil}
11a146b
11a146b
Name:           bibtex2html
b48ccde
Version:        1.97
d0aad28
Release:        4%{?dist}
11a146b
Summary:        Collection of tools for translating from BibTeX to HTML
11a146b
11a146b
Group:          Applications/Publishing
11a146b
License:        GPLv2
11a146b
URL:            http://www.lri.fr/~filliatr/bibtex2html/index.en.html
b128490
Source0:        http://www.lri.fr/~filliatr/ftp/bibtex2html/%{name}-%{version}.tar.gz
11a146b
11a146b
BuildRequires:  ocaml >= 3.10.0
11a146b
BuildRequires:  perl
11a146b
BuildRequires:  tex(latex)
d0aad28
BuildRequires:  texlive-preprint
11a146b
BuildRequires:  hevea
11a146b
d0aad28
b128490
ExcludeArch: sparc64 s390 s390x ppc64
11a146b
11a146b
%description
11a146b
bibtex2html is a collection of tools for translating from BibTeX to HTML. 
11a146b
They allow to produce, from a set of bibliography files in BibTeX format, 
11a146b
a bibliography in HTML format.
11a146b
11a146b
%prep
11a146b
%setup -q
2f1f633
sed -i 's/-cclib -lstr//' Makefile.in
2f1f633
for file in CHANGES README ; do
11a146b
   mv $file timestamp && \
11a146b
   iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp && \
11a146b
   touch -r timestamp $file && \
11a146b
   rm timestamp
11a146b
done
11a146b
11a146b
%build
11a146b
%configure 
11a146b
make %{?_smp_mflags}
11a146b
11a146b
%install
11a146b
%{__perl} -pi -e 's|^BINDIR=.*|BINDIR=%{buildroot}%{_bindir}|g;' Makefile
11a146b
%{__perl} -pi -e 's|^MANDIR =.*|MANDIR=%{buildroot}%{_mandir}|g;' Makefile
11a146b
make install 
11a146b
11a146b
%files
b128490
%doc CHANGES README GPL COPYING manual.pdf manual.html 
11a146b
%{_mandir}/man1/*.1.gz
11a146b
%{_bindir}/*
11a146b
2f1f633
11a146b
%changelog
d0aad28
* Wed Apr 03 2013 Guido Grazioli <guido.grazioli@gmail.com> - 1.97-4
d0aad28
- Fix FTBFS
d0aad28
652d0f5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-3
652d0f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
652d0f5
aec88aa
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-2
aec88aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
aec88aa
b48ccde
* Mon May 14 2012 Guido Grazioli <guido.grazioli@gmail.com> - 1.97-1
b48ccde
- Update to 1.97
b48ccde
- Adapt to current packaging guidelines
b48ccde
cf711e3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-2
cf711e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cf711e3
2f1f633
* Tue Jul 19 2011 Guido Grazioli <guido.grazioli@gmail.com> - 1.96-1
2f1f633
- Upstream 1.96
2f1f633
- Fix FTBFS
2f1f633
c0f0f45
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.95-2
c0f0f45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c0f0f45
b128490
* Fri Oct 02 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.95-1
b128490
- Upstream 1.95
b128490
956a9a2
* Fri Oct 02 2009 Guido Grazioli <guido.grazioli@gmail.com> - 1.94-1
956a9a2
- Upstream 1.94
956a9a2
6e12b69
* Tue Sep 22 2009 Dennis Gilmore <dennis@ausil.us> - 1.93-5
6e12b69
- ExcludeArch sparc64 s390 s390x
6e12b69
3ccebde
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.93-4
3ccebde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3ccebde
11a146b
* Thu Mar 19 2009 Guido Grazioli <guido.grazioli@gmail.com> 1.93-3
11a146b
- added manual (no html on ppc64 until hevea available)
956a9a2
11a146b
* Wed Mar 18 2009 Guido Grazioli <guido.grazioli@gmail.com> 1.93-2
11a146b
- sanitized charset conversion
11a146b
- added smp make flags
956a9a2
11a146b
* Tue Mar 17 2009 Guido Grazioli <guido.grazioli@gmail.com> 1.93-1
11a146b
- initial packaging