resetting manifest requested domain to floor
[platform/upstream/findutils.git] / packaging / findutils.spec
1 Name:           findutils
2 Url:            http://www.gnu.org/software/findutils/
3 Version:        4.5.10
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   --without-included-regex \
53   --without-fts \
54   --enable-d_type-optimisation
55 make %{?_smp_mflags}
56
57 %check
58 make check
59
60 %install
61 %make_install
62
63 install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/locate
64 rm -f $RPM_BUILD_ROOT%{_bindir}/oldfind
65 rm -f $RPM_BUILD_ROOT%{_bindir}/ftsfind
66 rm -f $RPM_BUILD_ROOT%{_infodir}/find-maint*
67 %find_lang %{name}
68
69 %docs_package
70
71 %lang_package
72
73 %files
74 %manifest %{name}.manifest
75 %defattr(-,root,root,-)
76 %license COPYING
77 %{_bindir}/find
78 %{_bindir}/xargs
79
80 %files locate
81 %manifest %{name}.manifest
82 %defattr(-,root,root,-)
83 %{_bindir}/locate
84 %{_bindir}/updatedb
85 %{_libdir}/find
86 %config(noreplace) %{_sysconfdir}/sysconfig/locate
87
88 %changelog