X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=a2ps.spec;h=b84305fa42f8335f7e755b5afd44d54c334c6d35;hb=b370eb7b815794e461d963e3eb44120cc162cd16;hp=081688260a2c351cb8a4fc2e9f462659796a39c4;hpb=f9203e4870d602b18059691c499830c85a76a3f2;p=packages%2Fa2ps.git diff --git a/a2ps.spec b/a2ps.spec index 0816882..b84305f 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -1,168 +1,139 @@ -Summary: Text to Postscript filter. -Summary(pl): Filtr text/plain do Postscriptu -Name: a2ps -Version: 4.10.4 -Release: 5 -Copyright: GPL -Group: Utilities/Text -Group(pl): Narzêdzia/Tekst -Vendor: Akim Demaille -Source: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.bz2 -Patch0: a2ps-info.patch -URL: http://www.inf.enst.fr/~demaille/a2ps/ -BuildRoot: /tmp/%{name}-%{version}-root +Summary: Text to Postscript filter. +Summary(pl): Filtr text/plain do Postscriptu +Name: a2ps +Version: 4.12h +Release: 2 +License: GPL +Group: Utilities/Text +Group(pl): Narzêdzia/Tekst +Source: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tgz +Patch0: a2ps-info.patch +Prereq: /usr/sbin/fix-info-dir +Prereq: /sbin/ldconfig +URL: http://www.inf.enst.fr/~demaille/a2ps/ +BuildRoot: /tmp/%{name}-%{version}-root + +%define _sysconfdir /etc/a2ps %description -a2ps is a text to PostScript filter with pretty-printing capabilities. -It includes support for a wide number of programming languages, -encodings (ISO Latins, Cyrillic etc.), medias, and spoken languages -(for the interface). -It has also the ability to delegate the processing of some files to -other applications, letting you print DVI, PostScript etc. with the -very same interface. +a2ps is a text to PostScript filter with pretty-printing capabilities. It +includes support for a wide number of programming languages, encodings (ISO +Latins, Cyrillic etc.), medias, and spoken languages (for the interface). +It has also the ability to delegate the 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. +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. %package devel -Summary: Header files and development documentation for a2ps -Summary(pl): Pliki nag³ówkowe i dokunentacja do a2ps -Group: Libraries -Group(pl): Biblioteki -Requires: %{name} = %{version} +Summary: Header files and development documentation for a2ps +Summary(pl): Pliki nag³ówkowe i dokunentacja do a2ps +Group: Libraries +Group(pl): Biblioteki +Requires: %{name} = %{version} %description devel -Header files and development documentation for a2ps. +Header files and development documentation for a2ps. %description devel -l pl -Pliki nag³ówkowe i dokunentacja do a2ps. +Pliki nag³ówkowe i dokumentacja do a2ps. %package static -Summary: a2ps static libraries -Summary(pl): Biblioteki statyczne do a2ps -Group: Libraries -Group(pl): Biblioteki -Requires: %{name}-devel = %{version} +Summary: a2ps static libraries +Summary(pl): Biblioteki statyczne do a2ps +Group: Libraries +Group(pl): Biblioteki +Requires: %{name}-devel = %{version} %description static -a2ps static libraries. +a2ps static libraries. %description static -l pl -Biblioteki statyczne do a2ps. +Biblioteki statyczne do a2ps. %prep -%setup -q +%setup -q %patch0 -p1 %build - -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure \ - --with-included-gettext \ - --prefix=/usr \ - --sysconfdir=/etc \ +LDFLAGS="-s"; export LDFLAGS +%configure \ + --with-gnu-gettext \ --with-medium=A4 \ - --with-encoding=latin1 - + --with-encoding=latin1 \ + --enable-shared make %install rm -rf $RPM_BUILD_ROOT -perl -pe 's/^lispdir = $/lispdir = {prefix}\/lib/g' contrib/emacs/Makefile > tmp + +perl -pe 's/^lispdir = $/lispdir = \$(prefix)\/lib\/emacs\/site-lisp/g' contrib/emacs/Makefile >tmp mv tmp contrib/emacs/Makefile -make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install +make install DESTDIR=$RPM_BUILD_ROOT -strip $RPM_BUILD_ROOT/usr/lib/lib*so.*.* -gzip -9nf $RPM_BUILD_ROOT/usr/{info/*,man/man1/*} +strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* -%post -/sbin/install-info /usr/info/a2ps.info.gz /etc/info-dir -/sbin/install-info /usr/info/ogonkify.info.gz /etc/info-dir +gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \ + $RPM_BUILD_ROOT%{_mandir}/man1/* \ + AUTHORS ChangeLog NEWS README THANKS -%preun -if [ $1 = 0 ]; then - /sbin/install-info --delete /usr/info/a2ps.info.gz /etc/info-dir - /sbin/install-info --delete /usr/info/ogonkify.info.gz /etc/info-dir -fi +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files -%defattr(644, root, root, 755) -%doc AUTHORS ChangeLog NEWS README THANKS -%config(noreplace) %verify(not size mtime md5) /etc/a2ps.cfg -%attr(755, root, root) /usr/bin/* -%attr(755, root, root) /usr/lib/lib*.so.*.* -%attr(644, root, man) /usr/man/man1/* -/usr/info/a2ps*info* -/usr/info/ogonkify*info* -%dir /usr/share/a2ps -%dir /usr/share/a2ps/afm -/usr/share/a2ps/afm/*.afm -%attr(755, root, root) /usr/share/a2ps/afm/*.sh -/usr/share/a2ps/encoding -/usr/share/a2ps/fonts -/usr/share/a2ps/ogonkify -/usr/share/a2ps/ppd -/usr/share/a2ps/ps -/usr/share/a2ps/sheets - -%lang(ca) /usr/share/locale/ca/LC_MESSAGES/a2ps.mo -%lang(cs) /usr/share/locale/cs/LC_MESSAGES/a2ps.mo -%lang(da) /usr/share/locale/da/LC_MESSAGES/a2ps.mo -%lang(de) /usr/share/locale/de/LC_MESSAGES/a2ps.mo -%lang(es) /usr/share/locale/es/LC_MESSAGES/a2ps.mo -%lang(fr) /usr/share/locale/fr/LC_MESSAGES/a2ps.mo -%lang(it) /usr/share/locale/it/LC_MESSAGES/a2ps.mo -%lang(ko) /usr/share/locale/ko/LC_MESSAGES/a2ps.mo -%lang(nl) /usr/share/locale/nl/LC_MESSAGES/a2ps.mo -%lang(pl) /usr/share/locale/pl/LC_MESSAGES/a2ps.mo -%lang(pt) /usr/share/locale/pt/LC_MESSAGES/a2ps.mo -%lang(ru) /usr/share/locale/ru/LC_MESSAGES/a2ps.mo -%lang(sl) /usr/share/locale/sl/LC_MESSAGES/a2ps.mo -%lang(sv) /usr/share/locale/sv/LC_MESSAGES/a2ps.mo -%lang(tr) /usr/share/locale/tr/LC_MESSAGES/a2ps.mo +%post +/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +/sbin/ldconfig + +%postun +/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 +/sbin/ldconfig + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz + +%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/* +%{_infodir}/a2ps*info* +%{_infodir}/ogonkify*info* + +%dir %{_datadir}/a2ps/afm +%{_datadir}/a2ps/afm/*.afm +%{_datadir}/a2ps/afm/*.map +%attr(755,root,root) %{_datadir}/a2ps/afm/*.sh + +%{_datadir}/a2ps/encoding +%{_datadir}/a2ps/fonts +%{_datadir}/a2ps/ppd +%{_datadir}/a2ps/ps +%{_datadir}/a2ps/sheets + +%dir %{_datadir}/ogonkify +%{_datadir}/ogonkify/*.enc +%{_datadir}/ogonkify/*.ps +%{_datadir}/ogonkify/afm +%{_datadir}/ogonkify/fonts %files devel -%defattr(644, root, root, 755) -%attr(755, root, root) /usr/lib/lib*.so -/usr/include/* +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.la +%attr(755,root,root) %{_libdir}/lib*.so +%{_includedir}/* %files static -%attr(0644, root, root) /usr/lib/lib*.a - -%changelog -* Mon Dec 28 1998 Tomasz K³oczko - [4.10.3-5] -- added %post, %postun with {un}registering info pages (added - a2ps-info.patch), -- added gzipping man pages. - -* Thu Oct 15 1998 Tomasz K³oczko - [4.10.3-4] -- simplification in files, -- removed regexp info pages, -- added stripping shared libraries, -- changed default encoding to latin1, -- added devel subpackage. - -* Mon Sep 07 1998 Ziemek Borowski - [4.10.3-3] -- based on Akim Demaille and - Dave Whitinger specs, -- added lang tag, -- added pl spec translation, -- more detailed %files, -- default medium == A4, -- default encoding == latin2. - -* Mon Aug 07 1998 Soos Peter -- BuildRoot spec correction +%defattr(644,root,root,755) +%{_libdir}/lib*.a