1 | Summary: A plain ASCII to PostScript converter |
---|
2 | Name: enscript |
---|
3 | Version: 1.6.5.2 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | License: GPLv3+ |
---|
6 | Group: Applications/Publishing |
---|
7 | URL: http://www.gnu.org/software/enscript |
---|
8 | # Tarball exists nowhere. You have to obtain it via: |
---|
9 | # $ git clone git://git.savannah.gnu.org/enscript.git |
---|
10 | # $ git archive --format=tar --prefix=enscript-1.6.4/ v1.6.4 |gzip > enscript-1.6.4.tar.gz |
---|
11 | Source0: enscript-%{version}.tar.gz |
---|
12 | Source1: enscript-ruby-1.6.4.tar.gz |
---|
13 | #http://neugierig.org/software/ruby/ruby-enscript.tar.gz |
---|
14 | Source2: enscript-php-1.6.4.st |
---|
15 | #http://home.raxnet.net/downloads/viewcvs/php.st |
---|
16 | |
---|
17 | # RH #177336 |
---|
18 | Patch1: enscript-1.6.4-hilight.patch |
---|
19 | # RH #61294 |
---|
20 | Patch3: enscript-1.6.1-locale.patch |
---|
21 | |
---|
22 | # RH #224548 |
---|
23 | Patch8: enscript-wrap_header.patch |
---|
24 | |
---|
25 | Patch9: enscript-1.6.4-rh457719.patch |
---|
26 | Patch10: enscript-1.6.4-rh457720.patch |
---|
27 | Patch12: enscript-rh477382.patch |
---|
28 | Requires(preun): /sbin/install-info |
---|
29 | Requires(post): /sbin/install-info |
---|
30 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
31 | Obsoletes: nenscript < 1.13++-13 |
---|
32 | Provides: nenscript = 1.13++-13 |
---|
33 | |
---|
34 | BuildRequires: autoconf, automake, gettext |
---|
35 | BuildRequires: gettext-devel |
---|
36 | |
---|
37 | Vendor: Project Vine |
---|
38 | Distribution: Vine Linux |
---|
39 | |
---|
40 | |
---|
41 | %description |
---|
42 | GNU enscript is a free replacement for Adobe's Enscript |
---|
43 | program. Enscript converts ASCII files to PostScript(TM) and spools |
---|
44 | generated PostScript output to the specified printer or saves it to a |
---|
45 | file. Enscript can be extended to handle different output media and |
---|
46 | includes many options for customizing printouts. |
---|
47 | |
---|
48 | %description -l ja |
---|
49 | GNU enscript Í Adobe Enscript Éãíét[ÈvOÅ·B |
---|
50 | Enscript Í ASCII t@Cð PostScript(TM) ÉÏ·µÄA |
---|
51 | ÁèÌv^É쬵½ PostScript t@CðXv[µ½èA |
---|
52 | t@CÉÛ¶·é±ÆªÅ«Ü·B |
---|
53 | Enscript ÍÙÈéoÍfBAðµ¦éæ¤Ég£³êĨèA |
---|
54 | vgoÍðJX^}CY·é½ß̽ÌIvVðÜñŢܷB |
---|
55 | |
---|
56 | |
---|
57 | %prep |
---|
58 | %setup -q |
---|
59 | %patch1 -p1 -b .hilight |
---|
60 | %patch3 -p1 -b .locale |
---|
61 | %patch8 -p1 -b .wrap_header |
---|
62 | %patch9 -p1 -b .rh457719 |
---|
63 | %patch10 -p1 -b .rh457720 |
---|
64 | %patch12 -p1 -b .rh477382 |
---|
65 | |
---|
66 | %{__tar} -C states/hl -zxf %{SOURCE1} ruby.st |
---|
67 | install -pm 644 %{SOURCE2} states/hl/php.st |
---|
68 | |
---|
69 | |
---|
70 | %build |
---|
71 | autoreconf -fiv |
---|
72 | %configure --with-media=Letter |
---|
73 | make %{?_smp_mflags} |
---|
74 | |
---|
75 | |
---|
76 | %install |
---|
77 | rm -rf %{buildroot} |
---|
78 | mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES |
---|
79 | make DESTDIR=%{buildroot} install |
---|
80 | rm -f %{buildroot}%{_datadir}/info/dir |
---|
81 | |
---|
82 | %find_lang %name |
---|
83 | |
---|
84 | # XXX note doubled %% in sed script below. |
---|
85 | (cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \ |
---|
86 | sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list |
---|
87 | (cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \ |
---|
88 | sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list |
---|
89 | |
---|
90 | ( cd %{buildroot} |
---|
91 | ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript |
---|
92 | ) |
---|
93 | |
---|
94 | %find_lang %{name} %{name}.lang |
---|
95 | |
---|
96 | for all in README THANKS; do |
---|
97 | iconv -f ISO88591 -t UTF8 < $all > $all.new |
---|
98 | touch -r $all $all.new |
---|
99 | mv $all.new $all |
---|
100 | done |
---|
101 | |
---|
102 | %clean |
---|
103 | rm -rf %{buildroot} |
---|
104 | |
---|
105 | %preun |
---|
106 | if [ $1 = 0 ]; then |
---|
107 | [ -f %{_infodir}/%{name}.info.gz ] && \ |
---|
108 | /sbin/install-info --delete %{_infodir}/%{name}.info.gz \ |
---|
109 | %{_infodir}/dir || : |
---|
110 | fi |
---|
111 | |
---|
112 | %post |
---|
113 | [ -f %{_infodir}/%{name}.info.gz ] && \ |
---|
114 | /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : |
---|
115 | |
---|
116 | |
---|
117 | %files -f %{name}.lang -f share.list |
---|
118 | %defattr(-,root,root,-) |
---|
119 | %doc AUTHORS ChangeLog COPYING docs/FAQ.html NEWS README README.ESCAPES THANKS TODO |
---|
120 | %{_bindir}/* |
---|
121 | %{_mandir}/man1/* |
---|
122 | %dir %{_datadir}/enscript |
---|
123 | %{_infodir}/%{name}* |
---|
124 | %config(noreplace) %{_sysconfdir}/enscript.cfg |
---|
125 | |
---|
126 | |
---|
127 | %changelog |
---|
128 | * Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.5.2-1 |
---|
129 | - updated to 1.6.5.2 |
---|
130 | - spec revamped based on Fedora |
---|
131 | |
---|
132 | * Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.1-28vl5 |
---|
133 | - applied new versioning policy, spec in utf-8 |
---|
134 | |
---|
135 | * Sun Jul 11 2004 Satoshi MACHINO <machino@vinelinux.org> 1.6.1-27vl1 |
---|
136 | - build for VineLinux |
---|
137 | - added BuildPrereq and Requires |
---|
138 | - added japanese description |
---|
139 | |
---|
140 | * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> |
---|
141 | - rebuilt |
---|
142 | |
---|
143 | * Wed Jan 22 2003 Tim Powers <timp@redhat.com> |
---|
144 | - rebuilt |
---|
145 | |
---|
146 | * Wed Nov 20 2002 Tim Powers <timp@redhat.com> |
---|
147 | - rebuild on all arches |
---|
148 | |
---|
149 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
150 | - automated rebuild |
---|
151 | |
---|
152 | * Sun May 26 2002 Tim Powers <timp@redhat.com> |
---|
153 | - automated rebuild |
---|
154 | |
---|
155 | * Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-20 |
---|
156 | - Fix URL (bug #65278). |
---|
157 | |
---|
158 | * Wed Apr 3 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-19 |
---|
159 | - Fix license (bug #62573). |
---|
160 | |
---|
161 | * Mon Mar 18 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-18 |
---|
162 | - Fix locale issues (bug #61294). |
---|
163 | |
---|
164 | * Mon Feb 04 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-17 |
---|
165 | - Rebuild in new environment. |
---|
166 | |
---|
167 | * Mon Jan 14 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-16.2 |
---|
168 | - Use tmpfile instead of tmpnam or tempnam (bug #57704). |
---|
169 | - Built for Red Hat Linux 7.x. |
---|
170 | |
---|
171 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.6.1-16 |
---|
172 | - automated rebuild |
---|
173 | |
---|
174 | * Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15 |
---|
175 | - Own %%{_datadir}/enscript directory (bug #56974). |
---|
176 | |
---|
177 | * Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14 |
---|
178 | - add optional mail paramater, closing bug #17750 |
---|
179 | - patch from marques@cs.cornell.edu |
---|
180 | |
---|
181 | * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
---|
182 | - Bump release + rebuild. |
---|
183 | |
---|
184 | * Tue Feb 27 2001 Trond Eivind Glomsrød <teg@redhat.com> |
---|
185 | - langify |
---|
186 | |
---|
187 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
188 | - automatic rebuild |
---|
189 | |
---|
190 | * Mon Jun 12 2000 Preston Brown <pbrown@redhat.com> |
---|
191 | - FHS paths |
---|
192 | |
---|
193 | * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com> |
---|
194 | - rebuild to gzip man pages |
---|
195 | |
---|
196 | * Wed Mar 24 1999 Erik Troan <ewt@redhat.com> |
---|
197 | - marked /usr/share/enscript/font.map as a config file |
---|
198 | |
---|
199 | * Mon Mar 22 1999 Preston Brown <pbrown@redhat.com> |
---|
200 | - added documentation to the RPM |
---|
201 | |
---|
202 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
203 | - auto rebuild in the new build environment (release 5) |
---|
204 | |
---|
205 | * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com> |
---|
206 | - strip binaries. |
---|
207 | - include i18n locales. |
---|
208 | |
---|
209 | * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com> |
---|
210 | - Injected new description and group. |
---|
211 | |
---|
212 | * Wed Nov 11 1998 Preston Brown <pbrown@redhat.com> |
---|
213 | - translations ripped out, slight cleanup to build section. |
---|
214 | |
---|
215 | * Mon Nov 09 1998 Preston Brown <pbrown@redhat.com> |
---|
216 | - initial build of GNU enscript to replace nenscript. |
---|