]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- BR: texinfo
[packages/a2ps.git] / a2ps.spec
index 8aa2c91fad2b8c5fcdc023d1ca1e03cb031dcda1..ca7a58d685032998204b3b97ab95236fc5a5a186 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,15 +1,16 @@
 Summary:       Text to Postscript filter
+Summary(ja):   ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
 Summary(pl):   Filtr text/plain do Postscriptu
+Summary(zh_CN):        ´¿Îı¾µ½Postscriptת»»Æ÷
 Name:          a2ps
 Version:       4.13b
-Release:       20
+Release:       28
 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
@@ -19,9 +20,17 @@ 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
+Patch10:       %{name}-locale-names.patch
+Patch11:       %{name}-malloc.patch
+Patch12:       %{name}-CAN-2004-1170.patch
 URL:           http://www.inf.enst.fr/~demaille/a2ps/
+BuildRequires: automake
 BuildRequires: flex
-Prereq:                /sbin/ldconfig
+BuildRequires: gettext-devel
+BuildRequires: texinfo
+Requires(post,postun): /sbin/ldconfig
 Requires:      psutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -35,8 +44,8 @@ encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages
 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
@@ -47,16 +56,9 @@ PostScript zawieraj
 
 %package devel
 Summary:       Header files and development documentation for a2ps
-Summary(pl):   Pliki nag³ówkowe i dokunentacja do a2ps
+Summary(pl):   Pliki nag³ówkowe i dokumentacja do a2ps
 Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(es):     Desarrollo/Bibliotecas
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Group(pt_BR):  Desenvolvimento/Bibliotecas
-Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files and development documentation for a2ps.
@@ -68,14 +70,7 @@ Pliki nag
 Summary:       a2ps static libraries
 Summary(pl):   Biblioteki statyczne do a2ps
 Group:         Development/Libraries
-Group(de):     Entwicklung/Libraries
-Group(es):     Desarrollo/Bibliotecas
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
-Group(pt_BR):  Desenvolvimento/Bibliotecas
-Group(ru):     òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
-Group(uk):     òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 a2ps static libraries.
@@ -84,7 +79,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
@@ -93,8 +88,16 @@ Biblioteki statyczne do a2ps.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p0
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+
+mv -f po/{no,nb}.po
 
 %build
+cp -f /usr/share/automake/config.* auxdir
 %configure2_13 \
        --with-gnu-gettext \
        --with-medium=_glibc  \
@@ -108,17 +111,15 @@ 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
-
-mv -f tmp contrib/emacs/Makefile
-
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile
 
-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}
 
 %clean
@@ -134,12 +135,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %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/*
@@ -167,7 +166,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %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}/*
 
This page took 0.04228 seconds and 4 git commands to generate.