1 | Summary: The GNU versions of find utilities (find and xargs)
|
---|
2 | Name: findutils
|
---|
3 | Version: 4.4.2
|
---|
4 | Release: 4%{?dist}
|
---|
5 | Epoch: 1
|
---|
6 | License: GPLv3+
|
---|
7 | Group: Applications/File
|
---|
8 | URL: http://www.gnu.org/software/findutils/
|
---|
9 | Source0: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
|
---|
10 |
|
---|
11 | Patch0: findutils-os2.patch
|
---|
12 |
|
---|
13 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
14 | #BuildRequires: libtool, automake, autoconf
|
---|
15 | #BuildRequires: dejagnu, texinfo
|
---|
16 | BuildRequires: gettext-devel
|
---|
17 |
|
---|
18 | %description
|
---|
19 | The findutils package contains programs which will help you locate
|
---|
20 | files on your system. The find utility searches through a hierarchy
|
---|
21 | of directories looking for files which match a certain set of criteria
|
---|
22 | (such as a file name pattern). The xargs utility builds and executes
|
---|
23 | command lines from standard input arguments (usually lists of file
|
---|
24 | names generated by the find command).
|
---|
25 |
|
---|
26 | You should install findutils because it includes tools that are very
|
---|
27 | useful for finding things on your system.
|
---|
28 |
|
---|
29 | %prep
|
---|
30 | %setup -q
|
---|
31 | %patch0 -p1
|
---|
32 |
|
---|
33 | %build
|
---|
34 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
---|
35 | export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
---|
36 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
37 | export LIBS="-lurpo -lmmap"
|
---|
38 | %configure \
|
---|
39 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
---|
40 | make %{?_smp_mflags}
|
---|
41 |
|
---|
42 | #%check
|
---|
43 | #make check
|
---|
44 |
|
---|
45 | %install
|
---|
46 | rm -rf $RPM_BUILD_ROOT
|
---|
47 | make install DESTDIR=$RPM_BUILD_ROOT
|
---|
48 |
|
---|
49 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
---|
50 | rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
|
---|
51 |
|
---|
52 | #%find_lang %{name}
|
---|
53 |
|
---|
54 | # move find to /bin/find
|
---|
55 | #mkdir -p $RPM_BUILD_ROOT/bin
|
---|
56 | #mv $RPM_BUILD_ROOT{%_bindir,/bin}/find
|
---|
57 |
|
---|
58 | # create /usr/bin/find -> /bin/find symlink
|
---|
59 | #ln -sf ../../bin/find $RPM_BUILD_ROOT/usr/bin
|
---|
60 |
|
---|
61 | # yd move conflicting tools to libexec/bin and place a symlink for script compatibility
|
---|
62 | mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/bin
|
---|
63 | for i in find; do
|
---|
64 | mv $RPM_BUILD_ROOT%_bindir/$i.exe $RPM_BUILD_ROOT%{_libexecdir}/bin/$i.exe
|
---|
65 | ln -s /@unixroot/usr/bin/libexec/bin/$i.exe $RPM_BUILD_ROOT%_bindir/$i
|
---|
66 | done
|
---|
67 |
|
---|
68 | %clean
|
---|
69 | rm -rf $RPM_BUILD_ROOT
|
---|
70 |
|
---|
71 | %files
|
---|
72 | # -f %{name}.lang
|
---|
73 | %defattr(-,root,root,-)
|
---|
74 | %doc AUTHORS COPYING NEWS README THANKS TODO
|
---|
75 | %{_bindir}/find
|
---|
76 | %{_bindir}/oldfind.exe
|
---|
77 | %{_bindir}/xargs.exe
|
---|
78 | %{_bindir}/locate.exe
|
---|
79 | %{_bindir}/updatedb
|
---|
80 | %{_libexecdir}/*
|
---|
81 | %{_mandir}/man1/*
|
---|
82 | %{_mandir}/man5/*
|
---|
83 | %{_infodir}/find.info*
|
---|
84 | %{_infodir}/find-maint.info
|
---|
85 | %{_datadir}/locale/*
|
---|
86 |
|
---|
87 | %changelog
|
---|
88 | * Wed Jul 24 2013 yd
|
---|
89 | - move conflicting tools to libexec/bin.
|
---|
90 |
|
---|
91 | * Wed Jun 05 2013 yd
|
---|
92 | - r641, fix xargs stop in freadahead.
|
---|
93 |
|
---|
94 | * Thu Mar 14 2013 yd
|
---|
95 | - rename find.exe to find-unix.exe and add symlink.
|
---|
96 |
|
---|
97 | * Sun Jan 08 2012 yd
|
---|
98 | - initial unixroot build.
|
---|