| 1 | Summary: The GNU versions of find utilities (find and xargs)
|
|---|
| 2 | Name: findutils
|
|---|
| 3 | Version: 4.4.2
|
|---|
| 4 | Release: 6%{?dist}
|
|---|
| 5 | Epoch: 1
|
|---|
| 6 | License: GPLv3+
|
|---|
| 7 | Group: Applications/File
|
|---|
| 8 | URL: http://www.gnu.org/software/findutils/
|
|---|
| 9 | Source0: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
|
|---|
| 10 |
|
|---|
| 11 | Patch0: findutils-os2.patch
|
|---|
| 12 |
|
|---|
| 13 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 14 | #BuildRequires: libtool, automake, autoconf
|
|---|
| 15 | #BuildRequires: dejagnu, texinfo
|
|---|
| 16 | BuildRequires: gettext-devel
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | The findutils package contains programs which will help you locate
|
|---|
| 20 | files on your system. The find utility searches through a hierarchy
|
|---|
| 21 | of directories looking for files which match a certain set of criteria
|
|---|
| 22 | (such as a file name pattern). The xargs utility builds and executes
|
|---|
| 23 | command lines from standard input arguments (usually lists of file
|
|---|
| 24 | names generated by the find command).
|
|---|
| 25 |
|
|---|
| 26 | You should install findutils because it includes tools that are very
|
|---|
| 27 | useful for finding things on your system.
|
|---|
| 28 |
|
|---|
| 29 | %package debug
|
|---|
| 30 | Summary: HLL debug data for exception handling support.
|
|---|
| 31 |
|
|---|
| 32 | %description debug
|
|---|
| 33 | HLL debug data for exception handling support.
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | %prep
|
|---|
| 37 | %setup -q
|
|---|
| 38 | %patch0 -p1
|
|---|
| 39 |
|
|---|
| 40 | %build
|
|---|
| 41 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 42 | export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
|---|
| 43 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 44 | export LIBS="-lurpo -lmmap"
|
|---|
| 45 | %configure \
|
|---|
| 46 | --without-fts \
|
|---|
| 47 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 48 | make %{?_smp_mflags}
|
|---|
| 49 |
|
|---|
| 50 | #%check
|
|---|
| 51 | #make check
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 55 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 56 |
|
|---|
| 57 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 58 | rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
|
|---|
| 59 |
|
|---|
| 60 | #%find_lang %{name}
|
|---|
| 61 |
|
|---|
| 62 | # move find to /bin/find
|
|---|
| 63 | #mkdir -p $RPM_BUILD_ROOT/bin
|
|---|
| 64 | #mv $RPM_BUILD_ROOT{%_bindir,/bin}/find
|
|---|
| 65 |
|
|---|
| 66 | # create /usr/bin/find -> /bin/find symlink
|
|---|
| 67 | #ln -sf ../../bin/find $RPM_BUILD_ROOT/usr/bin
|
|---|
| 68 |
|
|---|
| 69 | # yd move conflicting tools to libexec/bin and place a symlink for script compatibility
|
|---|
| 70 | mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/bin
|
|---|
| 71 | for i in find; do
|
|---|
| 72 | mv $RPM_BUILD_ROOT%{_bindir}/$i.exe $RPM_BUILD_ROOT%{_libexecdir}/bin/$i.exe
|
|---|
| 73 | ln -s %{_libexecdir}/bin/$i.exe $RPM_BUILD_ROOT%{_bindir}/$i
|
|---|
| 74 | done
|
|---|
| 75 |
|
|---|
| 76 | %clean
|
|---|
| 77 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 78 |
|
|---|
| 79 | %files
|
|---|
| 80 | # -f %{name}.lang
|
|---|
| 81 | %defattr(-,root,root,-)
|
|---|
| 82 | %doc AUTHORS COPYING NEWS README THANKS TODO
|
|---|
| 83 | %{_bindir}/find
|
|---|
| 84 | %{_bindir}/ftsfind.exe
|
|---|
| 85 | %{_bindir}/xargs.exe
|
|---|
| 86 | %{_bindir}/locate.exe
|
|---|
| 87 | %{_bindir}/updatedb
|
|---|
| 88 | %{_libexecdir}/*
|
|---|
| 89 | %{_mandir}/man1/*
|
|---|
| 90 | %{_mandir}/man5/*
|
|---|
| 91 | %{_infodir}/find.info*
|
|---|
| 92 | %{_infodir}/find-maint.info
|
|---|
| 93 | %{_datadir}/locale/*
|
|---|
| 94 | %exclude %{_bindir}/*.dbg
|
|---|
| 95 | %exclude %{_libexecdir}/*.dbg
|
|---|
| 96 | %exclude %{_libexecdir}/bin/*.dbg
|
|---|
| 97 |
|
|---|
| 98 | %files debug
|
|---|
| 99 | %defattr(-,root,root)
|
|---|
| 100 | %{_bindir}/*.dbg
|
|---|
| 101 | %{_libexecdir}/*.dbg
|
|---|
| 102 | %{_libexecdir}/bin/*.dbg
|
|---|
| 103 |
|
|---|
| 104 | %changelog
|
|---|
| 105 | * Sat Mar 15 2014 yd
|
|---|
| 106 | - fixed libexec dir for symlinks.
|
|---|
| 107 | - added debug package with symbolic info for exceptq.
|
|---|
| 108 |
|
|---|
| 109 | * Tue Jul 30 2013 yd
|
|---|
| 110 | - disabled FTS code, now find works as before.
|
|---|
| 111 |
|
|---|
| 112 | * Wed Jul 24 2013 yd
|
|---|
| 113 | - move conflicting tools to libexec/bin.
|
|---|
| 114 |
|
|---|
| 115 | * Wed Jun 05 2013 yd
|
|---|
| 116 | - r641, fix xargs stop in freadahead.
|
|---|
| 117 |
|
|---|
| 118 | * Thu Mar 14 2013 yd
|
|---|
| 119 | - rename find.exe to find-unix.exe and add symlink.
|
|---|
| 120 |
|
|---|
| 121 | * Sun Jan 08 2012 yd
|
|---|
| 122 | - initial unixroot build.
|
|---|