X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=bibclean.spec;h=8688107266093630a91c92f98d42c0d504743edd;hb=186604537ac2399626782d86dcef767788f019b8;hp=b7e776d4ad9145c47f9bd3689320d1c8ee4b462e;hpb=b93844016a75519f071e66bb299a39c215b9c650;p=packages%2Fbibclean.git diff --git a/bibclean.spec b/bibclean.spec index b7e776d..8688107 100644 --- a/bibclean.spec +++ b/bibclean.spec @@ -2,9 +2,10 @@ # - patch Makefile to make clean build using DESTDIR # - human-like bibcleanrc init file location Summary: BibTeX prettyprinter, portability verifier, and syntax checker +Summary(pl): Narzêdzie do ³adnego drukowania, kontroli przeno¶no¶ci i sk³adni BibTeXa Name: bibclean Version: 2.11.4 -Release: 0.9 +Release: 3 License: GPL v2 Group: Applications Source0: ftp://ftp.math.utah.edu/pub/tex/bib/%{name}-%{version}.tar.bz2 @@ -12,12 +13,18 @@ Source0: ftp://ftp.math.utah.edu/pub/tex/bib/%{name}-%{version}.tar.bz2 URL: http://www.ecst.csuchico.edu/~jacobsd/bib/tools/bibtex.html BuildRequires: autoconf BuildRequires: automake +BuildRequires: rpmbuild(macros) >= 1.316 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -BibTeX prettyprinter, portability verifier, and syntax checker. Some other -tools require that this be used before they operate, so they don't have to -parse arbitrary BibTeX. +BibTeX prettyprinter, portability verifier, and syntax checker. Some +other tools require that this be used before they operate, so they +don't have to parse arbitrary BibTeX. + +%description -l pl +Narzêdzie do ³adnego drukowania, kontroli przeno¶no¶ci i sk³adni +BibTeXa. Niektóre inne narzêdzia wymagaj± tego przed u¿yciem, dziêki +czemu nie musz± przetwarzaæ dowolnego BibTeXa. %prep %setup -q @@ -33,24 +40,31 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/env.d} %{__make} install \ + CP="cp -p" \ DESTDIR=$RPM_BUILD_ROOT \ prefix=$RPM_BUILD_ROOT%{_prefix} \ mandir=$RPM_BUILD_ROOT%{_mandir}/man1 -echo "#BIBCLEANEXT=.ini" > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANEXT -echo "#BIBINPUTS=\$PATH" > $RPM_BUILD_ROOT/etc/env.d/BIBINPUTS +echo '#BIBCLEANEXT=.ini' > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANEXT +echo '#BIBINPUTS=$PATH' > $RPM_BUILD_ROOT/etc/env.d/BIBINPUTS # Will that work? -echo "BIBCLEANINI=/etc/bibcleanrc" > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANINI +echo 'BIBCLEANINI=%{_sysconfdir}/bibcleanrc' > $RPM_BUILD_ROOT/etc/env.d/BIBCLEANINI -mv -f $RPM_BUILD_ROOT%{_bindir}/.bibcleanrc $RPM_BUILD_ROOT/etc/bibcleanrc +mv -f $RPM_BUILD_ROOT%{_bindir}/.bibcleanrc $RPM_BUILD_ROOT%{_sysconfdir}/bibcleanrc %clean rm -rf $RPM_BUILD_ROOT +%post +%env_update + +%postun +%env_update + %files %defattr(644,root,root,755) %doc ChangeLog README *.txt *.html *.pdf *.hlp *.bok *.org *.ltx *.eok %attr(755,root,root) %{_bindir}/* -%attr(644,root,root) %config(noreplace) /etc/.bibcleanrc -%config(noreplace) /etc/env.d/* +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bibcleanrc +%config(noreplace) %verify(not md5 mtime size) /etc/env.d/* %{_mandir}/man1/*.1*