]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- r25
[packages/a2ps.git] / a2ps.spec
index 512e13fcab47d48c047f42ee5116d1deb7e79f34..62f32ab11c3b69d0cb85c4ecc2802d450160b0db 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,16 +1,33 @@
-Summary:       Text to Postscript filter.
-Summary(pl):   Filtr text/plain do  Postscriptu
+Summary:       Text to Postscript filter
+Summary(ja):   ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
+Summary(pl):   Filtr text/plain do Postscriptu
+Summary(zh_CN):        ´¿Îı¾µ½Postscriptת»»Æ÷
 Name:          a2ps
 Version:       4.13b
 Name:          a2ps
 Version:       4.13b
-Release:       1
+Release:       25
 License:       GPL
 License:       GPL
-Group:         Utilities/Text
-Group(fr):     Utilitaires/Texte
-Group(pl):     Narzêdzia/Tekst
+Group:         Applications/Text
 Source0:       ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
 Source0:       ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
-Patch0:                a2ps-info.patch
-Prereq:                /sbin/ldconfig
+# 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
+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/
 URL:           http://www.inf.enst.fr/~demaille/a2ps/
+BuildRequires: automake
+BuildRequires: flex
+BuildRequires: gettext-devel
+Requires(post,postun): /sbin/ldconfig
+Requires:      psutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/a2ps
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/a2ps
@@ -23,8 +40,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.
 
 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
 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
@@ -35,10 +52,8 @@ PostScript zawieraj
 
 %package devel
 Summary:       Header files and development documentation for a2ps
 
 %package devel
 Summary:       Header files and development documentation for a2ps
-Summary(pl):   Pliki nag³ówkowe i dokunentacja do a2ps
-Group:         Libraries
-Group(fr):     Librairies
-Group(pl):     Biblioteki
+Summary(pl):   Pliki nag³ówkowe i dokumentacja do a2ps
+Group:         Development/Libraries
 Requires:      %{name} = %{version}
 
 %description devel
 Requires:      %{name} = %{version}
 
 %description devel
@@ -50,9 +65,7 @@ Pliki nag
 %package static
 Summary:       a2ps static libraries
 Summary(pl):   Biblioteki statyczne do a2ps
 %package static
 Summary:       a2ps static libraries
 Summary(pl):   Biblioteki statyczne do a2ps
-Group:         Libraries
-Group(fr):     Librairies
-Group(pl):     Biblioteki
+Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}
 
 %description static
 Requires:      %{name}-devel = %{version}
 
 %description static
@@ -62,31 +75,41 @@ a2ps static libraries.
 Biblioteki statyczne do a2ps.
 
 %prep
 Biblioteki statyczne do a2ps.
 
 %prep
-%setup  -q -n %{name}-4.13 
+%setup -q -n %{name}-4.13 -a1
 %patch0 -p1
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p0
+%patch9 -p1
 
 %build
 
 %build
-LDFLAGS="-s"; export LDFLAGS
-%configure \
+cp -f /usr/share/automake/config.* auxdir
+%configure2_13 \
        --with-gnu-gettext \
        --with-gnu-gettext \
-       --with-medium=A4  \
+       --with-medium=_glibc  \
        --with-encoding=latin1 \
        --with-encoding=latin1 \
-       --enable-shared
-make
+       --enable-shared \
+       --enable-kanji
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 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 tmp contrib/emacs/Makefile
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
-
-gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
-       $RPM_BUILD_ROOT%{_mandir}/man1/* \
-       AUTHORS ChangeLog NEWS README THANKS
+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}
 
 
 %find_lang %{name}
 
@@ -94,26 +117,27 @@ gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
 rm -rf $RPM_BUILD_ROOT
 
 %post
 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
 /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)
 /sbin/ldconfig
 
 %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
 %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/*
 %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*
 
 %{_infodir}/a2ps*info*
 %{_infodir}/ogonkify*info*
 
+%dir %{_datadir}/a2ps
 %dir %{_datadir}/a2ps/afm
 %{_datadir}/a2ps/afm/*.afm
 %{_datadir}/a2ps/afm/*.map
 %dir %{_datadir}/a2ps/afm
 %{_datadir}/a2ps/afm/*.afm
 %{_datadir}/a2ps/afm/*.map
@@ -133,7 +157,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
 
 %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}/*
 
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_includedir}/*
 
This page took 0.038864 seconds and 4 git commands to generate.