]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- BR: gperf
[packages/a2ps.git] / a2ps.spec
index b694801b04b55c42b591efdbcbf3e157a4ea8f33..2dcc2a9a116e642a9f3a0bbd4869f6385e42fe4e 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,14 +1,19 @@
+#
+# 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:       24
+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-md5: 0c8e0c31b08c14f7a7198ce967eb3281
+# 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-md5: fee1456d0e6e94af4fc5b5a1bb9687b7
 Source2:       ogonkify.1.pl
 Source1:       ftp://ftp.enst.fr/pub/unix/a2ps/i18n-fonts-0.1.tar.gz
 # Source1-md5: fee1456d0e6e94af4fc5b5a1bb9687b7
 Source2:       ogonkify.1.pl
@@ -22,10 +27,18 @@ Patch6:             %{name}-autoenc.patch
 Patch7:                %{name}-i18n.patch
 Patch8:                %{name}-ogonkify-xfig-fix.patch
 Patch9:                %{name}-pl.po-update.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: gettext-devel
 BuildRequires: automake
 BuildRequires: flex
 BuildRequires: gettext-devel
+BuildRequires: gperf
+BuildRequires: texinfo
 Requires(post,postun): /sbin/ldconfig
 Requires:      psutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Requires(post,postun): /sbin/ldconfig
 Requires:      psutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -40,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 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.
+%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 dokumentacja 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 -a1
+%setup -q -n %{name}-%{version} -a1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -86,6 +99,13 @@ Biblioteki statyczne do a2ps.
 %patch7 -p1
 %patch8 -p0
 %patch9 -p1
 %patch7 -p1
 %patch8 -p0
 %patch9 -p1
+%patch10 -p1
+# %patch11 -p1
+#%patch12 -p1
+%patch13 -p1
+#%patch14 -p1
+
+mv -f po/{no,nb}.po
 
 %build
 cp -f /usr/share/automake/config.* auxdir
 
 %build
 cp -f /usr/share/automake/config.* auxdir
@@ -107,8 +127,8 @@ install -d $RPM_BUILD_ROOT%{_datadir}/a2ps/{afm,fonts} \
 %{__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}
@@ -128,10 +148,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README THANKS
 %dir %{_sysconfdir}
 %defattr(644,root,root,755)
 %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 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*
@@ -157,10 +178,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
 
 %files devel
 %defattr(644,root,root,755)
-%{_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.070372 seconds and 4 git commands to generate.