]>
Commit | Line | Data |
---|---|---|
e6c0ee88 ER |
1 | # TODO |
2 | # - ruby hiliting from http://neugierig.org/software/ruby/ | |
cbe1370e | 3 | Summary: Converts plain ASCII to PostScript |
cd13b997 ER |
4 | Summary(es.UTF-8): Convierte texto ASCII a postscript |
5 | Summary(pl.UTF-8): Konwertuje czyste ASCII do PostScriptu | |
6 | Summary(pt_BR.UTF-8): Converte texto ASCII para postscript | |
f94b0664 | 7 | Name: enscript |
57ec0071 | 8 | Version: 1.6.4 |
1baa4865 | 9 | Release: 3 |
bd0f48ca | 10 | License: GPL |
f94b0664 | 11 | Group: Applications/Publishing |
8f53802b | 12 | Source0: http://www.iki.fi/mtr/genscript/%{name}-%{version}.tar.gz |
0e6de429 | 13 | # Source0-md5: b5174b59e4a050fb462af5dbf28ebba3 |
3b2f230b | 14 | Patch0: %{name}-ac_fixes.patch |
15 | Patch1: %{name}-am_fixes.patch | |
16 | Patch2: %{name}-mail.patch | |
17 | Patch3: %{name}-debian.patch | |
e965364f | 18 | Patch4: %{name}-info.patch |
7bbc5eda | 19 | Patch5: %{name}-php.patch |
8f53802b | 20 | URL: http://www.iki.fi/mtr/genscript/ |
a45f9939 PG |
21 | # patches from RH packages: |
22 | # http://securitytracker.com/alerts/2008/Dec/1021405.html | |
23 | BuildRequires: security(CVE-2008-3863) | |
24 | BuildRequires: security(CVE-2008-4306) | |
25 | BuildRequires: security(CVE-2008-5078) | |
e965364f | 26 | BuildRequires: autoconf >= 2.57 |
cbe1370e JB |
27 | BuildRequires: automake |
28 | BuildRequires: gettext-devel | |
fc1968ba | 29 | BuildRequires: texinfo |
f94b0664 | 30 | Obsoletes: nenscript |
fc1968ba | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ea15429e JR |
32 | |
33 | %description | |
3b23ea9b | 34 | Enscript is a print filter. It can take ASCII input and format it into |
35 | PostScript output. At the same time, it can also do nice | |
36 | transformations like putting two ASCII pages on one physical page | |
37 | (side by side) or changing fonts. | |
ea15429e | 38 | |
7e90a511 | 39 | %description -l es.UTF-8 |
20680ce9 | 40 | Convierte texto ASCII a postscript. |
41 | ||
7e90a511 JR |
42 | %description -l pl.UTF-8 |
43 | Enscript jest filtrem wykorzystywanym przy drukowaniu. Na wejściu | |
3b23ea9b | 44 | przyjmuje dane ASCII i konwertuje je na PostScript. Potrafi |
7e90a511 JR |
45 | równocześnie dokonać pewnych użytecznych przekształceń, jak np. |
46 | umieszczenie dwóch stron ASCII na jednej stronie fizycznej (obok | |
3b23ea9b | 47 | siebie) czy zmiana czcionki. |
053541c1 | 48 | |
7e90a511 JR |
49 | %description -l pt_BR.UTF-8 |
50 | O enscript é um filtro de impressão. Ele pega texto ascii e o formata | |
51 | em postscript. Além disto, ele pode também fazer várias | |
52 | transformações, como por exemplo colocar duas páginas ascii em uma | |
53 | página física (lado a lado) ou modificar as fontes do texto. | |
20680ce9 | 54 | |
ea15429e JR |
55 | %prep |
56 | %setup -q | |
e965364f JB |
57 | %patch0 -p1 |
58 | %patch1 -p1 | |
59 | %patch2 -p1 | |
60 | %patch3 -p1 | |
61 | %patch4 -p1 | |
7bbc5eda | 62 | %patch5 -p1 |
ea15429e JR |
63 | |
64 | %build | |
24b165b1 | 65 | %{__gettextize} |
8a682913 | 66 | %{__aclocal} |
67 | %{__autoheader} | |
43b4d41a | 68 | %{__autoconf} |
69 | %{__automake} | |
af40ef8f PG |
70 | %configure \ |
71 | --with-media=A4 \ | |
72 | --sysconfdir=%{_sysconfdir} | |
bd770a36 | 73 | %{__make} |
ea15429e JR |
74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
ea15429e | 77 | |
d5d186e2 PG |
78 | %{__make} install \ |
79 | DESTDIR=$RPM_BUILD_ROOT | |
ea15429e | 80 | |
cbe1370e | 81 | ln -sf enscript $RPM_BUILD_ROOT%{_bindir}/nenscript |
ea15429e | 82 | |
f94b0664 | 83 | %find_lang %{name} |
7bbc5eda | 84 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
ea15429e | 85 | |
f94b0664 JR |
86 | %clean |
87 | rm -rf $RPM_BUILD_ROOT | |
ea15429e | 88 | |
bae05ffb ER |
89 | %post -p /sbin/postshell |
90 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
e965364f | 91 | |
bae05ffb ER |
92 | %postun -p /sbin/postshell |
93 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
e965364f | 94 | |
f94b0664 JR |
95 | %files -f %{name}.lang |
96 | %defattr(644,root,root,755) | |
e965364f | 97 | %doc AUTHORS ChangeLog NEWS README README.ESCAPES THANKS TODO docs/FAQ.html |
3b23ea9b | 98 | %config(noreplace) %{_sysconfdir}/enscript.cfg |
f94b0664 JR |
99 | %attr(755,root,root) %{_bindir}/diffpp |
100 | %attr(755,root,root) %{_bindir}/sliceprint | |
101 | %attr(755,root,root) %{_bindir}/enscript | |
102 | %attr(755,root,root) %{_bindir}/nenscript | |
103 | %attr(755,root,root) %{_bindir}/mkafmmap | |
104 | %attr(755,root,root) %{_bindir}/states | |
105 | %attr(755,root,root) %{_bindir}/over | |
20680ce9 | 106 | %{_datadir}/enscript |
f94b0664 | 107 | %{_mandir}/man1/* |
e965364f | 108 | %{_infodir}/*.info* |