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

Revision 12330, 8.0 KB checked in by tomop, 4 years ago (diff)

updated 5 packages

cifs-utils-6.10-1

less-551-1

lv-4.51.d-1

ruby-2.4.9-17

vim-8.2.0365-1

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