|
@@ -1,21 +1,24 @@
|
|
-Summary: less (opposite of more) + ISO patch
|
|
|
|
-Summary(ja): 日本語対応高機能ページャ
|
|
|
|
|
|
+Summary: A text file browser similar to more, but better
|
|
|
|
+Summary(ja): more よりも高機能な日本語対応ページャ
|
|
Name: less
|
|
Name: less
|
|
Version: 436
|
|
Version: 436
|
|
-Release: 1%{?_dist_release}
|
|
|
|
-License: GPLv3+
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
+
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
|
|
+License: GPLv3+
|
|
|
|
+URL: http://www.greenwoodsoftware.com/less/
|
|
|
|
+
|
|
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
|
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
|
Source1: lesspipe.sh
|
|
Source1: lesspipe.sh
|
|
Source2: less.sh
|
|
Source2: less.sh
|
|
Source3: less.csh
|
|
Source3: less.csh
|
|
|
|
+#Source3: less-354-hlp-ja.tgz
|
|
Patch1: less-406-Foption.patch
|
|
Patch1: less-406-Foption.patch
|
|
Patch4: less-394-time.patch
|
|
Patch4: less-394-time.patch
|
|
Patch5: less-418-fsync.patch
|
|
Patch5: less-418-fsync.patch
|
|
Patch6: less-436-manpage.patch
|
|
Patch6: less-436-manpage.patch
|
|
-#Source3: less-354-hlp-ja.tgz
|
|
|
|
|
|
|
|
-Buildroot: %{_tmppath}/%{name}-root
|
|
|
|
|
|
+Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: pcre-devel
|
|
BuildRequires: pcre-devel
|
|
BuildRequires: autoconf automake libtool
|
|
BuildRequires: autoconf automake libtool
|
|
@@ -28,21 +31,26 @@ Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
%description
|
|
%description
|
|
-This is a more advanced more command with Japanese support by iso259.
|
|
|
|
-patch.
|
|
|
|
|
|
+The less utility is a text file browser that resembles more, but has
|
|
|
|
+more capabilities. Less allows you to move backwards in the file as
|
|
|
|
+well as forwards. Since less doesn't have to read the entire input file
|
|
|
|
+before it starts, less starts up more quickly than text editors (for
|
|
|
|
+example, vi).
|
|
|
|
|
|
-EUC/JIS/Shift-JIS are automatically distinguished. The can set the
|
|
|
|
-Kanji code with the environment variable JLESSCHARSET. Also you can
|
|
|
|
-automatically open gzip or compress files and show them with less.
|
|
|
|
|
|
+You should install less because it is a basic utility for viewing text
|
|
|
|
+files, and you'll use it frequently.
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
-more よりも高機能なページャ less を iso259 パッチで日本語対応にしたも
|
|
|
|
-のです. EUC/JIS/Shift-JIS を自動的に判別し, 環境変数JLESSCHARSET で指
|
|
|
|
-定された任意の漢字コードで表示します.
|
|
|
|
|
|
+less は more よりも高機能な日本語対応ページャです.less は起動時にテキスト
|
|
|
|
+ファイルを完全に読み込む必要がないので,vi などの テキストエディタに比べて
|
|
|
|
+高速に起動することができます.
|
|
|
|
|
|
環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
|
|
環境変数 LESSOPEN を "|lesspipe.sh %s" に設定することによって, gzip や
|
|
compress で圧縮されたファイルを自動的に展開して表示することもできます.
|
|
compress で圧縮されたファイルを自動的に展開して表示することもできます.
|
|
|
|
|
|
|
|
+less はテキストファイルを表示するためによく使用する基本的なツールなので,
|
|
|
|
+インストールしておくべきでしょう.
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch1 -p1 -b .Foption
|
|
%patch1 -p1 -b .Foption
|
|
@@ -55,19 +63,11 @@ autoreconf
|
|
chmod -R a+w *
|
|
chmod -R a+w *
|
|
chmod 644 lessecho.c lesskey.c version.c LICENSE
|
|
chmod 644 lessecho.c lesskey.c version.c LICENSE
|
|
|
|
|
|
-# jless
|
|
|
|
-#patch0 -p1
|
|
|
|
-#patch1 -p1
|
|
|
|
-
|
|
|
|
-#touch configure
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
%configure --with-regex=pcre
|
|
%configure --with-regex=pcre
|
|
make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 `pcre-config --cflags`" datadir=%{_docdir}
|
|
make CC="gcc $RPM_OPT_FLAGS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 `pcre-config --cflags`" datadir=%{_docdir}
|
|
|
|
|
|
-#CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
|
|
-#configure --enable-nls
|
|
|
|
-#make
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -83,11 +83,17 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post
|
|
%post
|
|
-%{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
|
|
|
|
|
|
+/sbin/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
|
|
|
|
+
|
|
|
|
+# fix broken symlink if it's there
|
|
|
|
+if [ ! -f %{_bindir}/pager ] ; then
|
|
|
|
+ /sbin/update-alternatives --auto pager
|
|
|
|
+fi
|
|
|
|
|
|
%preun
|
|
%preun
|
|
-if [ "$1" = "0" ]; then
|
|
|
|
- %{_syssbindir}/update-alternatives --remove pager %{_bindir}/less
|
|
|
|
|
|
+if [ $1 -eq 0 ]; then
|
|
|
|
+ /sbin/update-alternatives --remove pager %{_bindir}/less
|
|
|
|
+ /sbin/update-alternatives --auto pager
|
|
fi
|
|
fi
|
|
|
|
|
|
%files
|
|
%files
|
|
@@ -103,6 +109,9 @@ fi
|
|
%{_mandir}/man1/lessecho.1*
|
|
%{_mandir}/man1/lessecho.1*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Sep 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-2
|
|
|
|
+- updated japanese summary and description
|
|
|
|
+
|
|
* Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
|
|
* Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
|
|
- updated to 436
|
|
- updated to 436
|
|
|
|
|