]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- BR: gperf
[packages/a2ps.git] / a2ps.spec
index 54f9045edcf000171a4b862e09eae932df90c02b..2dcc2a9a116e642a9f3a0bbd4869f6385e42fe4e 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,14 +1,21 @@
+#
+# TODO:
+#      - do something with libpaper
+#
 Summary:       Text to Postscript filter
 Summary:       Text to Postscript filter
-Summary(ja):    ¥Æ¥­¥¹¥È¢ªPostScript ¥Õ¥£¥ë¥¿
-Summary(pl):   Filtr text/plain do Postscriptu
-Summary(zh_CN): ´¿Îı¾µ½Postscriptת»»Æ÷
+Summary(ja.UTF-8):     ã\83\86ã\82­ã\82¹ã\83\88â\86\92PostScript ã\83\95ã\82£ã\83«ã\82¿
+Summary(pl.UTF-8):     Filtr text/plain do Postscriptu
+Summary(zh_CN.UTF-8):  纯文本到Postscript转换器
 Name:          a2ps
 Name:          a2ps
-Version:       4.13b
-Release:       23
+Version:       4.14
+Release:       0.1
 License:       GPL
 Group:         Applications/Text
 License:       GPL
 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
+Source0:       http://ftp.gnu.org/gnu/a2ps/a2ps-4.14.tar.gz
+# Source0-md5: 781ac3d9b213fa3e1ed0d79f986dc8c7
 Source1:       ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
 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
 Source2:       ogonkify.1.pl
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-security.patch
@@ -19,9 +26,20 @@ Patch5:              %{name}-glibcpaper.patch
 Patch6:                %{name}-autoenc.patch
 Patch7:                %{name}-i18n.patch
 Patch8:                %{name}-ogonkify-xfig-fix.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
+Patch13:       %{name}-atan2.patch
+Patch14:       %{name}-psset.patch
 URL:           http://www.inf.enst.fr/~demaille/a2ps/
 URL:           http://www.inf.enst.fr/~demaille/a2ps/
+BuildConflicts:        libpaper-devel
+BuildRequires: automake
 BuildRequires: flex
 BuildRequires: flex
-Prereq:                /sbin/ldconfig
+BuildRequires: gettext-devel
+BuildRequires: gperf
+BuildRequires: texinfo
+Requires(post,postun): /sbin/ldconfig
 Requires:      psutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 Requires:      psutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -35,42 +53,42 @@ 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
-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
-przekazaæ przetwarzanie plików do innych programów (tak, ¿e mo¿na
-wszystko drukowaæ (DVI, PostScript) przy u¿yciu tego samego polecenia.
-Zawiera program ,,ogonkify'' poprawiaj±cy b³êdnie zakodowany
-PostScript zawieraj±cy polskie znaki.
+%description -l pl.UTF-8
+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
+przekazać przetwarzanie plików do innych programów (tak, że można
+wszystko drukować (DVI, PostScript) przy użyciu tego samego polecenia.
+Zawiera program ,,ogonkify'' poprawiający błędnie zakodowany
+PostScript zawierający polskie znaki.
 
 %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
+Summary(pl.UTF-8):     Pliki nagłówkowe i dokumentacja do a2ps
 Group:         Development/Libraries
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files and development documentation for a2ps.
 
 
 %description devel
 Header files and development documentation for a2ps.
 
-%description devel -l pl
-Pliki nag³ówkowe i dokumentacja do a2ps.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja do a2ps.
 
 %package static
 Summary:       a2ps static libraries
 
 %package static
 Summary:       a2ps static libraries
-Summary(pl):   Biblioteki statyczne do a2ps
+Summary(pl.UTF-8):     Biblioteki statyczne do a2ps
 Group:         Development/Libraries
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 a2ps static libraries.
 
 
 %description static
 a2ps static libraries.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Biblioteki statyczne do a2ps.
 
 %prep
 Biblioteki statyczne do a2ps.
 
 %prep
-%setup  -q -n %{name}-4.13 -a 1
+%setup -q -n %{name}-%{version} -a1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -80,8 +98,17 @@ Biblioteki statyczne do a2ps.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p0
 %patch6 -p1
 %patch7 -p1
 %patch8 -p0
+%patch9 -p1
+%patch10 -p1
+# %patch11 -p1
+#%patch12 -p1
+%patch13 -p1
+#%patch14 -p1
+
+mv -f po/{no,nb}.po
 
 %build
 
 %build
+cp -f /usr/share/automake/config.* auxdir
 %configure2_13 \
        --with-gnu-gettext \
        --with-medium=_glibc  \
 %configure2_13 \
        --with-gnu-gettext \
        --with-medium=_glibc  \
@@ -95,14 +122,13 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
        $RPM_BUILD_ROOT%{_mandir}/pl/man1
 
 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
+%{__perl} -pi -e 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' 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
+install i18n-fonts-0.1/afm/*.afm $RPM_BUILD_ROOT%{_datadir}/a2ps/afm
+install i18n-fonts-0.1/fonts/*.pfb $RPM_BUILD_ROOT%{_datadir}/a2ps/fonts
 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
 
 %find_lang %{name}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1
 
 %find_lang %{name}
@@ -121,13 +147,12 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS
-
 %dir %{_sysconfdir}
 %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 md5 mtime size) %{_sysconfdir}/a2ps.cfg
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/a2ps-site.cfg
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/liba2ps.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/liba2ps.so.1
 %{_mandir}/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
 %{_infodir}/a2ps*info*
 %{_mandir}/man1/*
 %lang(pl) %{_mandir}/pl/man1/*
 %{_infodir}/a2ps*info*
@@ -153,10 +178,10 @@ 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
-%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/liba2ps.la
+%attr(755,root,root) %{_libdir}/liba2ps.so
 %{_includedir}/*
 
 %files static
 %defattr(644,root,root,755)
 %{_includedir}/*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/liba2ps.a
This page took 0.0475 seconds and 4 git commands to generate.