]> git.pld-linux.org Git - packages/enscript.git/blob - enscript.spec
- todo for more languages
[packages/enscript.git] / enscript.spec
1 # TODO
2 # - ruby hiliting from http://neugierig.org/software/ruby/
3 # - php hiliting from http://home.raxnet.net/article_viewcvs_php.php
4 Summary:        Converts plain ASCII to PostScript
5 Summary(es):    Convierte texto ASCII a postscript
6 Summary(pl):    Konwertuje czyste ASCII do PostScriptu
7 Summary(pt_BR): Converte texto ASCII para postscript
8 Name:           enscript
9 Version:        1.6.4
10 Release:        1
11 License:        GPL
12 Group:          Applications/Publishing
13 Source0:        http://www.iki.fi/mtr/genscript/%{name}-%{version}.tar.gz
14 # Source0-md5:  b5174b59e4a050fb462af5dbf28ebba3
15 Patch0:         %{name}-ac_fixes.patch
16 Patch1:         %{name}-am_fixes.patch
17 Patch2:         %{name}-mail.patch
18 Patch3:         %{name}-debian.patch
19 Patch4:         %{name}-info.patch
20 URL:            http://www.iki.fi/mtr/genscript/
21 BuildRequires:  autoconf >= 2.57
22 BuildRequires:  automake
23 BuildRequires:  gettext-devel
24 BuildRequires:  texinfo
25 Obsoletes:      nenscript
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Enscript is a print filter. It can take ASCII input and format it into
30 PostScript output. At the same time, it can also do nice
31 transformations like putting two ASCII pages on one physical page
32 (side by side) or changing fonts.
33
34 %description -l es
35 Convierte texto ASCII a postscript.
36
37 %description -l pl
38 Enscript jest filtrem wykorzystywanym przy drukowaniu. Na wej¶ciu
39 przyjmuje dane ASCII i konwertuje je na PostScript. Potrafi
40 równocze¶nie dokonaæ pewnych u¿ytecznych przekszta³ceñ, jak np.
41 umieszczenie dwóch stron ASCII na jednej stronie fizycznej (obok
42 siebie) czy zmiana czcionki.
43
44 %description -l pt_BR
45 O enscript é um filtro de impressão. Ele pega texto ascii e o formata
46 em postscript. Além disto, ele pode também fazer várias
47 transformações, como por exemplo colocar duas páginas ascii em uma
48 página física (lado a lado) ou modificar as fontes do texto.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53 %patch1 -p1
54 %patch2 -p1
55 %patch3 -p1
56 %patch4 -p1
57
58 %build
59 %{__gettextize}
60 %{__aclocal}
61 %{__autoheader}
62 %{__autoconf}
63 %{__automake}
64 %configure \
65         --with-media=A4 \
66         --sysconfdir=%{_sysconfdir}
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 ln -sf enscript $RPM_BUILD_ROOT%{_bindir}/nenscript
76
77 %find_lang %{name}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post
83 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
84
85 %postun
86 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
87
88 %files -f %{name}.lang
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog NEWS README README.ESCAPES THANKS TODO docs/FAQ.html
91 %config(noreplace) %{_sysconfdir}/enscript.cfg
92 %attr(755,root,root) %{_bindir}/diffpp
93 %attr(755,root,root) %{_bindir}/sliceprint
94 %attr(755,root,root) %{_bindir}/enscript
95 %attr(755,root,root) %{_bindir}/nenscript
96 %attr(755,root,root) %{_bindir}/mkafmmap
97 %attr(755,root,root) %{_bindir}/states
98 %attr(755,root,root) %{_bindir}/over
99 %{_datadir}/enscript
100 %{_mandir}/man1/*
101 %{_infodir}/*.info*
This page took 0.05174 seconds and 4 git commands to generate.