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

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

spec: findutils, r641, fix xargs stop in freadahead.

File size: 2.4 KB
Line 
1Summary: The GNU versions of find utilities (find and xargs)
2Name: findutils
3Version: 4.4.2
4Release: 3%{?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 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
40make %{?_smp_mflags}
41
42#%check
43#make check
44
45%install
46rm -rf $RPM_BUILD_ROOT
47make install DESTDIR=$RPM_BUILD_ROOT
48
49rm -f $RPM_BUILD_ROOT%{_infodir}/dir
50rm -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 rename find.exe to find-unix.exe and place a symlink for script compatibility
62mv $RPM_BUILD_ROOT%_bindir/find.exe $RPM_BUILD_ROOT%_bindir/find-unix.exe
63ln -s /@unixroot/usr/bin/find-unix.exe $RPM_BUILD_ROOT%_bindir/find
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69# -f %{name}.lang
70%defattr(-,root,root,-)
71%doc AUTHORS COPYING NEWS README THANKS TODO
72%{_bindir}/find
73%{_bindir}/find-unix.exe
74%{_bindir}/oldfind.exe
75%{_bindir}/xargs.exe
76%{_bindir}/locate.exe
77%{_bindir}/updatedb
78%{_libexecdir}/*
79%{_mandir}/man1/*
80%{_mandir}/man5/*
81%{_infodir}/find.info*
82%{_infodir}/find-maint.info
83%{_datadir}/locale/*
84
85%changelog
86* Wed Jun 05 2013 yd
87- r641, fix xargs stop in freadahead.
88
89* Thu Mar 14 2013 yd
90- rename find.exe to find-unix.exe and add symlink.
91
92* Sun Jan 08 2012 yd
93- initial unixroot build.
Note: See TracBrowser for help on using the repository browser.