From fb7c797a7eca044daba79de611ca7757654d9382 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: May 09 2009 22:14:20 +0000 Subject: - added manual (no html on ppc64 until hevea available) Wed Mar 18 2009 Guido Grazioli 1.93-2 - sanitized charset conversion - added smp make flags Tue Mar 17 2009 Guido Grazioli 1.93-1 - initial packaging --- diff --git a/.cvsignore b/.cvsignore index e69de29..dbabd21 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +bibtex2html-1.93.tar.gz diff --git a/bibtex2html.spec b/bibtex2html.spec new file mode 100644 index 0000000..73f22b5 --- /dev/null +++ b/bibtex2html.spec @@ -0,0 +1,75 @@ +%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0) +# Debuginfo is not useful for OCaml programs since gdb doesn't know about OCaml +%global debug_package %{nil} + +Name: bibtex2html +Version: 1.93 +Release: 3%{?dist} +Summary: Collection of tools for translating from BibTeX to HTML + +Group: Applications/Publishing +License: GPLv2 +URL: http://www.lri.fr/~filliatr/bibtex2html/index.en.html +Source0: http://www.lri.fr/~filliatr/ftp/bibtex2html/bibtex2html-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ocaml >= 3.10.0 +BuildRequires: perl +BuildRequires: tex(latex) +# temp conditional until ocaml works on ppc64 +%ifnarch ppc64 +BuildRequires: hevea +%endif + + +%description +bibtex2html is a collection of tools for translating from BibTeX to HTML. +They allow to produce, from a set of bibliography files in BibTeX format, +a bibliography in HTML format. + +%prep +%setup -q +for file in CHANGES ; do + mv $file timestamp && \ + iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp && \ + touch -r timestamp $file && \ + rm timestamp +done + +%build +%configure +make %{?_smp_mflags} +# temp conditional until ocaml works on ppc64 +%ifnarch ppc64 +make doc +%else +make manual.ps +%endif + +%install +rm -rf %{buildroot} +%{__perl} -pi -e 's|^BINDIR=.*|BINDIR=%{buildroot}%{_bindir}|g;' Makefile +%{__perl} -pi -e 's|^MANDIR =.*|MANDIR=%{buildroot}%{_mandir}|g;' Makefile +make install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGES README GPL COPYING manual.dvi manual.ps +# temp conditional until ocaml works on ppc64 +%ifnarch ppc64 +%doc manual.html +%endif +%{_mandir}/man1/*.1.gz +%{_bindir}/* + +%changelog +* Thu Mar 19 2009 Guido Grazioli 1.93-3 +- added manual (no html on ppc64 until hevea available) +* Wed Mar 18 2009 Guido Grazioli 1.93-2 +- sanitized charset conversion +- added smp make flags +* Tue Mar 17 2009 Guido Grazioli 1.93-1 +- initial packaging diff --git a/import.log b/import.log new file mode 100644 index 0000000..6cf7107 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +bibtex2html-1_93-3_fc10:F-11:bibtex2html-1.93-3.fc10.src.rpm:1241907229 diff --git a/sources b/sources index e69de29..c585b6a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +64657c791a29b873467b20bad9705983 bibtex2html-1.93.tar.gz