1 | %global srcver 4.51 |
---|
2 | %global shortsrcver %(echo %{srcver} | sed -e 's/\\.//') |
---|
3 | %global _configure ../configure |
---|
4 | |
---|
5 | Summary: a powerful multilingual file viewer |
---|
6 | Summary(ja): パワフルな多言語対応ファイルビュウワー |
---|
7 | Name: lv |
---|
8 | Epoch: 1 |
---|
9 | Version: %{srcver}.d |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | License: GPL |
---|
12 | Group: Applications/Text |
---|
13 | Source: http://www.ff.iij4u.or.jp/~nrt/freeware/lv%{shortsrcver}.tar.gz |
---|
14 | URL: http://www.ff.iij4u.or.jp/~nrt/lv/ |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | |
---|
17 | # from https://github.com/k-takata/lv-mod |
---|
18 | Patch1: lv-mod-4.51.d.patch |
---|
19 | |
---|
20 | Provides: pager |
---|
21 | Requires(post,preun): alternatives |
---|
22 | BuildRequires: ncurses-devel >= 5.6 |
---|
23 | |
---|
24 | Vendor: Project Vine |
---|
25 | Distribution: Vine Linux |
---|
26 | |
---|
27 | %description |
---|
28 | lv is a powerful file viewer like less. lv can decode and encode |
---|
29 | multilingual streams through many coding systems: ISO-8859, ISO-2022, |
---|
30 | EUC, SJIS, Big5, HZ, Unicode. It recognizes multi-bytes patterns as |
---|
31 | regular expressions, lv also provides multilingual grep. In addition, |
---|
32 | lv can recognize ANSI escape sequences for text devoration. |
---|
33 | |
---|
34 | %description -l ja |
---|
35 | lv は less に似たパワフルなファイルビュウワーです。lv は多言語文字列を |
---|
36 | ISO-8859, ISO-2022, EUC, SJIS, Big5, HZ, Unicode といった様々な文字コー |
---|
37 | ドにエンコード・デコードできます。また多バイト正規表現をサポートしてお |
---|
38 | り、多言語 grep としての機能も備えています。さらに lv は ANSI エスケー |
---|
39 | プシーケンスによるテキスト装飾を扱うこともできます。 |
---|
40 | |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -n lv%{shortsrcver} |
---|
44 | |
---|
45 | %patch1 -p1 |
---|
46 | autoreconf -ivf |
---|
47 | |
---|
48 | %build |
---|
49 | pushd build |
---|
50 | %configure |
---|
51 | make %{_smp_mflags} |
---|
52 | popd |
---|
53 | |
---|
54 | |
---|
55 | %install |
---|
56 | rm -rf %{buildroot} |
---|
57 | mkdir -p %{buildroot}%{_bindir} |
---|
58 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
59 | |
---|
60 | # installing binaries ... |
---|
61 | pushd build |
---|
62 | %makeinstall |
---|
63 | popd |
---|
64 | |
---|
65 | # listing all files in drb-all.files |
---|
66 | (find \ |
---|
67 | %{buildroot}%{_bindir} \ |
---|
68 | %{buildroot}%{_mandir} \ |
---|
69 | -type f -o -type l) | |
---|
70 | sort | sed -e "s,^%{buildroot},," \ |
---|
71 | -e "s,\(/man/man./.*\)$,\1*," > lv-all.files |
---|
72 | |
---|
73 | |
---|
74 | %clean |
---|
75 | rm -rf %{buildroot} |
---|
76 | rm -f *.files |
---|
77 | |
---|
78 | |
---|
79 | #%post -p /sbin/ldconfig -n lv |
---|
80 | %post |
---|
81 | %{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/lv 20 |
---|
82 | |
---|
83 | %preun |
---|
84 | if [ "$1" = "0" ]; then |
---|
85 | %{_syssbindir}/update-alternatives --remove pager %{_bindir}/lv |
---|
86 | fi |
---|
87 | |
---|
88 | #%postun -p /sbin/ldconfig -n lv |
---|
89 | |
---|
90 | |
---|
91 | %files -f lv-all.files |
---|
92 | %defattr(-, root, root) |
---|
93 | %license GPL.txt |
---|
94 | %doc README |
---|
95 | %doc hello.sample |
---|
96 | %doc hello.sample.gif |
---|
97 | %doc index.html |
---|
98 | %doc relnote.html |
---|
99 | %{_libdir}/lv |
---|
100 | |
---|
101 | |
---|
102 | %changelog |
---|
103 | * Mon Mar 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.51.d-1 |
---|
104 | - added Patch1: from https://github.com/k-takata/lv-mod |
---|
105 | |
---|
106 | * Sun Jan 26 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 4.51.0-3 |
---|
107 | - rebuild with current VineSeed |
---|
108 | |
---|
109 | * Tue Apr 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.51.0-2 |
---|
110 | - rebuild for Vine 6 |
---|
111 | |
---|
112 | * Sun Aug 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 4.51.0-1 |
---|
113 | - new versioning policy |
---|
114 | - build with ncurses-5.6 |
---|
115 | |
---|
116 | * Fri Apr 13 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 4.51.0-0vl6 |
---|
117 | - add Provides: pager |
---|
118 | - add Requires(post,preun): alternatives |
---|
119 | |
---|
120 | * Mon Apr 09 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 4.51.0-0vl5 |
---|
121 | - add update-alternatives: pager in %%post and %%preun scriptlet |
---|
122 | |
---|
123 | * Tue Apr 20 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.51.0-0vl4 |
---|
124 | - rebuild on VineSeed |
---|
125 | |
---|
126 | * Tue Apr 20 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.51.0-0vl3 |
---|
127 | - add (Build)Requires: libtermcap(-devel) |
---|
128 | - add Vendor/Distribution tag |
---|
129 | - add GPL.txt |
---|
130 | |
---|
131 | * Wed Feb 11 2004 KAZUKI SHIMURA <rito@pos.to> 4.51.0-0vl2 |
---|
132 | - rebuild on VineSeed |
---|
133 | |
---|
134 | * Wed Feb 11 2004 KAZUKI SHIMURA <rito@pos.to> 4.51.0-0vl1 |
---|
135 | - upstream release |
---|
136 | - drop obsolete patch lv-Makefile.in.patch (Patch1) |
---|
137 | |
---|
138 | * Sat Jan 10 2004 KAZUKI SHIMURA <rito@pos.to> 4.50.0-0vl1 |
---|
139 | - upstream release |
---|
140 | - define %%{srcname} |
---|
141 | - s/Copyright/License/ |
---|
142 | |
---|
143 | * Thu May 15 2003 IWAI Masaharu <iwai@alib.jp> 4.49.5-0vl2 |
---|
144 | - rebuild on VineSeed |
---|
145 | |
---|
146 | * Thu May 15 2003 IWAI Masaharu <iwai@alib.jp> 4.49.5-0vl1 |
---|
147 | - SECURITY FIX - upstream release |
---|
148 | - fix CAN-2003-0188: possible local root exploit using config files |
---|
149 | |
---|
150 | * Mon Mar 24 2003 IWAI Masaharu <iwai@alib.jp> 4.49.4-0vl4 |
---|
151 | - rebuild with new toolchain |
---|
152 | |
---|
153 | * Fri Sep 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.49.4-0vl3 |
---|
154 | - URL was incorrect (http was hhttp)... Fixed the typo. |
---|
155 | |
---|
156 | * Sun Jul 21 2002 IWAI Masaharu <iwai@alib.jp> 4.49.4-0vl2 |
---|
157 | - added the help file for executing with h option |
---|
158 | |
---|
159 | * Wed Jan 10 2001 akira yamada <akira@vinelinux.org> |
---|
160 | - Initial packaging. |
---|