+Name: findutils
+Version: 4.2.31
+Release: 1
+License: GPL-2.0+
+Summary: The GNU versions of find utilities (find and xargs)
+Url: http://www.gnu.org/software/findutils/
+Group: Applications/File
+Source: %{name}-%{version}.tar.bz2
+#Source1: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz.sig
+Patch1: findutils-4.2.31-no-locate.patch
+Patch2: findutils-bmc12931-find-ls-stack-overflow.patch
+
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gzip
+BuildRequires: libtool
+
+%description
+The findutils package contains programs which will help you locate
+files on your system. The find utility searches through a hierarchy
+of directories looking for files which match a certain set of criteria
+(such as a filename pattern). The xargs utility builds and executes
+command lines from standard input arguments (usually lists of file
+names generated by the find command).
+
+You should install findutils because it includes tools that are very
+useful for finding things on your system.
+
+%prep
+%setup -q
+%patch1 -p1 -b .no-locate
+%patch2 -p1
+
+%build
+export CFLAGS="%{optflags} -D_GNU_SOURCE"
+export CXXFLAGS="%{optflags} -D_GNU_SOURCE"
+%configure --without-selinux --disable-nls
+
+make %{?_smp_mflags}
+%check
+make check
+
+%install
+%make_install
+
+
+%docs_package
+
+%files
+%defattr(-,root,root)
+%doc COPYING
+%{_bindir}/find
+%{_bindir}/xargs
+