2 # TODO: check patches in {sh-,file,text}utils packages
3 # e.g. su in coreutils doesn't have PAM support!!!
11 Group: Applications/System
12 Source0: ftp://alpha.gnu.org/gnu/fetish/%{name}-%{version}.tar.bz2
14 Patch1: %{name}-pam.patch
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 BuildRequires: autoconf >= 2.54
17 BuildRequires: automake >= 1.7
18 # when no spec requires sh/file/text utils Provides can be removed
28 These are the GNU core utilities. This package is the union of
29 the GNU fileutils, sh-utils, and textutils packages.
31 Most of these programs have significant advantages over their Unix
32 counterparts, such as greater speed, additional options, and fewer
35 The programs that can be built with this package are:
37 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
38 df dir dircolors dirname du echo env expand expr factor false fmt fold
39 ginstall head hostid id join link ln logname ls md5sum mkdir mkfifo
40 mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx
41 pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync
42 tac tail tee test touch tr true tsort tty uname unexpand uniq unlink
43 users vdir wc who whoami yes
46 Narzêdzia podstawowe (core utilities) GNU to po³±czone paczki GNU
47 fileutils, sh-utils i textutils.
49 Wiêkszo¶æ z zawartych programów jest znacznie ulepszona w porównaniu
50 z ich Uniksowymi odpowiednikami, np. szybciej dzia³aj±, maj± dodatkowe
51 opcje i mniej ograniczeñ.
53 Programy zawarte w tej paczce to:
55 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
56 df dir dircolors dirname du echo env expand expr factor false fmt fold
57 ginstall head hostid id join link ln logname ls md5sum mkdir mkfifo
58 mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx
59 pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync
60 tac tail tee test touch tr true tsort tty uname unexpand uniq unlink
61 users vdir wc who whoami yes
80 ln -s ginstall install
83 rm -rf $RPM_BUILD_ROOT
84 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
85 %{__make} -C man install DESTDIR=$RPM_BUILD_ROOT mandir="%{_mandir}"
86 %{__make} -C doc install DESTDIR=$RPM_BUILD_ROOT prefix="%{_datadir}"
88 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_infodir},%{_mandir}/man1,/bin,%{_sysconfdir}/pam.d}
90 install src/{dir,dircolors,dirname,du,env,expr,factor,hostid,logname,mkfifo,pathchk,pinky,printenv,printf,seq,shred,stat,tee,tty,users,vdir,who,whoami,yes,\
91 cksum,comm,csplit,cut,expand,fmt,fold,head,join,md5sum,nl,od,paste,pr,ptx,sha1sum,split,sum,tac,tail,tr,tsort,unexpand,uniq,wc,ginstall,install,test,[} \
92 $RPM_BUILD_ROOT%{_bindir}
93 install src/nohup $RPM_BUILD_ROOT%{_bindir}
95 install src/{basename,cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,id,link,ln,ls,mkdir,mknod,mv,nice,pwd,rm,rmdir,sleep,sort,stty,su,sync,test,touch,true,unlink,uname} $RPM_BUILD_ROOT/bin
97 install src/chroot $RPM_BUILD_ROOT%{_sbindir}
99 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/su
103 rm -rf $RPM_BUILD_ROOT
106 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
109 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
111 %files -f %{name}.lang
112 %defattr(644,root,root,755)
114 %attr(755,root,root) /bin/*
115 %attr(755,root,root) %{_bindir}/*
116 %attr(755,root,root) %{_sbindir}/*
117 %{_sysconfdir}/pam.d/*