]> git.pld-linux.org Git - packages/a2ps.git/blobdiff - a2ps.spec
- release 2,
[packages/a2ps.git] / a2ps.spec
index db51155d3b6600c1776fb622937d2ccf68b8e38e..d1da8044a25f0aede9237290b952b0aee14fe0ba 100644 (file)
--- a/a2ps.spec
+++ b/a2ps.spec
@@ -1,14 +1,17 @@
-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
+Summary:       Text to Postscript filter.
+Summary(pl):   Filtr text/plain do  Postscriptu
+Name:          a2ps
+Version:       4.12
+Release:       2
+Copyright:     GPL
+Group:         Utilities/Text
+Group(pl):     Narzêdzia/Tekst
+Source:                ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz
+Patch:         a2ps-info.patch
+URL:           http://www.inf.enst.fr/~demaille/a2ps/
+BuildRoot:     /tmp/%{name}-%{version}-root
+
+%define                _sysconfdir     /etc
 
 %description
 a2ps is a text to PostScript filter with pretty-printing capabilities.
@@ -29,24 +32,24 @@ u
 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.
 
 %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.
@@ -56,91 +59,79 @@ Biblioteki statyczne do a2ps.
 
 %prep
 %setup -q 
+%patch -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 \
+       --disable-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
-gzip -9nf $RPM_BUILD_ROOT/usr/info/*
-strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*so.*.*} || :
+make install DESTDIR=$RPM_BUILD_ROOT
 
-%clean
-rm -rf $RPM_BUILD_ROOT
+gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* \
+       $RPM_BUILD_ROOT%{_mandir}/man1/* \
+       AUTHORS ChangeLog NEWS README THANKS
+
+%find_lang %{name}
+
+%post
+/sbin/install-info %{_infodir}/a2ps.info.gz /etc/info-dir 
+/sbin/install-info %{_infodir}/ogonkify.info.gz /etc/info-dir 
+/sbin/ldconfig
+
+%preun
+if [ "$1" = "0" ]; then
+       /sbin/install-info --delete %{_infodir}/a2ps.info.gz /etc/info-dir
+       /sbin/install-info --delete %{_infodir}/ogonkify.info.gz /etc/info-dir
+fi
+
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc {AUTHORS,ChangeLog,NEWS,README,THANKS}.gz
 
-%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
+
+%attr(755,root,root) %{_bindir}/*
+#%attr(755,root,root) %{_libdir}/*.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
 
 %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*.so
+%{_includedir}/*
 
 %files static
-%attr(0644, root, root) /usr/lib/lib*.a
-
-%changelog
-* Thu Oct 15 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [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 <ziembor@faq-bot.ziembor.waw.pl>
-  [4.10.3-3]
-- based on Akim Demaille <demaille@inf.enst.fr> and 
-  Dave Whitinger <dave@whitinger.net> specs, 
-- added lang tag,
-- added pl spec translation,
-- more detailed %files,
-- default medium == A4,
-- default encoding == latin2.
-
-* Mon Aug 07 1998 Soos Peter <sp@osb.hu>
-- BuildRoot spec correction
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%clean
+rm -rf $RPM_BUILD_ROOT
This page took 0.040272 seconds and 4 git commands to generate.