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