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

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

spec: coreutils, findutils, fixed libexec dir for symlinks, added debug package.

File size: 3.1 KB
Line 
1Summary: The GNU versions of find utilities (find and xargs)
2Name: findutils
3Version: 4.4.2
4Release: 6%{?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%package debug
30Summary: HLL debug data for exception handling support.
31
32%description debug
33HLL debug data for exception handling support.
34
35
36%prep
37%setup -q
38%patch0 -p1
39
40%build
41export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
42export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
43export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
44export LIBS="-lurpo -lmmap"
45%configure \
46 --without-fts \
47 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
48make %{?_smp_mflags}
49
50#%check
51#make check
52
53%install
54rm -rf $RPM_BUILD_ROOT
55make install DESTDIR=$RPM_BUILD_ROOT
56
57rm -f $RPM_BUILD_ROOT%{_infodir}/dir
58rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
59
60#%find_lang %{name}
61
62# move find to /bin/find
63#mkdir -p $RPM_BUILD_ROOT/bin
64#mv $RPM_BUILD_ROOT{%_bindir,/bin}/find
65
66# create /usr/bin/find -> /bin/find symlink
67#ln -sf ../../bin/find $RPM_BUILD_ROOT/usr/bin
68
69# yd move conflicting tools to libexec/bin and place a symlink for script compatibility
70mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/bin
71for i in find; do
72 mv $RPM_BUILD_ROOT%{_bindir}/$i.exe $RPM_BUILD_ROOT%{_libexecdir}/bin/$i.exe
73 ln -s %{_libexecdir}/bin/$i.exe $RPM_BUILD_ROOT%{_bindir}/$i
74done
75
76%clean
77rm -rf $RPM_BUILD_ROOT
78
79%files
80# -f %{name}.lang
81%defattr(-,root,root,-)
82%doc AUTHORS COPYING NEWS README THANKS TODO
83%{_bindir}/find
84%{_bindir}/ftsfind.exe
85%{_bindir}/xargs.exe
86%{_bindir}/locate.exe
87%{_bindir}/updatedb
88%{_libexecdir}/*
89%{_mandir}/man1/*
90%{_mandir}/man5/*
91%{_infodir}/find.info*
92%{_infodir}/find-maint.info
93%{_datadir}/locale/*
94%exclude %{_bindir}/*.dbg
95%exclude %{_libexecdir}/*.dbg
96%exclude %{_libexecdir}/bin/*.dbg
97
98%files debug
99%defattr(-,root,root)
100%{_bindir}/*.dbg
101%{_libexecdir}/*.dbg
102%{_libexecdir}/bin/*.dbg
103
104%changelog
105* Sat Mar 15 2014 yd
106- fixed libexec dir for symlinks.
107- added debug package with symbolic info for exceptq.
108
109* Tue Jul 30 2013 yd
110- disabled FTS code, now find works as before.
111
112* Wed Jul 24 2013 yd
113- move conflicting tools to libexec/bin.
114
115* Wed Jun 05 2013 yd
116- r641, fix xargs stop in freadahead.
117
118* Thu Mar 14 2013 yd
119- rename find.exe to find-unix.exe and add symlink.
120
121* Sun Jan 08 2012 yd
122- initial unixroot build.
Note: See TracBrowser for help on using the repository browser.