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

Revision 9881, 7.6 KB checked in by Takemikaduchi, 8 years ago (diff)

new upstream release

Line 
1Summary: A text file browser similar to more, but better
2Summary(ja): more よりも高機能な日本語対応ページャ
3Name: less
4Version: 481
5Release: 1%{?_dist_release}
6
7Group: Applications/Text
8License: GPLv3+
9URL: http://www.greenwoodsoftware.com/less/
10
11Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
12Source1: lesspipe.sh
13Source2: less.sh
14Source3: less.csh
15Patch1: less-481-Foption.patch
16Patch4: less-394-time.patch
17Patch5: less-418-fsync.patch
18Patch6: less-436-manpage-add-old-bot-option.patch
19Patch8: less-436-help.patch
20
21Buildroot: %{_tmppath}/%{name}-%{version}-root
22BuildRequires: ncurses-devel
23BuildRequires: pcre-devel
24BuildRequires: autoconf automake libtool
25Requires(post): alternatives
26Requires(preun): alternatives
27Requires: gzip, bzip2
28Requires: file >= 3.33
29Provides: pager
30
31Vendor: Project Vine
32Distribution: Vine Linux
33Packager: daisuke
34
35%description
36The less utility is a text file browser that resembles more, but has
37more capabilities.  Less allows you to move backwards in the file as
38well as forwards.  Since less doesn't have to read the entire input file
39before it starts, less starts up more quickly than text editors (for
40example, vi).
41
42You should install less because it is a basic utility for viewing text
43files, and you'll use it frequently.
44
45%description -l ja
46less は more よりも高機能な日本語対応ページャです.less は起動時にテキスト
47ファイルを完全に読み込む必要がないので,vi などの テキストエディタに比べて
48高速に起動することができます.
49
50環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
51compress で圧縮されたファイルを自動的に展開して表示することもできます.
52
53less はテキストファイルを表示するためによく使用する基本的なツールなので,
54インストールしておくべきでしょう.
55
56%prep
57%setup -q
58%patch1 -p1 -b .Foption
59%patch4 -p1 -b .time
60%patch5 -p1 -b .fsync
61%patch6 -p1 -b .manpage-add-old-bot-option
62%patch8 -p1 -b .help
63
64autoreconf
65
66chmod -R a+w *
67chmod 644 lessecho.c lesskey.c version.c LICENSE
68
69
70%build
71%configure --with-regex=pcre
72make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 `pcre-config --cflags`" datadir=%{_docdir}
73
74
75%install
76rm -rf $RPM_BUILD_ROOT
77%makeinstall
78strip -R .comment $RPM_BUILD_ROOT/%{_bindir}/less
79mkdir -p $RPM_BUILD_ROOT/etc/profile.d
80install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
81install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
82install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
83ls -la $RPM_BUILD_ROOT/etc/profile.d
84
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%post
89/sbin/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
90
91# fix broken symlink if it's there
92if [ ! -f %{_bindir}/pager ] ; then
93    /sbin/update-alternatives --auto pager
94fi
95
96%preun
97if [ $1 -eq 0 ]; then
98    /sbin/update-alternatives --remove pager %{_bindir}/less
99    /sbin/update-alternatives --auto pager
100fi
101
102%files
103%defattr(-,root,root)
104%doc COPYING LICENSE NEWS README
105%config %{_sysconfdir}/profile.d/*
106%{_bindir}/less
107%{_bindir}/lesskey
108%{_bindir}/lessecho
109%{_bindir}/lesspipe.sh
110%{_mandir}/man1/less.1*
111%{_mandir}/man1/lesskey.1*
112%{_mandir}/man1/lessecho.1*
113
114%changelog
115* Sun Dec 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 481-1
116- update to 481
117- update Patch1 (less-481-Foption.patch)
118
119* Mon Jan 20 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 458-1
120- update to 458
121
122* Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 451-1
123- update to 451
124- build with pcre-8.31
125
126* Sun Oct 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 444-1
127- update to 444
128
129* Sat Mar 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 436-3
130- split Requires(post,preun)
131
132* Sun Sep 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-2
133- updated japanese summary and description
134
135* Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
136- updated to 436
137
138* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
139- applied new versioning policy, spec in utf-8
140
141* Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl6
142- add Provides: pager
143- add Requires(post,preun): alternatives
144
145* Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 382-0vl5
146- add update-alternatives: pager in %%post, %%preun scriptlet
147
148* Thu Nov 09 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl4
149- revert to 382-iso259 ([VineSeed:12552])
150
151* Wed Nov 08 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 382-0vl3
152- update jless patch to 382-iso262
153- update description (iso254 to iso262)
154
155* Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl2
156- change log was missing in 382-0vl1
157
158* Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 382-0vl1
159- new upstream release
160- update jless patch to 382-iso258
161
162* Tue Dec 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 358-0vl10
163- set _FILE_OFFSET_BITS 64
164
165* Sat May 17 2003 KAZUKI SHIMURA <rito@pos.to> 358-0vl9
166- rebuild with new toolchain
167- fix description (iso242 to iso254)
168
169* Thu Apr 25 2002 Kosaku Nagasaka <nagasaka@math.tsukuba.ac.jp>
170- 358-0vl8: temporary fix: consistency of the nls-patch and (J)LESSCHARSET
171
172* Sun Mar 31 2002 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp>
173- 358-0vl7: fix lesspipe.sh for file names with spaces
174
175* Wed Aug 22 2001 Toru Sagami <sagami@vinelinux.org>
176- 358-0vl6: rebuild on ncurses-5.2 (as asked to do so)
177
178* Sun Aug 19 2001 Toru Sagami <sagami@vinelinux.org>
179- 358-0vl5: added more documents (COPYING, LICENSE)
180- fix lesspipe.sh again and tweak lesspipe.csh a bit with %%config marked
181
182* Wed Jun 27 2001 Jun Nishii <jun@vinelinux.org> 358-0vl4
183- fix lesspipe.sh
184- do not REset LESSOPEN in profile.d/less.sh
185
186* Sat Jan 13 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
187- 358-0vl3
188- fixed lesspipe.sh
189
190* Fri Jan 12 2001 Lisa Sagami <czs14350@mb.infoweb.ne.jp>
191- 358-0vl2
192- added bzip2/lha support to lesspipe.sh
193- minor spec fixes
194
195* Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
196- 358-0vl1
197- more fix of lesspipe.sh
198- requires file >= 3.33
199- more macros in spec
200
201* Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org>
202- 354-0vl5
203- modify lesspipe.sh to adapt to file-3.33 and to view gzipped nroff file
204
205* Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 354-0vl3
206- some fixes to handle man pages correctly
207
208* Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 354-0vl2
209- build on gcc-2.95.3
210- partially used rpmmacros
211
212* Wed Jul  5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
213- added Sagam's patch to fix parse ctrl code for Japanese. Very thanks Sagami-san.
214
215* Wed Jun 21 2000 Jun Nishii <jun@vinelinux.org>
216- less-354-0vl1
217
218* Mon Jan 17 2000 Yasuyuki Furukawa  <furukawa@vinelinux.org>
219- updated ja_nls patch for memory leaks.
220
221* Mon Jan 10 2000 Jun Nishii <jun@vinelinux.org>
222- rel.7 (5vl2 makes harm for update from Vine-1.1)
223
224* Fri Jan  7 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
225- rel 5vl2
226- added ja_nls and bzip2 patches
227- added Requires for bzip2 and gzip.
228
229* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
230- rel.6
231- change group
232
233* Mon Sep 6 1999 Jun NISHII <jun@flatout.org>
234- rel.5
235- remove LESS=-r to avoid somed troubles
236
237* Sat Aug 21 1999 Jun NISHII <jun@flatout.org>
238- rel.4
239- change groff path in lesspipe.sh to adapt groff-1.11
240- added /etc/profile.d/less{.,.csh}
241
242* Thu Jun 24 1999 Norihito Ohmori <ohmori@flatout.org>
243- rebuild for glibc-2.1
244
245* Mon Feb 15 1999 Jun NISHII <jun@flatout.org>
246- rel.2
247- added preprocess for bzip2ed file
248- added Japanese summary
249
250* Wed Dec 2 1998 Jun NISHII <jun@flatout.org>
251- rename from less-332iso242-4 to less-332_jp-1
252- strip bins
253
254* Thu Oct 8 1998 Jun NISHII <jun@flatout.org>
255- release 4
256- modify header of spec file
257
258* Sat Sep 26 1998 Jun NISHII <jun@flatout.org>
259- release 3
260- added lesspipe.sh
Note: See TracBrowser for help on using the repository browser.