From 49e058ba2e6b40330c139b450a30e9c107136668 Mon Sep 17 00:00:00 2001 From: kloczek Date: Thu, 15 Oct 1998 23:15:16 +0000 Subject: [PATCH] - simplification in files, - removed regexp info pages, - added striping shared libraries, - changed default encoding to latin1, - added devel subpackage. By Ziemek Borowski : - based on Akim Demaille and Dave Whitinger specs, - added lang tag, - added pl spec translation, - more detailed %files, - default medium == A4, - default encoding == latin2. Changed files: a2ps.spec -> 1.1 --- a2ps.spec | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 a2ps.spec diff --git a/a2ps.spec b/a2ps.spec new file mode 100644 index 0000000..089dd46 --- /dev/null +++ b/a2ps.spec @@ -0,0 +1,146 @@ +Summary: Text to Postscript filter. +Summary(pl): Filtr text/plain do Postscriptu +Name: a2ps +Version: 4.10.4 +Release: 4 +Copyright: GPL +Group: Utilities/Text +Source: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.bz2 +Url: http://www.inf.enst.fr/~demaille/a2ps/ +Vendor: Akim Demaille +BuildRoot: /tmp/%{name}-%{version}-root + +%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. + +%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. + +%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} + +%description devel +Header files and development documentation for a2ps. + +%description devel -l pl +Pliki nag³ówkowe i dokunentacja do a2ps. + +%package static +Summary: a2ps static libraries +Summary(pl): Biblioteki statyczne do a2ps +Group: Libraries +Group(pl): Biblioteki +Requires: %{name}-devel = %{version} + +%description static +a2ps static libraries. + +%description static -l pl +Biblioteki statyczne do a2ps. + +%prep +%setup -q + +%build + +CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" ./configure \ + --with-included-gettext \ + --prefix=/usr --sysconfdir=/etc \ + --with-medium=A4 \ + --with-encoding=latin1 + +make + +%install +rm -rf $RPM_BUILD_ROOT +perl -pe 's/^lispdir = $/lispdir = {prefix}\/lib/g' contrib/emacs/Makefile > tmp + +mv tmp contrib/emacs/Makefile +make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install +gzip -9nf $RPM_BUILD_ROOT/usr/info/* +strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*so.*.*} || : + +%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 + +%files devel +%defattr(644, root, root, 755) +%attr(755, root, root) /usr/lib/lib*.so +/usr/include/* + +%files static +%attr(0644, root, root) /usr/lib/lib*.a + +%changelog +* Thu Oct 15 1998 Tomasz K³oczko + [4.10.3-4] +- simplification in files, +- removed regexp info pages, +- added striping 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 -- 2.44.0