source: spec/trunk/SPECS/findutils.spec@ 360

Last change on this file since 360 was 360, checked in by Yuri Dario, 12 years ago

spec: findutils, disabled FTS code, now find works as before.

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