Summary: Text to Postscript filter
-Summary(pl): Filtr text/plain do Postscriptu
+Summary(ja): ¥Æ¥¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
+Summary(pl): Filtr text/plain do Postscriptu
+Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷
Name: a2ps
Version: 4.13b
-Release: 17
+Release: 24
License: GPL
Group: Applications/Text
-Group(de): Applikationen/Text
-Group(fr): Utilitaires/Texte
-Group(pl): Aplikacje/Tekst
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
+Patch1: %{name}-security.patch
Patch2: %{name}-etc.patch
Patch3: %{name}-flex.patch
Patch4: %{name}-conf.patch
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)
processing of some files to other applications, letting you print DVI,
PostScript etc. with the very same interface.
-%description -l pl
-A2ps jest programem pozwalajaj±cym na ³adne drukowanie plików
+%description -l pl
+A2ps jest programem pozwalaj±cym na ³adne drukowanie plików
tekstowych w PostScript. Posiada wsparcie dla wielu ró¿nych jêzyków
programowania, zestawów znaków (ISO Latins, Cyrilica etc.), wielko¶ci
papieru, i jêzyków komunikacji z u¿ytkownikiem. Potrafi tak¿e
%package devel
Summary: Header files and development documentation for a2ps
-Summary(pl): Pliki nag³ówkowe i dokunentacja do a2ps
-Group: Libraries
-Group(de): Libraries
-Group(es): Bibliotecas
-Group(fr): Librairies
-Group(pl): Biblioteki
+Summary(pl): Pliki nag³ówkowe i dokumentacja do a2ps
+Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
%package static
Summary: a2ps static libraries
Summary(pl): Biblioteki statyczne do a2ps
-Group: Libraries
-Group(de): Libraries
-Group(es): Bibliotecas
-Group(fr): Librairies
-Group(pl): Biblioteki
+Group: Development/Libraries
Requires: %{name}-devel = %{version}
%description static
Biblioteki statyczne do a2ps.
%prep
-%setup -q -n %{name}-4.13 -a 1
+%setup -q -n %{name}-4.13 -a1
%patch0 -p1
-#%patch1 -p1
+%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p0
+%patch9 -p1
%build
+cp -f /usr/share/automake/config.* auxdir
%configure2_13 \
--with-gnu-gettext \
--with-medium=_glibc \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts}
+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
-
-gzip -9nf AUTHORS ChangeLog NEWS README THANKS
+%{__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
+install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
%find_lang %{name}
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
-
+%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/*
+%lang(pl) %{_mandir}/pl/man1/*
%{_infodir}/a2ps*info*
%{_infodir}/ogonkify*info*
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
%attr(755,root,root) %{_libdir}/lib*.so
%{_includedir}/*