From: Hurnjoo Lee Date: Mon, 21 Dec 2015 05:46:10 +0000 (+0900) Subject: Add packaging files X-Git-Tag: accepted/tizen/base/20151224.104206^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ce8659bcb14492a8da04b8eebff7528745e7ba5;p=product%2Fupstream%2Ffindutils.git Add packaging files Change-Id: I4712adc96dd9471fb473a07f4466fb9c9397166c Signed-off-by: Hurnjoo Lee --- diff --git a/packaging/findutils.changes b/packaging/findutils.changes new file mode 100644 index 0000000..0565955 --- /dev/null +++ b/packaging/findutils.changes @@ -0,0 +1,6 @@ +* Fri Nov 28 2014 Chanho Park upstream/4.5.14-7-gabfd50b +- Imported Upstream version 4.5.14 + +* Mon Mar 18 2013 Anas Nashif upstream/4.5.10@52e3143 +- Fixed package group + diff --git a/packaging/findutils.manifest b/packaging/findutils.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/findutils.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/findutils.spec b/packaging/findutils.spec new file mode 100644 index 0000000..307c487 --- /dev/null +++ b/packaging/findutils.spec @@ -0,0 +1,85 @@ +Name: findutils +Url: http://www.gnu.org/software/findutils/ +Version: 4.3.8 +Release: 0 +Summary: The GNU versions of find utilities (find and xargs) +License: GPL-2.0+ +Group: Base/Tools +# retrieved from http://alpha.gnu.org/pub/gnu/findutils/findutils-4.5.10.tar.gz +Source: findutils-%{version}.tar.bz2 +Source1: sysconfig.locate +Source1001: findutils.manifest + +%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 file name 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. + + +%package locate +Summary: Tool for Locating Files (findutils subpackage) +Group: Base/Tools +Provides: findutils:/usr/bin/locate +Requires: findutils = %{version} + +%description locate +This package contains the locate program which is part of the GNU +findutils software suite. + +You can find files fast using locate. On installing findutils-locate +an additional daily cron job will be added to the cron system. This +job will update the files database every night or shortly after +switching on the computer. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +%ifarch %arm armv5tel armv7l armv7el armv5el +# this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ... +export DEFAULT_ARG_SIZE="(31u * 1024u)" +%endif +%configure \ + --libexecdir=%{_libdir}/find \ + --localstatedir=/var/lib +%{__make} %{?_smp_mflags} + +%check +make check + +%install +%make_install + +install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/locate +rm -f $RPM_BUILD_ROOT%{_bindir}/oldfind +rm -f $RPM_BUILD_ROOT%{_bindir}/ftsfind +rm -f $RPM_BUILD_ROOT%{_infodir}/find-maint* +%find_lang %{name} + +%docs_package + +%lang_package + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%license COPYING +%{_bindir}/find +%{_bindir}/xargs + +%files locate +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{_bindir}/locate +%{_bindir}/updatedb +%{_libdir}/find +%config(noreplace) %{_sysconfdir}/sysconfig/locate + +%changelog diff --git a/packaging/sysconfig.locate b/packaging/sysconfig.locate new file mode 100644 index 0000000..087f349 --- /dev/null +++ b/packaging/sysconfig.locate @@ -0,0 +1,54 @@ +## Path: Applications/Locate +## Description: Configuration of updatedb +## Type: yesno +## Default: yes +# +# Should updatedb (for locate) be started by cron.daily ("yes" or "no") +# +RUN_UPDATEDB=yes + +## Type: string(nobody,root) +## Default: nobody +# +# updatedb has a parameter "--localuser". +# It runs the "find" command as this user. Some people think this is a +# security hole if set to 'root' (because some directory information can +# be read which is normally protected). Others think it is useful to hold +# all files in the database. +# So if you want full information in locate db, set RUN_UPDATEDB_AS=root. +# If you want security use RUN_UPDATEDB_AS=nobody. +# +RUN_UPDATEDB_AS=nobody + +## Type: string +## Default: "" +# +# uptdatedb normally only scans local harddisks, but can include net paths +# in the database as well. If you specify directories here, they will be +# scanned. +# +UPDATEDB_NETPATHS="" + +## Type: string +## Default: "/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /sys" +# +# uptdatedb can skip directories for its database. The following parameter +# says which ones. +# +UPDATEDB_PRUNEPATHS="/mnt /cdrom /tmp /usr/tmp /var/tmp /var/spool /proc /media /sys" + +## Type: string("",nobody) +## Default: "" +# +# Search net paths as ? (e.g. nobody) +# +UPDATEDB_NETUSER="" + +## Type: string +## Default: "" +# +# updatedb can skip certain filesystem types completely +# this sets the parameter "--prunefs" for updatedb +# +UPDATEDB_PRUNEFS="" +