]> git.pld-linux.org Git - packages/bibclean.git/blob - bibclean.spec
- %env_update; rel 3
[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 Summary(pl):    Narzêdzie do ³adnego drukowania, kontroli przeno¶no¶ci i sk³adni BibTeXa
6 Name:           bibclean
7 Version:        2.11.4
8 Release:        3
9 License:        GPL v2
10 Group:          Applications
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
16 BuildRequires:  rpmbuild(macros) >= 1.316
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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.
23
24 %description -l pl
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.
28
29 %prep
30 %setup -q
31
32 %build
33 %{__aclocal}
34 %{__autoconf}
35 %configure
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/env.d}
41
42 %{__make} install \
43         CP="cp -p" \
44         DESTDIR=$RPM_BUILD_ROOT \
45         prefix=$RPM_BUILD_ROOT%{_prefix} \
46         mandir=$RPM_BUILD_ROOT%{_mandir}/man1
47
48 echo '#BIBCLEANEXT=.ini' > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANEXT
49 echo '#BIBINPUTS=$PATH' > $RPM_BUILD_ROOT/etc/env.d/BIBINPUTS
50 # Will that work?
51 echo 'BIBCLEANINI=%{_sysconfdir}/bibcleanrc' > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANINI
52
53 mv -f $RPM_BUILD_ROOT%{_bindir}/.bibcleanrc $RPM_BUILD_ROOT%{_sysconfdir}/bibcleanrc
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 %env_update
60
61 %postun
62 %env_update
63
64 %files
65 %defattr(644,root,root,755)
66 %doc ChangeLog README *.txt *.html *.pdf *.hlp *.bok *.org *.ltx *.eok
67 %attr(755,root,root) %{_bindir}/*
68 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bibcleanrc
69 %config(noreplace) %verify(not md5 mtime size) /etc/env.d/*
70 %{_mandir}/man1/*.1*
This page took 1.45115 seconds and 4 git commands to generate.