]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- release 4: use rpm new automation suit.
[packages/a2ps.git] / a2ps.spec
index 512e13fcab47d48c047f42ee5116d1deb7e79f34..bb1a09d1a84847bf1ed3de3857b6f414ffd3fd07 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,14 +1,15 @@
-Summary:       Text to Postscript filter.
+Summary:       Text to Postscript filter
 Summary(pl):   Filtr text/plain do  Postscriptu
 Name:          a2ps
 Version:       4.13b
-Release:       1
+Release:       4
 License:       GPL
-Group:         Utilities/Text
+Group:         Applications/Text
+Group(de):     Applikationen/Text
 Group(fr):     Utilitaires/Texte
-Group(pl):     Narzêdzia/Tekst
+Group(pl):     Aplikacje/Tekst
 Source0:       ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
-Patch0:                a2ps-info.patch
+Patch0:                %{name}-info.patch
 Prereq:                /sbin/ldconfig
 URL:           http://www.inf.enst.fr/~demaille/a2ps/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -37,6 +38,7 @@ PostScript zawieraj
 Summary:       Header files and development documentation for a2ps
 Summary(pl):   Pliki nag³ówkowe i dokunentacja do a2ps
 Group:         Libraries
+Group(de):     Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
 Requires:      %{name} = %{version}
@@ -51,6 +53,7 @@ Pliki nag
 Summary:       a2ps static libraries
 Summary(pl):   Biblioteki statyczne do a2ps
 Group:         Libraries
+Group(de):     Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
 Requires:      %{name}-devel = %{version}
@@ -66,27 +69,23 @@ Biblioteki statyczne do a2ps.
 %patch0 -p1
 
 %build
-LDFLAGS="-s"; export LDFLAGS
 %configure \
        --with-gnu-gettext \
        --with-medium=A4  \
        --with-encoding=latin1 \
        --enable-shared
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp
 
-mv tmp contrib/emacs/Makefile
-make install DESTDIR=$RPM_BUILD_ROOT
+mv -f tmp contrib/emacs/Makefile
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
-       $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       AUTHORS ChangeLog NEWS README THANKS
+gzip -9nf AUTHORS ChangeLog NEWS README THANKS
 
 %find_lang %{name}
 
@@ -94,17 +93,18 @@ gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/ldconfig
 
 %postun
-[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/ldconfig
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
 
+%dir %{_sysconfdir}
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg
 
This page took 0.228594 seconds and 4 git commands to generate.