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
68e55b
Version:        1.99
d83ece
Release:        2%{?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
68e55b
BuildRequires:  ocaml
e85571
BuildRequires:  perl-interpreter
11a146
BuildRequires:  tex(latex)
68e55b
BuildRequires:  tex(fullpage.sty)
11a146
BuildRequires:  hevea
11a146
d0aad2
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
2f1f63
sed -i 's/-cclib -lstr//' Makefile.in
2f1f63
for file in CHANGES README ; 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
%{__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
%files
b12849
%doc CHANGES README GPL COPYING manual.pdf manual.html 
11a146
%{_mandir}/man1/*.1.gz
11a146
%{_bindir}/*
11a146
2f1f63
11a146
%changelog
d83ece
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.99-2
d83ece
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d83ece
68e55b
* Mon Jun 25 2018 Till Hofmann <thofmann@fedoraproject.org> - 1.99-1
68e55b
- Update to 1.99
68e55b
- Replace BR: texlive-preprint by tex(fullpage.sty)
68e55b
- Remove ocaml version constraint
68e55b
dcffb0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-15
dcffb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dcffb0
0c3a15
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-14
0c3a15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0c3a15
4c1eb9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-13
4c1eb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4c1eb9
7a476a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-12
7a476a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7a476a
53ed0e
* Wed Nov 09 2016 Dan Horรกk <dan@danny.cz> - 1.97-11
53ed0e
- remove ExcludeArch
53ed0e
651620
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 1.97-10
651620
- Rebuild for OCaml 4.04.0.
651620
759702
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-9
759702
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
759702
fac58f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-8
fac58f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fac58f
219509
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-7
219509
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
219509
7572f7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-6
7572f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7572f7
770a1c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-5
770a1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
770a1c
d0aad2
* Wed Apr 03 2013 Guido Grazioli <guido.grazioli@gmail.com> - 1.97-4
d0aad2
- Fix FTBFS
d0aad2
652d0f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-3
652d0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
652d0f
aec88a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-2
aec88a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
aec88a
b48ccd
* Mon May 14 2012 Guido Grazioli <guido.grazioli@gmail.com> - 1.97-1
b48ccd
- Update to 1.97
b48ccd
- Adapt to current packaging guidelines
b48ccd
cf711e
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.96-2
cf711e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
cf711e
2f1f63
* Tue Jul 19 2011 Guido Grazioli <guido.grazioli@gmail.com> - 1.96-1
2f1f63
- Upstream 1.96
2f1f63
- Fix FTBFS
2f1f63
c0f0f4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.95-2
c0f0f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c0f0f4
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