Fixed package group and set license
[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
12 %description
13 The findutils package contains programs which will help you locate
14 files on your system.  The find utility searches through a hierarchy
15 of directories looking for files which match a certain set of criteria
16 (such as a file name pattern).  The xargs utility builds and executes
17 command lines from standard input arguments (usually lists of file
18 names generated by the find command).
19
20 You should install findutils because it includes tools that are very
21 useful for finding things on your system.
22
23
24 %package locate
25 Summary:        Tool for Locating Files (findutils subpackage)
26 Group:          Base/Tools
27 Provides:       findutils:/usr/bin/locate
28 Requires:       findutils = %{version}
29
30 %description locate
31 This package contains the locate program which is part of the GNU
32 findutils software suite.
33
34 You can find files fast using locate.  On installing findutils-locate
35 an additional daily cron job will be added to the cron system. This
36 job will update the files database every night or shortly after
37 switching on the computer.
38
39 %prep
40 %setup -q
41
42 %build
43 %ifarch %arm armv5tel armv7l armv7el armv5el
44 # this is a workaround for a qemu-user bug, we hit. A qemu patch is being discussed, but for now ...
45 export DEFAULT_ARG_SIZE="(31u * 1024u)"
46 %endif
47 %configure \
48   --libexecdir=%{_libdir}/find \
49   --localstatedir=/var/lib \
50   --without-included-regex \
51   --without-fts \
52   --enable-d_type-optimisation
53 make %{?_smp_mflags}
54
55 %check
56 make check
57
58 %install
59 %make_install
60
61 install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/locate
62 rm -f $RPM_BUILD_ROOT%{_bindir}/oldfind
63 rm -f $RPM_BUILD_ROOT%{_bindir}/ftsfind
64 rm -f $RPM_BUILD_ROOT%{_infodir}/find-maint*
65 %find_lang %{name}
66
67 %docs_package
68
69 %lang_package
70
71 %files
72 %defattr(-,root,root,-)
73 %license COPYING
74 %{_bindir}/find
75 %{_bindir}/xargs
76
77 %files locate
78 %defattr(-,root,root,-)
79 %{_bindir}/locate
80 %{_bindir}/updatedb
81 %{_libdir}/find
82 %config(noreplace) %{_sysconfdir}/sysconfig/locate
83
84 %changelog