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

Revision 12546, 8.2 KB checked in by tomop, 3 years ago (diff)

updated 28 packages

autoconf-2.71-1

automake-1.16.3-1

bison-3.7.5-1

e2fsprogs-1.46.1-1

findutils-4.8.0-1

galera-26.4.7-1

gawk-5.1.0-1

gdbm-1.19-1

gjs-1.66.2-1

gnome-initial-setup-3.36.4-2

grep-3.6-1

help2man-1.48.1-1

ipvsadm-1.31-1

less-563-1

libidn-1.36-1

make-4.3-1

mariadb-10.5.9-1

mozjs78-78.7.0-1

mpfr-4.1.0-1

nettle-3.7.1-1

parted-3.4-1

pcre2-10.36-1

polkit-0.118-1

strongswan-5.9.1-1

tar-1.34-1

trousers-0.3.15-1

wget-1.21-1

wireshark-3.4.3-1

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