Browse Source

findutils: update to 4.5.9

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3403 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 14 years ago
parent
commit
15bc5499b7
1 changed files with 10 additions and 13 deletions
  1. 10 13
      f/findutils/findutils-vl.spec

+ 10 - 13
f/findutils/findutils-vl.spec

@@ -1,8 +1,8 @@
 Summary: The GNU versions of find utilities (find and xargs).
 Summary(ja):  find ユーティリティの GNU バージョン (find および xargs).
 Name: findutils
-Version: 4.4.0
-Release: 2%{?_dist_release}
+Version: 4.5.9
+Release: 1%{?_dist_release}
 License: GPL
 Group: System Environment/Base
 Source0: ftp://ftp.gnu.org/gnu/findutils/findutils-%{version}.tar.gz
@@ -28,19 +28,13 @@ useful for finding things on your system.
 %setup -q
 
 %build
-%define	optflags $RPM_OPT_FLAGS -D_GNU_SOURCE
 %configure
-%undefine optflags
 
 %__make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%makeinstall
-
-( cd $RPM_BUILD_ROOT
-  gzip -9fn .%{_infodir}/find.info*
-)
+make install DESTDIR=${RPM_BUILD_ROOT}
 
 %find_lang %{name}
 
@@ -58,13 +52,13 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
 
 %post
-/sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir
-/sbin/install-info %{_infodir}/find-maint.info.gz %{_infodir}/dir
+if [ -f %{_infodir}/find.info.gz ]; then
+  /sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir
+fi
 
 %preun
-if [ $1 = 0 ]; then
+if [ $1 = 0 -a -f %{_infodir}/find.info.gz ]; then
     /sbin/install-info --delete %{_infodir}/find.info.gz %{_infodir}/dir
-    /sbin/install-info --delete %{_infodir}/find-maint.info.gz %{_infodir}/dir
 fi
 
 %clean
@@ -83,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_infodir}/find-maint.info*
 
 %changelog
+* Mon Apr 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5.9-1
+- new upstream release
+
 * Sun Mar 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4.0-2
 - move find to /bin
   - we'd use find in initscripts