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

Revision 5969, 6.0 KB checked in by shaolin, 12 years ago (diff)
  • enscript: updated to 1.6.5.2; spec revamp; default paper size to A4
Line 
1Summary:        A plain ASCII to PostScript converter
2Name:           enscript
3Version:        1.6.5.2
4Release:        1%{?_dist_release}
5License:        GPLv3+
6Group:          Applications/Publishing
7URL:            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
11Source0:        enscript-%{version}.tar.gz
12Source1:        enscript-ruby-1.6.4.tar.gz
13#http://neugierig.org/software/ruby/ruby-enscript.tar.gz
14Source2:        enscript-php-1.6.4.st
15#http://home.raxnet.net/downloads/viewcvs/php.st
16
17# RH #177336
18Patch1:         enscript-1.6.4-hilight.patch
19# RH #61294
20Patch3:         enscript-1.6.1-locale.patch
21
22# RH #224548
23Patch8:         enscript-wrap_header.patch
24
25Patch9:         enscript-1.6.4-rh457719.patch
26Patch10:        enscript-1.6.4-rh457720.patch
27Patch12:        enscript-rh477382.patch
28Requires(preun): /sbin/install-info
29Requires(post): /sbin/install-info
30BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
31Obsoletes:      nenscript < 1.13++-13
32Provides:       nenscript = 1.13++-13
33
34BuildRequires:  autoconf, automake, gettext
35BuildRequires:  gettext-devel
36
37Vendor:         Project Vine
38Distribution:   Vine Linux
39
40
41%description
42GNU enscript is a free replacement for Adobe's Enscript
43program. Enscript converts ASCII files to PostScript(TM) and spools
44generated PostScript output to the specified printer or saves it to a
45file. Enscript can be extended to handle different output media and
46includes many options for customizing printouts.
47
48%description -l ja
49GNU enscript ‚Í Adobe Enscript ‚É‘ã‚í‚éƒtƒŠ[‚ȃvƒƒOƒ‰ƒ€‚Å‚·B
50Enscript ‚Í ASCII ƒtƒ@ƒCƒ‹‚ð PostScript(TM) ‚É•ÏŠ·‚µ‚āA
51“Á’è‚̃vƒŠƒ“ƒ^‚ɍ쐬‚µ‚½ PostScript ƒtƒ@ƒCƒ‹‚ðƒXƒv[ƒ‹‚µ‚½‚èA
52ƒtƒ@ƒCƒ‹‚É•Û‘¶‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B
53Enscript ‚͈قȂéo—̓ƒfƒBƒA‚ðˆµ‚¦‚é‚悤‚ÉŠg’£‚³‚ê‚Ä‚¨‚èA
54ƒvƒŠƒ“ƒgo—Í‚ðƒJƒXƒ^ƒ}ƒCƒY‚·‚邽‚ß‚Ì‘½‚­‚̃IƒvƒVƒ‡ƒ“‚ðŠÜ‚ñ‚Å‚¢‚Ü‚·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
67install -pm 644 %{SOURCE2} states/hl/php.st
68
69
70%build
71autoreconf -fiv
72%configure --with-media=Letter
73make %{?_smp_mflags}
74
75
76%install
77rm -rf %{buildroot}
78mkdir -p %{buildroot}%{_datadir}/locale/{de,es,fi,fr,nl,sl}/LC_MESSAGES
79make DESTDIR=%{buildroot} install
80rm -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
96for 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
100done
101
102%clean
103rm -rf %{buildroot}
104
105%preun
106if [ $1 = 0 ]; then
107    [ -f %{_infodir}/%{name}.info.gz ] && \
108      /sbin/install-info --delete %{_infodir}/%{name}.info.gz \
109        %{_infodir}/dir || :
110fi
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.
Note: See TracBrowser for help on using the repository browser.