Browse Source

updated: less

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1466 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 14 years ago
parent
commit
e1781b1163
1 changed files with 49 additions and 42 deletions
  1. 49 42
      l/less/less-vl.spec

+ 49 - 42
l/less/less-vl.spec

@@ -1,36 +1,28 @@
-%define version 382
-%define release 1%{?_dist_release}
-
 Summary: less (opposite of more) + ISO patch
 Summary(ja): 日本語対応高機能ページャ
 Name: less
-Version: %{version}
-Release: %{release}
+Version: 436
+Release: 1%{?_dist_release}
+License: GPLv3+
 Group: Applications/Text
-License: distributable
-URL: http://www25.big.jp/~jam/less/
-Source: less-%{version}.tar.bz2
-Source1: less-profile.tar.gz
-Source2: lesspipe.sh
-Source3: less-354-hlp-ja.tgz
-
-# jless
-Patch0: http://www25.big.jp/~jam/less/less-382-iso258.patch.gz
-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
+Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
+Source1: lesspipe.sh
+Source2: less.sh
+Source3: less.csh
+Patch1:	less-406-Foption.patch
+Patch4: less-394-time.patch
+Patch5: less-418-fsync.patch
+Patch6: less-436-manpage.patch
+#Source3: less-354-hlp-ja.tgz
 
-Provides: pager
+Buildroot: %{_tmppath}/%{name}-root
+BuildRequires: ncurses-devel
+BuildRequires: pcre-devel
+BuildRequires: autoconf automake libtool
 Requires(post,preun): alternatives
 Requires: gzip, bzip2
 Requires: file >= 3.33
-Buildroot: %{_tmppath}/%{name}-root
+Provides: pager
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -52,31 +44,43 @@ more よりも高機能なページャ less を iso259 パッチで日本語対
 compress で圧縮されたファイルを自動的に展開して表示することもできます. 
 
 %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
-%patch0 -p1
-%patch1 -p1
-#%patch2 -p1
-#%patch3 -p1
-#%patch4 -p1
+#patch0 -p1
+#patch1 -p1
 
-touch configure
+#touch configure
 
 %build
-CFLAGS=-D_FILE_OFFSET_BITS=64
-%configure --enable-nls
-make
+%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}
+
+#CFLAGS=-D_FILE_OFFSET_BITS=64
+#configure --enable-nls
+#make
 
 %install
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 %makeinstall
-install -p -m 755 %{_sourcedir}/lesspipe.sh %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
-install -p -m 755 less-profile/less* %{buildroot}%{_sysconfdir}/profile.d/
+strip -R .comment $RPM_BUILD_ROOT/%{_bindir}/less
+mkdir -p $RPM_BUILD_ROOT/etc/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
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
 %post
 %{_syssbindir}/update-alternatives --install %{_bindir}/pager pager %{_bindir}/less 50
@@ -88,7 +92,7 @@ fi
 
 %files
 %defattr(-,root,root)
-%doc COPYING LICENSE NEWS README README.iso README.iso.jp
+%doc COPYING LICENSE NEWS README 
 %config %{_sysconfdir}/profile.d/*
 %{_bindir}/less
 %{_bindir}/lesskey
@@ -96,9 +100,12 @@ fi
 %{_bindir}/lesspipe.sh
 %{_mandir}/man1/less.1*
 %{_mandir}/man1/lesskey.1*
-
+%{_mandir}/man1/lessecho.1*
 
 %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
 - applied new versioning policy, spec in utf-8