X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=a2ps.spec;h=b694801b04b55c42b591efdbcbf3e157a4ea8f33;hb=8bfe0f1c33d08606891e0ec326b639d92e32c6ff;hp=e15e494260f4a8980f94c42c4050c1a06f75b719;hpb=1f6f67eb743bf3ed05b974f50cd51fccc59b482b;p=packages%2Fa2ps.git diff --git a/a2ps.spec b/a2ps.spec index e15e494..b694801 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -1,14 +1,16 @@ Summary: Text to Postscript filter -Summary(ja): ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿ +Summary(ja): ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿ Summary(pl): Filtr text/plain do Postscriptu -Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷ +Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷ Name: a2ps Version: 4.13b -Release: 23 +Release: 24 License: GPL Group: Applications/Text Source0: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz +# Source0-md5: 0c8e0c31b08c14f7a7198ce967eb3281 Source1: ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz +# Source1-md5: fee1456d0e6e94af4fc5b5a1bb9687b7 Source2: ogonkify.1.pl Patch0: %{name}-info.patch Patch1: %{name}-security.patch @@ -19,9 +21,12 @@ Patch5: %{name}-glibcpaper.patch Patch6: %{name}-autoenc.patch Patch7: %{name}-i18n.patch Patch8: %{name}-ogonkify-xfig-fix.patch +Patch9: %{name}-pl.po-update.patch URL: http://www.inf.enst.fr/~demaille/a2ps/ +BuildRequires: automake BuildRequires: flex -Prereq: /sbin/ldconfig +BuildRequires: gettext-devel +Requires(post,postun): /sbin/ldconfig Requires: psutils BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -70,7 +75,7 @@ a2ps static libraries. Biblioteki statyczne do a2ps. %prep -%setup -q -n %{name}-4.13 -a 1 +%setup -q -n %{name}-4.13 -a1 %patch0 -p1 %patch1 -p1 %patch2 -p1 @@ -80,8 +85,10 @@ Biblioteki statyczne do a2ps. %patch6 -p1 %patch7 -p1 %patch8 -p0 +%patch9 -p1 %build +cp -f /usr/share/automake/config.* auxdir %configure2_13 \ --with-gnu-gettext \ --with-medium=_glibc \ @@ -95,11 +102,10 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \ $RPM_BUILD_ROOT%{_mandir}/pl/man1 -perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp +%{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile -mv -f tmp contrib/emacs/Makefile - -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT install i18n-fonts-0.1/afm/*.afm %{buildroot}%{_datadir}/a2ps/afm install i18n-fonts-0.1/fonts/*.pfb %{buildroot}%{_datadir}/a2ps/fonts @@ -121,11 +127,9 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README THANKS - %dir %{_sysconfdir} %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps.cfg %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/a2ps-site.cfg - %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_libdir}/lib*.so.*.* %{_mandir}/man1/*