packaging: remove old options to find hidden files
[platform/upstream/findutils.git] / packaging / findutils.spec
1 Name:           findutils
2 Url:            http://www.gnu.org/software/findutils/
3 Version:        4.5.14
4 Release:        0
5 Summary:        The GNU versions of find utilities (find and xargs)
6 License:        GPL-3.0+
7 Group:          Base/Tools
8 # retrieved from http://alpha.gnu.org/pub/gnu/findutils/findutils-4.5.10.tar.gz
9 Source:         findutils-%{version}.tar.bz2
10 Source1:        sysconfig.locate
11 Source1001:     findutils.manifest
12
13 %description
14 The findutils package contains programs which will help you locate
15 files on your system.  The find utility searches through a hierarchy
16 of directories looking for files which match a certain set of criteria
17 (such as a file name pattern).  The xargs utility builds and executes
18 command lines from standard input arguments (usually lists of file
19 names generated by the find command).
20
21 You should install findutils because it includes tools that are very
22 useful for finding things on your system.
23
24
25 %package locate
26 Summary:        Tool for Locating Files (findutils subpackage)
27 Group:          Base/Tools
28 Provides:       findutils:/usr/bin/locate
29 Requires:       findutils = %{version}
30
31 %description locate
32 This package contains the locate program which is part of the GNU
33 findutils software suite.
34
35 You can find files fast using locate.  On installing findutils-locate
36 an additional daily cron job will be added to the cron system. This
37 job will update the files database every night or shortly after
38 switching on the computer.
39
40 %prep
41 %setup -q
42 cp %{SOURCE1001} .
43
44 %build
45 %ifarch %arm armv5tel armv7l armv7el armv5el
46 # this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
47 export DEFAULT_ARG_SIZE="(31u * 1024u)"
48 %endif
49 %configure \
50   --libexecdir=%{_libdir}/find \
51   --localstatedir=/var/lib
52 %{__make} %{?_smp_mflags}
53
54 %check
55 make check
56
57 %install
58 %make_install
59
60 install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/locate
61 rm -f $RPM_BUILD_ROOT%{_bindir}/oldfind
62 rm -f $RPM_BUILD_ROOT%{_bindir}/ftsfind
63 rm -f $RPM_BUILD_ROOT%{_infodir}/find-maint*
64 %find_lang %{name}
65
66 %docs_package
67
68 %lang_package
69
70 %files
71 %manifest %{name}.manifest
72 %defattr(-,root,root,-)
73 %license COPYING
74 %{_bindir}/find
75 %{_bindir}/xargs
76
77 %files locate
78 %manifest %{name}.manifest
79 %defattr(-,root,root,-)
80 %{_bindir}/locate
81 %{_bindir}/updatedb
82 %{_libdir}/find
83 %config(noreplace) %{_sysconfdir}/sysconfig/locate
84
85 %changelog