|
@@ -1,36 +1,28 @@
|
|
-%define version 382
|
|
|
|
-%define release 1%{?_dist_release}
|
|
|
|
-
|
|
|
|
Summary: less (opposite of more) + ISO patch
|
|
Summary: less (opposite of more) + ISO patch
|
|
Summary(ja): 日本語対応高機能ページャ
|
|
Summary(ja): 日本語対応高機能ページャ
|
|
Name: less
|
|
Name: less
|
|
-Version: %{version}
|
|
+Version: 436
|
|
-Release: %{release}
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+License: GPLv3+
|
|
Group: Applications/Text
|
|
Group: Applications/Text
|
|
-License: distributable
|
|
+Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
|
-URL: http://www25.big.jp/~jam/less/
|
|
+Source1: lesspipe.sh
|
|
-Source: less-%{version}.tar.bz2
|
|
+Source2: less.sh
|
|
-Source1: less-profile.tar.gz
|
|
+Source3: less.csh
|
|
-Source2: lesspipe.sh
|
|
+Patch1: less-406-Foption.patch
|
|
-Source3: less-354-hlp-ja.tgz
|
|
+Patch4: less-394-time.patch
|
|
-
|
|
+Patch5: less-418-fsync.patch
|
|
-# jless
|
|
+Patch6: less-436-manpage.patch
|
|
-Patch0: http://www25.big.jp/~jam/less/less-382-iso258.patch.gz
|
|
+#Source3: less-354-hlp-ja.tgz
|
|
-Patch1: http://www25.big.jp/~jam/less/less-382-iso258-259.patch.gz
|
|
|
|
-Patch2: http://www25.big.jp/~jam/less/less-382-iso259-260.patch.gz
|
|
|
|
-Patch3: http://www25.big.jp/~jam/less/less-382-iso260-261.patch.gz
|
|
|
|
-Patch4: http://www25.big.jp/~jam/less/less-382-iso261-262.patch.gz
|
|
|
|
-
|
|
|
|
-# some patches for Vine
|
|
|
|
-# include help in ftp://sakura.sfc.wide.ad.jp/pub/unix/tool/less/less-354-hlp-ja.tgz
|
|
|
|
-#Patch2: less-354-ja_nls.patch
|
|
|
|
-#Patch3: less-354-ja_nls-modify.patch
|
|
|
|
|
|
|
|
-Provides: pager
|
|
+Buildroot: %{_tmppath}/%{name}-root
|
|
|
|
+BuildRequires: ncurses-devel
|
|
|
|
+BuildRequires: pcre-devel
|
|
|
|
+BuildRequires: autoconf automake libtool
|
|
Requires(post,preun): alternatives
|
|
Requires(post,preun): alternatives
|
|
Requires: gzip, bzip2
|
|
Requires: gzip, bzip2
|
|
Requires: file >= 3.33
|
|
Requires: file >= 3.33
|
|
-Buildroot: %{_tmppath}/%{name}-root
|
|
+Provides: pager
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -52,31 +44,43 @@ more よりも高機能なページャ less を iso259 パッチで日本語対
|
|
compress で圧縮されたファイルを自動的に展開して表示することもできます.
|
|
compress で圧縮されたファイルを自動的に展開して表示することもできます.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -a 1
|
|
+%setup -q
|
|
|
|
+%patch1 -p1 -b .Foption
|
|
|
|
+%patch4 -p1 -b .time
|
|
|
|
+%patch5 -p1 -b .fsync
|
|
|
|
+%patch6 -p1 -b .manpage
|
|
|
|
+
|
|
|
|
+autoreconf
|
|
|
|
+
|
|
|
|
+chmod -R a+w *
|
|
|
|
+chmod 644 lessecho.c lesskey.c version.c LICENSE
|
|
|
|
|
|
# jless
|
|
# jless
|
|
-%patch0 -p1
|
|
+#patch0 -p1
|
|
-%patch1 -p1
|
|
+#patch1 -p1
|
|
-#%patch2 -p1
|
|
|
|
-#%patch3 -p1
|
|
|
|
-#%patch4 -p1
|
|
|
|
|
|
|
|
-touch configure
|
|
+#touch configure
|
|
|
|
|
|
%build
|
|
%build
|
|
-CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
+%configure --with-regex=pcre
|
|
-%configure --enable-nls
|
|
+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
|
|
+
|
|
|
|
+#CFLAGS=-D_FILE_OFFSET_BITS=64
|
|
|
|
+#configure --enable-nls
|
|
|
|
+#make
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf %{buildroot}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
%makeinstall
|
|
%makeinstall
|
|
-install -p -m 755 %{_sourcedir}/lesspipe.sh %{buildroot}%{_bindir}
|
|
+strip -R .comment $RPM_BUILD_ROOT/%{_bindir}/less
|
|
-mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
|
|
+mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
|
-install -p -m 755 less-profile/less* %{buildroot}%{_sysconfdir}/profile.d/
|
|
+install -p -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
|
|
|
|
+install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
+install -p -c -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
+ls -la $RPM_BUILD_ROOT/etc/profile.d
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf %{buildroot}
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post
|
|
%post
|
|
%{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
|
|
%{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
|
|
@@ -88,7 +92,7 @@ fi
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc COPYING LICENSE NEWS README README.iso README.iso.jp
|
|
+%doc COPYING LICENSE NEWS README
|
|
%config %{_sysconfdir}/profile.d/*
|
|
%config %{_sysconfdir}/profile.d/*
|
|
%{_bindir}/less
|
|
%{_bindir}/less
|
|
%{_bindir}/lesskey
|
|
%{_bindir}/lesskey
|
|
@@ -96,9 +100,12 @@ fi
|
|
%{_bindir}/lesspipe.sh
|
|
%{_bindir}/lesspipe.sh
|
|
%{_mandir}/man1/less.1*
|
|
%{_mandir}/man1/less.1*
|
|
%{_mandir}/man1/lesskey.1*
|
|
%{_mandir}/man1/lesskey.1*
|
|
-
|
|
+%{_mandir}/man1/lessecho.1*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Jul 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 436-1
|
|
|
|
+- updated to 436
|
|
|
|
+
|
|
* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
|
|
* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 382-1vl5
|
|
- applied new versioning policy, spec in utf-8
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|
|