source: projects/specs/trunk/e/enscript/enscript-vl.spec @ 9276

Revision 9276, 6.6 KB checked in by inagaki, 9 years ago (diff)

2015-01-17 Ryoichi INAGAKI <ryo1@…>

  • enscript, libksba: updated
  • loudmouth: rebuilt


Line 
1Summary:        A plain ASCII to PostScript converter
2Summary(ja):    ASCII テキストを PostScript に変換するツール
3Name:           enscript
4Version:        1.6.6
5Release:        1%{?_dist_release}
6License:        GPLv3+
7Group:          Applications/Publishing
8URL:            http://www.gnu.org/software/enscript
9# Tarball exists nowhere. You have to obtain it via:
10# $ git clone git://git.savannah.gnu.org/enscript.git
11# $ git archive --format=tar --prefix=enscript-1.6.4/ v1.6.4 |gzip > enscript-1.6.4.tar.gz
12Source0:        enscript-%{version}.tar.gz
13Source1:        enscript-ruby-1.6.4.tar.gz
14#http://neugierig.org/software/ruby/ruby-enscript.tar.gz
15Source2:        enscript-php-1.6.4.st
16#http://home.raxnet.net/downloads/viewcvs/php.st
17
18# RH #61294
19Patch3:         enscript-1.6.1-locale.patch
20
21# RH #224548
22Patch8:         enscript-wrap_header.patch
23
24Patch10:        enscript-1.6.4-rh457720.patch
25Patch12:        enscript-rh477382.patch
26Patch13:        enscript-build.patch
27Patch14:        enscript-manfixes.patch
28Patch15:        enscript-bufpos-crash.patch
29
30BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
31Obsoletes:      nenscript < 1.13++-13
32Provides:       nenscript = 1.13++-13
33
34BuildRequires:  autoconf
35BuildRequires:  automake
36BuildRequires:  gettext
37BuildRequires:  gettext-devel
38BuildRequires:  texinfo
39
40Requires(preun): /sbin/install-info
41Requires(post): /sbin/install-info
42
43Vendor:         Project Vine
44Distribution:   Vine Linux
45
46%description
47GNU enscript is a free replacement for Adobe's Enscript
48program. Enscript converts ASCII files to PostScript(TM) and spools
49generated PostScript output to the specified printer or saves it to a
50file. Enscript can be extended to handle different output media and
51includes many options for customizing printouts.
52
53%description -l ja
54GNU enscript は Adobe Enscript に代わるフリーなプログラムです。
55Enscript は ASCII ファイルを PostScript(TM) に変換して、
56特定のプリンタに作成した PostScript ファイルをスプールしたり、
57ファイルに保存することができます。
58Enscript は異なる出力メディアを扱えるように拡張されており、
59プリント出力をカスタマイズするための多くのオプションを含んでいます。
60
61
62%prep
63%setup -q
64%patch3 -p1 -b .locale
65%patch8 -p1 -b .wrap_header
66%patch10 -p1 -b .rh457720
67%patch12 -p1 -b .rh477382
68%patch13 -p1 -b .build
69%patch14 -p1 -b .manfixes
70%patch15 -p1 -b .bufpos-crash
71
72%{__tar} -C states/hl -zxf %{SOURCE1} ruby.st
73install -pm 644 %{SOURCE2} states/hl/php.st
74
75
76%build
77autoreconf -fiv
78export CPPFLAGS='%{optflags} -DPROTOTYPES'
79%configure --with-media=A4
80make %{?_smp_mflags}
81
82
83%install
84rm -rf %{buildroot}
85mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
86make DESTDIR=%{buildroot} install
87rm -f %{buildroot}%{_datadir}/info/dir
88
89%find_lang %name
90
91# XXX note doubled %% in sed script below.
92(cd %{buildroot};find .%{_datadir}/enscript/* \! -type d) | \
93        sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list
94(cd %{buildroot};find .%{_datadir}/enscript/* -type d) | \
95        sed -e 's,^\.,,' | sed -e 's,^,%dir ,' >> share.list
96
97( cd %{buildroot}
98  ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
99)
100
101%find_lang %{name} %{name}.lang
102
103for all in README THANKS; do
104        iconv -f ISO88591 -t UTF8 < $all > $all.new
105        touch -r $all $all.new
106        mv $all.new $all
107done
108
109%clean
110rm -rf %{buildroot}
111
112%preun
113if [ $1 = 0 ]; then
114    [ -f %{_infodir}/%{name}.info.gz ] && \
115      /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
116        %{_infodir}/dir || :
117fi
118
119%post
120[ -f %{_infodir}/%{name}.info.gz ] && \
121  /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || :
122
123
124%files -f %{name}.lang -f share.list
125%defattr(-,root,root,-)
126%doc AUTHORS ChangeLog COPYING docs/FAQ.html NEWS README README.ESCAPES THANKS TODO
127%{_bindir}/*
128%{_mandir}/man1/*
129%dir %{_datadir}/enscript
130%{_infodir}/%{name}*
131%config(noreplace) %{_sysconfdir}/enscript.cfg
132
133
134%changelog
135* Fri Jan 16 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.6.6-1
136- updated to 1.6.6
137- added BR: texinfo
138- spec in UTF-8
139
140* Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.5.2-2
141- specify --with-media=A4 (Letter is rarely used in Japan)
142
143* Fri Mar 23 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.5.2-1
144- updated to 1.6.5.2
145- spec revamped based on Fedora
146
147* Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.1-28vl5
148- applied new versioning policy, spec in utf-8
149
150* Sun Jul 11 2004 Satoshi MACHINO <machino@vinelinux.org> 1.6.1-27vl1
151- build for VineLinux
152- added BuildPrereq and Requires
153- added japanese description
154
155* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
156- rebuilt
157
158* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
159- rebuilt
160
161* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
162- rebuild on all arches
163
164* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
165- automated rebuild
166
167* Sun May 26 2002 Tim Powers <timp@redhat.com>
168- automated rebuild
169
170* Wed May 22 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-20
171- Fix URL (bug #65278).
172
173* Wed Apr  3 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-19
174- Fix license (bug #62573).
175
176* Mon Mar 18 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-18
177- Fix locale issues (bug #61294).
178
179* Mon Feb 04 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-17
180- Rebuild in new environment.
181
182* Mon Jan 14 2002 Tim Waugh <twaugh@redhat.com> 1.6.1-16.2
183- Use tmpfile instead of tmpnam or tempnam (bug #57704).
184- Built for Red Hat Linux 7.x.
185
186* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 1.6.1-16
187- automated rebuild
188
189* Wed Dec 19 2001 Tim Waugh <twaugh@redhat.com> 1.6.1-15
190- Own %%{_datadir}/enscript directory (bug #56974).
191
192* Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com> 1.6.1-14
193- add optional mail paramater, closing bug #17750
194- patch from marques@cs.cornell.edu
195
196* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
197- Bump release + rebuild.
198
199* Tue Feb 27 2001 Trond Eivind Glomsrテクd <teg@redhat.com>
200- langify
201
202* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
203- automatic rebuild
204
205* Mon Jun 12 2000 Preston Brown <pbrown@redhat.com>
206- FHS paths
207
208* Thu Feb 03 2000 Preston Brown <pbrown@redhat.com>
209- rebuild to gzip man pages
210
211* Wed Mar 24 1999 Erik Troan <ewt@redhat.com>
212- marked /usr/share/enscript/font.map as a config file
213
214* Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
215- added documentation to the RPM
216
217* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
218- auto rebuild in the new build environment (release 5)
219
220* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
221- strip binaries.
222- include i18n locales.
223
224* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
225- Injected new description and group.
226
227* Wed Nov 11 1998 Preston Brown <pbrown@redhat.com>
228- translations ripped out, slight cleanup to build section.
229
230* Mon Nov 09 1998 Preston Brown <pbrown@redhat.com>
231- initial build of GNU enscript to replace nenscript.
Note: See TracBrowser for help on using the repository browser.