]> git.pld-linux.org Git - packages/enscript.git/blobdiff - enscript.spec
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep
[packages/enscript.git] / enscript.spec
index d536c6793a6eccabd8b47e870da220fd1bff6301..bc0d7c58d20a04fa1aeaf95257e6a24f8d773dd3 100644 (file)
@@ -1,13 +1,12 @@
 # TODO
 # - ruby hiliting from http://neugierig.org/software/ruby/
-# - php hiliting from http://home.raxnet.net/article_viewcvs_php.php
 Summary:       Converts plain ASCII to PostScript
-Summary(es):   Convierte texto ASCII a postscript
-Summary(pl):   Konwertuje czyste ASCII do PostScriptu
-Summary(pt_BR):        Converte texto ASCII para postscript
+Summary(es.UTF-8):     Convierte texto ASCII a postscript
+Summary(pl.UTF-8):     Konwertuje czyste ASCII do PostScriptu
+Summary(pt_BR.UTF-8):  Converte texto ASCII para postscript
 Name:          enscript
 Version:       1.6.4
-Release:       1
+Release:       3
 License:       GPL
 Group:         Applications/Publishing
 Source0:       http://www.iki.fi/mtr/genscript/%{name}-%{version}.tar.gz
@@ -17,6 +16,7 @@ Patch1:               %{name}-am_fixes.patch
 Patch2:                %{name}-mail.patch
 Patch3:                %{name}-debian.patch
 Patch4:                %{name}-info.patch
+Patch5:                %{name}-php.patch
 URL:           http://www.iki.fi/mtr/genscript/
 BuildRequires: autoconf >= 2.57
 BuildRequires: automake
@@ -31,21 +31,21 @@ PostScript output. At the same time, it can also do nice
 transformations like putting two ASCII pages on one physical page
 (side by side) or changing fonts.
 
-%description -l es
+%description -l es.UTF-8
 Convierte texto ASCII a postscript.
 
-%description -l pl
-Enscript jest filtrem wykorzystywanym przy drukowaniu. Na wejciu
+%description -l pl.UTF-8
+Enscript jest filtrem wykorzystywanym przy drukowaniu. Na wejściu
 przyjmuje dane ASCII i konwertuje je na PostScript. Potrafi
-równocze¶nie dokonaæ pewnych u¿ytecznych przekszta³ceñ, jak np.
-umieszczenie dwóch stron ASCII na jednej stronie fizycznej (obok
+równocześnie dokonać pewnych użytecznych przekształceń, jak np.
+umieszczenie dwóch stron ASCII na jednej stronie fizycznej (obok
 siebie) czy zmiana czcionki.
 
-%description -l pt_BR
-O enscript é um filtro de impressão. Ele pega texto ascii e o formata
-em postscript. Além disto, ele pode também fazer várias
-transformações, como por exemplo colocar duas páginas ascii em uma
-página física (lado a lado) ou modificar as fontes do texto.
+%description -l pt_BR.UTF-8
+O enscript é um filtro de impressão. Ele pega texto ascii e o formata
+em postscript. Além disto, ele pode também fazer várias
+transformações, como por exemplo colocar duas páginas ascii em uma
+página física (lado a lado) ou modificar as fontes do texto.
 
 %prep
 %setup -q
@@ -54,6 +54,7 @@ p
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{__gettextize}
@@ -75,15 +76,16 @@ rm -rf $RPM_BUILD_ROOT
 ln -sf enscript $RPM_BUILD_ROOT%{_bindir}/nenscript
 
 %find_lang %{name}
+rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post  -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%postun        -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
This page took 0.080381 seconds and 4 git commands to generate.