%define name bib2xhtml %define version 2.20 %define release %mkrel 1 %define bstdir /usr/share/texmf/bibtex/bst/bib2xhtml Name: %{name} Version: %{version} Release: %{release} Summary: A program for converting BibTeX files into XHTML 1.0 Source: http://www.spinellis.gr/sw/textproc/bib2xhtml/%{name}-%{version}.tar.bz2 License: GPL Group: Publishing Url: http://www.spinellis.gr/sw/textproc/bib2xhtml/ Requires: tetex BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description bib2xhtml is a program that converts BibTeX files into HTML (specifically XHTML 1.0). The conversion is mostly done by specialized BibTeX style files derived from converted bibliography style templates. This ensures that the original BibTeX styles are faithfully reproduced. Some postprocessing is performed by Perl code. %prep %setup -q # fix encoding perl -pi -e 'tr/\r//d' *.html *.bib bib2xhtml %build %install rm -rf %{buildroot} install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_mandir}/man1 install -m 755 -d %{buildroot}%{bstdir} install -m 755 bib2xhtml %{buildroot}%{_bindir} install -m 644 bib2xhtml.man %{buildroot}%{_mandir}/man1/bib2xhtml.1 install -m 644 *.bst %{buildroot}%{bstdir} %post texhash %postun rm -rf %bstdir texhash %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc ChangeLog COPYING README *.html *.txt *.pdf example.bib %{_bindir}/bib2xhtml %{_mandir}/man1/bib2xhtml.1.* %{bstdir}/* %changelog * Tue Sep 20 2005 Guillaume Rousse <guillomovitch@mandriva.org> 2.20-1mdk - contributed by Lev Givon (<lev@columbia.edu>)