2 # TODO: check patches in {sh-,file,text}utils packages
10 Group: Applications/System
11 Source0: ftp://alpha.gnu.org/gnu/fetish/%{name}-%{version}.tar.bz2
13 Patch0: %{name}-ac_fix.patch
14 Patch1: %{name}-pam.patch
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 BuildRequires: gettext-devel
17 BuildRequires: autoconf >= 2.54
18 BuildRequires: automake >= 1.7
19 # when no spec requires sh/file/text utils Provides can be removed
29 These are the GNU core utilities. This package is the union of
30 the GNU fileutils, sh-utils, and textutils packages.
32 Most of these programs have significant advantages over their Unix
33 counterparts, such as greater speed, additional options, and fewer
36 The programs that can be built with this package are:
38 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
39 df dir dircolors dirname du echo env expand expr factor false fmt fold
40 ginstall head hostid id join link ln logname ls md5sum mkdir mkfifo
41 mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx
42 pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync
43 tac tail tee test touch tr true tsort tty uname unexpand uniq unlink
44 users vdir wc who whoami yes
47 Narzêdzia podstawowe (core utilities) GNU to po³±czone paczki GNU
48 fileutils, sh-utils i textutils.
50 Wiêkszo¶æ z zawartych programów jest znacznie ulepszona w porównaniu
51 z ich Uniksowymi odpowiednikami, np. szybciej dzia³aj±, maj± dodatkowe
52 opcje i mniej ograniczeñ.
54 Programy zawarte w tej paczce to:
56 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd
57 df dir dircolors dirname du echo env expand expr factor false fmt fold
58 ginstall head hostid id join link ln logname ls md5sum mkdir mkfifo
59 mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx
60 pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync
61 tac tail tee test touch tr true tsort tty uname unexpand uniq unlink
62 users vdir wc who whoami yes
72 mv -f m4/inttypes.m4~ m4/inttypes.m4
84 ln -s ginstall install
87 rm -rf $RPM_BUILD_ROOT
88 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
89 %{__make} -C man install DESTDIR=$RPM_BUILD_ROOT mandir="%{_mandir}"
90 %{__make} -C doc install DESTDIR=$RPM_BUILD_ROOT prefix="%{_datadir}"
92 (cd $RPM_BUILD_ROOT%{_mandir}/man1
93 rm -f uptime* hostname* groups*
96 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir},%{_infodir},%{_mandir}/man1,/bin,%{_sysconfdir}/pam.d}
98 install src/{dir,dircolors,dirname,du,env,expr,factor,hostid,logname,mkfifo,\
99 pathchk,pinky,printenv,printf,seq,shred,stat,tee,tty,users,vdir,who,whoami,\
100 yes,cksum,comm,csplit,cut,expand,fmt,fold,head,join,md5sum,nohup,nl,od,paste,\
101 pr,ptx,sha1sum,split,sum,tac,tail,test,tr,tsort,unexpand,uniq,wc,ginstall,\
102 install,[} $RPM_BUILD_ROOT%{_bindir}
104 install src/{basename,cat,chgrp,chmod,chown,cp,date,dd,df,echo,false,id,link,\
105 ln,ls,mkdir,mknod,mv,nice,pwd,rm,rmdir,sleep,sort,stty,su,sync,touch,true,\
106 unlink,uname} $RPM_BUILD_ROOT/bin
108 install src/chroot $RPM_BUILD_ROOT%{_sbindir}
110 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/su
114 rm -rf $RPM_BUILD_ROOT
117 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
120 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
122 %files -f %{name}.lang
123 %defattr(644,root,root,755)
126 %attr(755,root,root) /bin/[^s]*
127 %attr(755,root,root) /bin/s[^u]*
128 %attr(4755,root,root) /bin/su
130 %attr(755,root,root) %{_bindir}/*
131 %attr(755,root,root) %{_sbindir}/*
132 %{_sysconfdir}/pam.d/*