]> git.pld-linux.org Git - packages/bibclean.git/blob - bibclean.spec
0672ca662c04a653784874ef428e6c8fcd5d138e
[packages/bibclean.git] / bibclean.spec
1 # TODO:
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 Name:           bibclean
6 Version:        2.11.4
7 Release:        0.9
8 License:        GPL v2
9 Group:          Applications
10 Source0:        ftp://ftp.math.utah.edu/pub/tex/bib/%{name}-%{version}.tar.bz2
11 # Source0-md5:  7fbcae38a6227831dccd6f147260b3dc
12 URL:            http://www.ecst.csuchico.edu/~jacobsd/bib/tools/bibtex.html
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 BibTeX prettyprinter, portability verifier, and syntax checker. Some other
19 tools require that this be used before they operate, so they don't have to
20 parse arbitrary BibTeX.
21
22 %prep
23 %setup -q
24
25 %build
26 %{__aclocal}
27 %{__autoconf}
28 %configure
29 %{__make}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/env.d}
34
35 %{__make} install \
36         DESTDIR=$RPM_BUILD_ROOT \
37         prefix=$RPM_BUILD_ROOT%{_prefix} \
38         mandir=$RPM_BUILD_ROOT%{_mandir}/man1
39
40 echo "#BIBCLEANEXT=.ini" > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANEXT
41 echo "#BIBINPUTS=\$PATH" > $RPM_BUILD_ROOT/etc/env.d/BIBINPUTS
42 # Will that work?
43 echo "BIBCLEANINI=/etc/bibcleanrc" > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANINI
44
45 mv -f $RPM_BUILD_ROOT%{_bindir}/.bibcleanrc $RPM_BUILD_ROOT/etc/bibcleanrc
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc ChangeLog README *.txt *.html *.pdf *.hlp *.bok *.org *.ltx *.eok
53 %attr(755,root,root) %{_bindir}/*
54 %attr(644,root,root) %config(noreplace) /etc/bibcleanrc
55 %config(noreplace) /etc/env.d/*
56 %{_mandir}/man1/*.1*
This page took 0.042527 seconds and 2 git commands to generate.