2 # - patch Makefile to make clean build using DESTDIR
3 # - human-like bibcleanrc init file location
4 Summary: BibTeX prettyprinter, portability verifier, and syntax checker
5 Summary(pl): Narzêdzie do ³adnego drukowania, kontroli przeno¶no¶ci i sk³adni BibTeXa
11 Source0: ftp://ftp.math.utah.edu/pub/tex/bib/%{name}-%{version}.tar.bz2
12 # Source0-md5: 7fbcae38a6227831dccd6f147260b3dc
13 URL: http://www.ecst.csuchico.edu/~jacobsd/bib/tools/bibtex.html
14 BuildRequires: autoconf
15 BuildRequires: automake
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 BibTeX prettyprinter, portability verifier, and syntax checker. Some
21 other tools require that this be used before they operate, so they
22 don't have to parse arbitrary BibTeX.
25 Narzêdzie do ³adnego drukowania, kontroli przeno¶no¶ci i sk³adni
26 BibTeXa. Niektóre inne narzêdzia wymagaj± tego przed u¿yciem, dziêki
27 czemu nie musz± przetwarzaæ dowolnego BibTeXa.
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/env.d}
43 DESTDIR=$RPM_BUILD_ROOT \
44 prefix=$RPM_BUILD_ROOT%{_prefix} \
45 mandir=$RPM_BUILD_ROOT%{_mandir}/man1
47 echo "#BIBCLEANEXT=.ini" > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANEXT
48 echo "#BIBINPUTS=\$PATH" > $RPM_BUILD_ROOT/etc/env.d/BIBINPUTS
50 echo "BIBCLEANINI=/etc/bibcleanrc" > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANINI
52 mv -f $RPM_BUILD_ROOT%{_bindir}/.bibcleanrc $RPM_BUILD_ROOT/etc/bibcleanrc
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc ChangeLog README *.txt *.html *.pdf *.hlp *.bok *.org *.ltx *.eok
60 %attr(755,root,root) %{_bindir}/*
61 %config(noreplace) %verify(not size mtime md5) /etc/bibcleanrc
62 %config(noreplace) %verify(not size mtime md5) /etc/env.d/*