From: Anas Nashif Date: Mon, 5 Nov 2012 02:04:20 +0000 (-0800) Subject: add packaging X-Git-Tag: submit/tizen/20141128.114836~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Ffindutils.git;a=commitdiff_plain;h=0a922200737ba2d75cb7151a6fcd80582c7e6ffb add packaging --- diff --git a/packaging/findutils-4.2.31-no-locate.patch b/packaging/findutils-4.2.31-no-locate.patch new file mode 100644 index 0000000..fe9a52a --- /dev/null +++ b/packaging/findutils-4.2.31-no-locate.patch @@ -0,0 +1,22 @@ +--- findutils-4.2.31/Makefile.am_old 2007-03-02 01:14:25.000000000 +0100 ++++ findutils-4.2.31/Makefile.am 2007-06-12 15:18:53.000000000 +0200 +@@ -3,7 +3,7 @@ + + EXTRA_DIST = COPYING ChangeLog TODO install-sh config.h.in stamp-h.in \ + THANKS config.rpath import-gnulib.sh import-gnulib.config +-SUBDIRS = gnulib lib find xargs locate doc po m4 ++SUBDIRS = gnulib lib find xargs doc po m4 + + ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4 + +--- findutils-4.2.31/Makefile.in_old 2007-06-12 15:18:05.000000000 +0200 ++++ findutils-4.2.31/Makefile.in 2007-06-12 15:19:00.000000000 +0200 +@@ -423,7 +423,7 @@ + EXTRA_DIST = COPYING ChangeLog TODO install-sh config.h.in stamp-h.in \ + THANKS config.rpath import-gnulib.sh import-gnulib.config + +-SUBDIRS = gnulib lib find xargs locate doc po m4 ++SUBDIRS = gnulib lib find xargs doc po m4 + ACLOCAL_AMFLAGS = -I gnulib/m4 -I m4 + all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive diff --git a/packaging/findutils-bmc12931-find-ls-stack-overflow.patch b/packaging/findutils-bmc12931-find-ls-stack-overflow.patch new file mode 100644 index 0000000..b745bb4 --- /dev/null +++ b/packaging/findutils-bmc12931-find-ls-stack-overflow.patch @@ -0,0 +1,28 @@ +From 1c8f72f75303cc2a23922704e335c500acf19eb3 Mon Sep 17 00:00:00 2001 +Message-Id: <1c8f72f75303cc2a23922704e335c500acf19eb3.1296053308.git.yan.i.li@intel.com> +From: Yan Li +Date: Wed, 26 Jan 2011 22:47:40 +0800 +Subject: [PATCH] BMC#12931: find -ls stack overflow + + +Signed-off-by: Yan Li +--- + lib/listfile.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/lib/listfile.c b/lib/listfile.c +index d60f465..f18984a 100644 +--- a/lib/listfile.c ++++ b/lib/listfile.c +@@ -200,7 +200,7 @@ list_file (char *name, + int output_block_size, + FILE *stream) + { +- char modebuf[11]; ++ char modebuf[12]; + struct tm const *when_local; + char const *user_name; + char const *group_name; +-- +1.7.2.3 + diff --git a/packaging/findutils.spec b/packaging/findutils.spec new file mode 100644 index 0000000..e34118b --- /dev/null +++ b/packaging/findutils.spec @@ -0,0 +1,54 @@ +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 +