source: projects/specs/trunk/l/less/less-vl.spec @ 1466

Revision 1466, 6.5 KB checked in by inagaki, 14 years ago (diff)

updated: less

Line 
1Summary: less (opposite of more) + ISO patch
2Summary(ja): 日本語対応高機能ページャ
3Name: less
4Version: 436
5Release: 1%{?_dist_release}
6License: GPLv3+
7Group: Applications/Text
8Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
9Source1: lesspipe.sh
10Source2: less.sh
11Source3: less.csh
12Patch1: less-406-Foption.patch
13Patch4: less-394-time.patch
14Patch5: less-418-fsync.patch
15Patch6: less-436-manpage.patch
16#Source3: less-354-hlp-ja.tgz
17
18Buildroot: %{_tmppath}/%{name}-root
19BuildRequires: ncurses-devel
20BuildRequires: pcre-devel
21BuildRequires: autoconf automake libtool
22Requires(post,preun): alternatives
23Requires: gzip, bzip2
24Requires: file >= 3.33
25Provides: pager
26
27Vendor: Project Vine
28Distribution: Vine Linux
29
30%description
31This is a more advanced more command with Japanese support by iso259. 
32patch.
33
34EUC/JIS/Shift-JIS are automatically distinguished.  The can set the
35Kanji code with the environment variable JLESSCHARSET. Also you can
36automatically open gzip or compress files and show them with less.
37
38%description -l ja
39more よりも高機能なページャ less を iso259 パッチで日本語対応にしたも
40のです. EUC/JIS/Shift-JIS を自動的に判別し, 環境変数JLESSCHARSET で指
41定された任意の漢字コードで表示します.
42
43環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
44compress で圧縮されたファイルを自動的に展開して表示することもできます.
45
46%prep
47%setup -q
48%patch1 -p1 -b .Foption
49%patch4 -p1 -b .time
50%patch5 -p1 -b .fsync
51%patch6 -p1 -b .manpage
52
53autoreconf
54
55chmod -R a+w *
56chmod 644 lessecho.c lesskey.c version.c LICENSE
57
58# jless
59#patch0 -p1
60#patch1 -p1
61
62#touch configure
63
64%build
65%configure --with-regex=pcre
66make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 `pcre-config --cflags`" datadir=%{_docdir}
67
68#CFLAGS=-D_FILE_OFFSET_BITS=64
69#configure --enable-nls
70#make
71
72%install
73rm -rf $RPM_BUILD_ROOT
74%makeinstall
75strip -R .comment $RPM_BUILD_ROOT/%{_bindir}/less
76mkdir -p $RPM_BUILD_ROOT/etc/profile.d
77install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
78install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
79install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
80ls -la $RPM_BUILD_ROOT/etc/profile.d
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%post
86%{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
87
88%preun
89if [ "$1" = "0" ]; then
90  %{_syssbindir}/update-alternatives --remove pager %{_bindir}/less
91fi
92
93%files
94%defattr(-,root,root)
95%doc COPYING LICENSE NEWS README
96%config %{_sysconfdir}/profile.d/*
97%{_bindir}/less
98%{_bindir}/lesskey
99%{_bindir}/lessecho
100%{_bindir}/lesspipe.sh
101%{_mandir}/man1/less.1*
102%{_mandir}/man1/lesskey.1*
103%{_mandir}/man1/lessecho.1*
104
105%changelog
106* Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
107- updated to 436
108
109* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
110- applied new versioning policy, spec in utf-8
111
112* Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl6
113- add Provides: pager
114- add Requires(post,preun): alternatives
115
116* Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl5
117- add update-alternatives: pager in %%post, %%preun scriptlet
118
119* Thu Nov 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl4
120- revert to 382-iso259 ([VineSeed:12552])
121
122* Wed Nov 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl3
123- update jless patch to 382-iso262
124- update description (iso254 to iso262)
125
126* Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl2
127- change log was missing in 382-0vl1
128
129* Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl1
130- new upstream release
131- update jless patch to 382-iso258
132
133* Tue Dec 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 358-0vl10
134- set _FILE_OFFSET_BITS 64
135
136* Sat May 17 2003 KAZUKI SHIMURA <rito@pos.to> 358-0vl9
137- rebuild with new toolchain
138- fix description (iso242 to iso254)
139
140* Thu Apr 25 2002 Kosaku Nagasaka <nagasaka@math.tsukuba.ac.jp>
141- 358-0vl8: temporary fix: consistency of the nls-patch and (J)LESSCHARSET
142
143* Sun Mar 31 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
144- 358-0vl7: fix lesspipe.sh for file names with spaces
145
146* Wed Aug 22 2001 Toru Sagami <sagami@vinelinux.org>
147- 358-0vl6: rebuild on ncurses-5.2 (as asked to do so)
148
149* Sun Aug 19 2001 Toru Sagami <sagami@vinelinux.org>
150- 358-0vl5: added more documents (COPYING, LICENSE)
151- fix lesspipe.sh again and tweak lesspipe.csh a bit with %%config marked
152
153* Wed Jun 27 2001 Jun Nishii <jun@vinelinux.org> 358-0vl4
154- fix lesspipe.sh
155- do not REset LESSOPEN in profile.d/less.sh
156
157* Sat Jan 13 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
158- 358-0vl3
159- fixed lesspipe.sh
160
161* Fri Jan 12 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
162- 358-0vl2
163- added bzip2/lha support to lesspipe.sh
164- minor spec fixes
165
166* Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
167- 358-0vl1
168- more fix of lesspipe.sh
169- requires file >= 3.33
170- more macros in spec
171
172* Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
173- 354-0vl5
174- modify lesspipe.sh to adapt to file-3.33 and to view gzipped nroff file
175
176* Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 354-0vl3
177- some fixes to handle man pages correctly
178
179* Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 354-0vl2
180- build on gcc-2.95.3
181- partially used rpmmacros
182
183* Wed Jul  5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
184- added Sagam's patch to fix parse ctrl code for Japanese. Very thanks Sagami-san.
185
186* Wed Jun 21 2000 Jun Nishii <jun@vinelinux.org>
187- less-354-0vl1
188
189* Mon Jan 17 2000 Yasuyuki Furukawa  <furukawa@vinelinux.org>
190- updated ja_nls patch for memory leaks.
191
192* Mon Jan 10 2000 Jun Nishii <jun@vinelinux.org>
193- rel.7 (5vl2 makes harm for update from Vine-1.1)
194
195* Fri Jan  7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
196- rel 5vl2
197- added ja_nls and bzip2 patches
198- added Requires for bzip2 and gzip.
199
200* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
201- rel.6
202- change group
203
204* Sun Sep 6 1999 Jun NISHII <jun@flatout.org>
205- rel.5
206- remove LESS=-r to avoid somed troubles
207
208* Sat Aug 21 1999 Jun NISHII <jun@flatout.org>
209- rel.4
210- change groff path in lesspipe.sh to adapt groff-1.11
211- added /etc/profile.d/less{.,.csh}
212
213* Thu Jun 24 1999 Norihito Ohmori <ohmori@flatout.org>
214- rebuild for glibc-2.1
215
216* Mon Feb 15 1999 Jun NISHII <jun@flatout.org>
217- rel.2
218- added preprocess for bzip2ed file
219- added Japanese summary
220
221* Wed Dec 2 1998 Jun NISHII <jun@flatout.org>
222- rename from less-332iso242-4 to less-332_jp-1
223- strip bins
224
225* Tue Oct 8 1998 Jun NISHII <jun@flatout.org>
226- release 4
227- modify header of spec file
228
229* Sat Sep 26 1998 Jun NISHII <jun@flatout.org>
230- release 3
231- added lesspipe.sh
Note: See TracBrowser for help on using the repository browser.