# fileutils: rh-4.1-4 # sh-utils: rh-2.0.12-2 # for sh-utils : %define optflags $RPM_OPT_FLAGS -D_GNU_SOURCE=1 Summary: The GNU core utilities: a set of tools commonly used in shell scripts Name: coreutils Version: 4.5.7 Release: 1mdk License: GPL Group: System/Base Url: ftp://alpha.gnu.org/gnu/coreutils/ Source0: ftp://prep.ai.mit.edu/pub/gnu/%name/%name-%version.tar.bz2 Source101: DIR_COLORS Source102: readlink.c Source103: readlink.1 Source200: su.pamd Source201: help2man # textutils Source501: textutils-2.0-po-update.tar.bz2 Source510: textutils-chinese-locales.tar.bz2 Patch0: coreutils-4.5.4-lug.patch.bz2 # fileutils Patch101: fileutils-4.0-spacedir.patch.bz2 Patch102: fileutils-4.0s-sparc.patch.bz2 Patch103: coreutils-4.5.2-trunc.patch.bz2 Patch105: coreutils-4.5.2-C.patch.bz2 Patch107: fileutils-4.1.10-timestyle.patch.bz2 Patch108: fileutils-4.1.5-afs.patch.bz2 Patch111: coreutils-4.5.2-dumbterm.patch.bz2 Patch112: fileutils-4.0u-glibc22.patch.bz2 Patch113: coreutils-4.5.2-nolibrt.patch.bz2 Patch114: fileutils-4.1-restorecolor.patch.bz2 Patch115: fileutils-4.1.1-FBoptions.patch.bz2 Patch1155: fileutils-4.1-force-option--override--interactive-option.patch.bz2 Patch116: fileutils-4.1-dircolors_c.patch.bz2 Patch117: fileutils-4.1-ls_c.patch.bz2 Patch118: fileutils-4.1-ls_h.patch.bz2 Patch152: coreutils-4.5.7-touch_errno.patch.bz2 Patch153: fileutils-4.1.10-utmp.patch.bz2 Patch180: coreutils-4.5.7-fr-fix.patch.bz2 Patch500: textutils-2.0.17-mem.patch.bz2 Patch502: textutils-2.0.21-man.patch.bz2 # sh-utils Patch702: coreutils-4.5.7-utmp.patch.bz2 Patch703: sh-utils-2.0.11-dateman.patch.bz2 Patch704: sh-utils-1.16-paths.patch.bz2 # RMS will never accept the PAM patch because it removes his historical # rant about Twenex and the wheel group, so we'll continue to maintain # it here indefinitely. Patch706: coreutils-4.5.2-pam.patch.bz2 Patch710: sh-utils-2.0-rfc822.patch.bz2 Patch711: sh-utils-2.0.12-hname.patch.bz2 # (sb) lin18nux/lsb compliance Patch800: coreutils-4.5.7-i18n.patch.bz2 BuildRoot: %_tmppath/%{name}-root BuildRequires: gettext libtermcap-devel pam-devel texinfo Requires: pam >= 0.66-12 Provides: fileutils = %version, sh-utils = %version, stat, textutils = %version Obsoletes: fileutils sh-utils stat textutils Conflicts: tetex < 1.0.7-49mdk %description These are the GNU core utilities. This package is the union of the old GNU fileutils, sh-utils, and textutils packages. These tools're the GNU versions of common useful and popular file & text utilities which are used for: - file management - shell scripts - modifying text file (spliting, joining, comparing, modifying, ...) Most of these programs have significant advantages over their Unix counterparts, such as greater speed, additional options, and fewer arbitrary limits. The following tools're included: basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold ginstall groups head hostid hostname id join kill link ln logname ls md5sum mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr printenv printf ptx pwd rm rmdir seq sha1sum shred sleep sort split stat stty su sum sync tac tail tee test touch tr true tsort tty uname unexpand uniq unlink uptime users vdir wc who whoami yes %package doc Summary: Coreutils documentation in info format Group: Books/Computer books Requires: coreutils >= 4.5.4-2mdk Prereq: /sbin/install-info %description doc This package %prep %setup -q %patch0 -p1 -b .lug mv po/{lg,lug}.po # fileutils %patch101 -p1 -b .space %patch102 -p1 -b .sparc %patch103 -p0 -b .trunc %patch105 -p0 -b .Coption %patch107 -p1 -b .timestyle %patch108 -p1 -b .afs %patch111 -p0 -b .dumbterm %patch112 -p1 -b .glibc22 %patch113 -p1 -b .nolibrt %patch114 -p1 -b .restore %patch115 -p1 -b .FBopts %patch1155 -p1 %patch116 -p1 %patch117 -p1 %patch118 -p1 %patch152 -p1 %patch153 -p1 %patch180 -p1 -b .frfix # textutils %patch500 -p1 # patch in new ALL_LINGUAS %patch502 -p1 # sh-utils %patch702 -p1 -b .utmp %patch703 -p1 -b .dateman %patch704 -p1 -b .paths %patch706 -p1 -b .pam %patch710 -p1 -b .rfc822 # li18nux/lsb %patch800 -p1 -b .i18n %build touch aclocal.m4 configure config.hin Makefile.in */Makefile.in */*/Makefile.in %configure --enable-largefile --enable-pam || : make all CPPFLAGS="-DUSE_PAM" su_LDFLAGS="-lpam -lpam_misc" gcc -o readlink $RPM_OPT_FLAGS %SOURCE102 unset LINGUAS || : for i in AUTOMAKE ACLOCAL;do perl -pi -e "s%^$i = .*$%$i = /bin/true%g" Makefile.in;done %configure2_5x [[ -f ChangeLog && -f ChangeLog.bz2 ]] || bzip2 -9f ChangeLog %make # XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp perl -pi -e 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/run/wtmp,g' doc/coreutils.texi cp %SOURCE201 man/help2man chmod +x man/help2man %install rm -rf $RPM_BUILD_ROOT %makeinstall_std # man pages are not installed with make install make mandir=$RPM_BUILD_ROOT%{_mandir} install-man # fix japanese catalog file if [ -d $RPM_BUILD_ROOT/%{_datadir}/locale/ja_JP.EUC/LC_MESSAGES ]; then mkdir -p $RPM_BUILD_ROOT/%{_datadir}/locale/ja/LC_MESSAGES mv $RPM_BUILD_ROOT/%{_datadir}/locale/ja_JP.EUC/LC_MESSAGES/*mo \ $RPM_BUILD_ROOT/%{_datadir}/locale/ja/LC_MESSAGES rm -rf $RPM_BUILD_ROOT/%{_datadir}/locale/ja_JP.EUC fi # let be compatible with old fileutils, sh-utils and textutils packages : mkdir -p $RPM_BUILD_ROOT{/bin,%_bindir,%_sbindir,%_sysconfdir/pam.d} for f in basename cat chgrp chmod chown cp cut date dd df echo env false id link ln ls mkdir mknod mv nice pwd rm rmdir sleep sort stat stty sync touch true uname unlink do mv $RPM_BUILD_ROOT/{%_bindir,bin}/$f done # chroot was in /usr/sbin : mv $RPM_BUILD_ROOT/{%_bindir,%_sbindir}/chroot # {cat,sort,cut} were previously moved from bin to /usr/bin and linked into for i in env cut; do ln -sf ../../bin/$i $RPM_BUILD_ROOT/usr/bin; done install -c -m644 %SOURCE101 $RPM_BUILD_ROOT/etc/ # readlink install readlink $RPM_BUILD_ROOT/usr/bin install -m644 %SOURCE103 $RPM_BUILD_ROOT%_mandir/man1 # su install -m 4755 src/su $RPM_BUILD_ROOT/bin # These come from util-linux and/or procps. for i in hostname uptime ; do rm -f $RPM_BUILD_ROOT{%_bindir/$i,%_mandir/man1/${i}.1} done install -m 644 %SOURCE200 $RPM_BUILD_ROOT%_sysconfdir/pam.d/su ln -sf test $RPM_BUILD_ROOT%_bindir/[ bzip2 -f9 old/*/C* || : %find_lang %name # (sb) Deal with Installed (but unpackaged) file(s) found rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir %clean rm -rf $RPM_BUILD_ROOT %pre doc # We must desinstall theses info files since they're merged in # coreutils.info. else their postun'll be runned too last # and install-info'll faill badly because of doubles for file in sh-utils.info textutils.info fileutils.info; do if [ -f /usr/share/info/$file.bz2 ]; then /sbin/install-info /usr/share/info/$file.bz2 --dir=/usr/share/info/dir --remove &> /dev/null fi done %preun doc %_remove_install_info %name.info %post doc %_install_info %name.info # The next true is needed: else, if there's a problem, the # package'll be installed 2 times because of trigger faillure true %files -f %{name}.lang %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/D* %config(noreplace) /etc/pam.d/su %doc README /bin/* %_bindir/* %_sbindir/chroot %files doc %defattr(-,root,root) %doc ABOUT-NLS ChangeLog.bz2 NEWS THANKS TODO old/* %_infodir/coreutils* %_mandir/man*/* %changelog * Thu Feb 13 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.7-1mdk - new release - rediff patch 152, 180, 702, 800 * Thu Jan 16 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.4-4mdk - move more docs to doc subpackage to reduce minimal system * Tue Jan 14 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.4-3mdk - move prereq on install-info from main package to doc subpackage * Mon Jan 13 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.4-2mdk - split up the doc because of drakx * Fri Jan 03 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.4-1mdk - new release - rediff patches 0, 180 * Sun Nov 17 2002 Stew Benedict <sbenedict@mandrakesoft.com> 4.5.3-2mdk - LI18NUX/LSB compliance (patch800) - Installed (but unpackaged) file(s) - /usr/share/info/dir * Thu Oct 31 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.3-1mdk - new release - rediff patch 180 - merge patch 150 into 180 * Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-6mdk - move su back to /bin * Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-5mdk - patch 0 : lg locale is illegal and must be renamed lug (pablo) * Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-4mdk - fix conflict with procps * Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-3mdk - patch 105 : fix install -s * Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-2mdk - fix build - don't chmode two times su - build with large file support - fix description - various spec cleanups - fix chroot installation - fix missing /bin/env - add old fileutils, sh-utils & textutils ChangeLogs * Fri Oct 11 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-1mdk - initial release (merge fileutils, sh-utils & textutils) - obsoletes/provides: sh-utils/fileutils/textutils - fileutils stuff go in 1xx range - sh-utils stuff go in 7xx range - textutils stuff go in 5xx range - drop obsoletes patches 1, 2, 10 (somes files're gone but we didn't ship most of them) - rediff patches 103, 105, 111, 113, 180, 706 - temporary disable patch 3 & 4 - fix fileutils url