]> git.pld-linux.org Git - packages/bibclean.git/blobdiff - bibclean.spec
- tabs in preamble
[packages/bibclean.git] / bibclean.spec
index 11da081d6db3ded16894ad8fa29d83576f542339..44a89cb4fe76d4af099137eafa972648b174a512 100644 (file)
@@ -2,10 +2,10 @@
 # - patch Makefile to make clean build using DESTDIR
 # - human-like bibcleanrc init file location
 Summary:       BibTeX prettyprinter, portability verifier, and syntax checker
 # - 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
+Summary(pl.UTF-8):     Narzędzie do ładnego drukowania, kontroli przenośności i składni BibTeXa
 Name:          bibclean
 Version:       2.11.4
 Name:          bibclean
 Version:       2.11.4
-Release:       2
+Release:       4
 License:       GPL v2
 Group:         Applications
 Source0:       ftp://ftp.math.utah.edu/pub/tex/bib/%{name}-%{version}.tar.bz2
 License:       GPL v2
 Group:         Applications
 Source0:       ftp://ftp.math.utah.edu/pub/tex/bib/%{name}-%{version}.tar.bz2
@@ -13,7 +13,7 @@ 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
 URL:           http://www.ecst.csuchico.edu/~jacobsd/bib/tools/bibtex.html
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: rsh
+BuildRequires: rpmbuild(macros) >= 1.318
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -21,10 +21,10 @@ 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.
 
 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.
+%description -l pl.UTF-8
+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
 
 %prep
 %setup -q
@@ -40,24 +40,31 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/etc/env.d}
 
 %{__make} install \
 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
 
        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?
 # 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
 
 
 %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}/*
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog README *.txt *.html *.pdf *.hlp *.bok *.org *.ltx *.eok
 %attr(755,root,root) %{_bindir}/*
-%config(noreplace) %verify(not size mtime md5) /etc/bibcleanrc
-%config(noreplace) %verify(not size mtime md5) /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*
 %{_mandir}/man1/*.1*
This page took 0.051654 seconds and 4 git commands to generate.