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
68e55bf
Version:        1.99
39ad415
Release:        4%{?dist}
11a146b
Summary:        Collection of tools for translating from BibTeX to HTML
11a146b
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
68e55bf
BuildRequires:  ocaml
e855710
BuildRequires:  perl-interpreter
11a146b
BuildRequires:  tex(latex)
68e55bf
BuildRequires:  tex(fullpage.sty)
11a146b
BuildRequires:  hevea
11a146b
d0aad28
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
39ad415
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.99-4
39ad415
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
39ad415
5abb76d
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.99-3
5abb76d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5abb76d
d83ece1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.99-2
d83ece1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d83ece1
68e55bf
* Mon Jun 25 2018 Till Hofmann <thofmann@fedoraproject.org> - 1.99-1
68e55bf
- Update to 1.99
68e55bf
- Replace BR: texlive-preprint by tex(fullpage.sty)
68e55bf
- Remove ocaml version constraint
68e55bf
dcffb09
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-15
dcffb09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dcffb09
0c3a15a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-14
0c3a15a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0c3a15a
4c1eb9c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-13
4c1eb9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4c1eb9c
7a476a9
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-12
7a476a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7a476a9
53ed0e5
* Wed Nov 09 2016 Dan HorĂ¡k <dan@danny.cz> - 1.97-11
53ed0e5
- remove ExcludeArch
53ed0e5
6516200
* Sat Nov 05 2016 Richard W.M. Jones <rjones@redhat.com> - 1.97-10
6516200
- Rebuild for OCaml 4.04.0.
6516200
7597027
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.97-9
7597027
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7597027
fac58f2
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-8
fac58f2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fac58f2
219509e
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-7
219509e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
219509e
7572f71
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-6
7572f71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7572f71
770a1ca
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.97-5
770a1ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
770a1ca
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