]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- added malloc patch (remove unneccessary redeclaration of malloc - buildfix)
[packages/a2ps.git] / a2ps.spec
index 55fd8e64c8e85d404a362e602c561a072ed03956..780c1882ed0ff017d49a856b09a19417c339b710 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,12 +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:       27
 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
@@ -16,9 +20,15 @@ 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
 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)
 
@@ -33,7 +43,7 @@ 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
+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
@@ -44,9 +54,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
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files and development documentation for a2ps.
@@ -58,7 +68,7 @@ Pliki nag
 Summary:       a2ps static libraries
 Summary(pl):   Biblioteki statyczne do a2ps
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 a2ps static libraries.
@@ -67,7 +77,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
@@ -76,8 +86,15 @@ Biblioteki statyczne do a2ps.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p0
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+
+mv -f po/{no,nb}.po
 
 %build
+cp -f /usr/share/automake/config.* auxdir
 %configure2_13 \
        --with-gnu-gettext \
        --with-medium=_glibc  \
@@ -91,17 +108,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
@@ -117,12 +132,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/*
@@ -150,7 +163,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.037084 seconds and 4 git commands to generate.