Summary: The GNU versions of common file management utilities. Name: fileutils Version: 4.0x Release: 3kas License: GPL Group: Applications/File Source0: ftp://alpha.gnu.org/gnu/fetish/%{name}-%{version}.tar.gz Source1: DIR_COLORS Source2: colorls.sh Source3: colorls.csh Patch1: fileutils-4.0-spacedir.patch Patch2: fileutils-4.0s-sparc.patch Patch4: fileutils-4.0-samefile.patch Patch5: fileutils-4.0-C.patch Patch7: fileutils-4.0p-strip.patch Patch8: fileutils-4.0x-install-specialbits.patch Patch10: fileutils-4.0x-overwrite.patch Patch11: fileutils-ls-dumbterm.patch Patch12: fileutils-4.0u-glibc22.patch Patch13: fileutils-4.0x-cwd.patch Patch14: fileutils-4.0-closed-stdout.patch Buildroot: %{_tmppath}/%{name}-root Prereq: /sbin/install-info %description The fileutils package includes a number of GNU versions of common and popular file management utilities. Fileutils includes the following tools: chgrp (changes a file's group ownership), chown (changes a file's ownership), chmod (changes a file's permissions), cp (copies files), dd (copies and converts files), df (shows a filesystem's disk usage), dir (gives a brief directory listing), dircolors (the setup program for the color version of the ls command), du (shows disk usage), install (copies files and sets permissions), ln (creates file links), ls (lists directory contents), mkdir (creates directories), mkfifo (creates FIFOs or named pipes), mknod (creates special files), mv (renames files), rm (removes/deletes files), rmdir (removes empty directories), sync (synchronizes memory and disk), touch (changes file timestamps), and vdir (provides long directory listings). You should install the fileutils package, because it includes many file management utilities that you'll use frequently. %prep %setup -q %patch1 -p1 -b .space %patch2 -p1 -b .sparc %patch5 -p1 -b .Coption %patch7 -p1 -b .strip %patch8 -p1 -b .specialbits %patch10 -p1 -b .overwrite %patch11 -p1 -b .dumbterm %patch12 -p1 -b .glibc22 %patch13 -p1 -b .cwd %patch14 -p1 -b .closed-stdout %build unset LINGUAS || : %ifos linux %define _exec_prefix / %endif %configure make %install rm -rf $RPM_BUILD_ROOT %makeinstall ( cd $RPM_BUILD_ROOT %ifos linux mkdir -p .%{_prefix}/bin for i in dir dircolors du install mkfifo shred vdir do mv -f ./bin/$i .%{_prefix}/bin/$i done strip -R .comment ./bin/* || : %endif strip .%{_prefix}/bin/* || : gzip -9nf .%{_infodir}/fileutils* mkdir -p ./etc/profile.d install -c -m 644 %SOURCE1 ./etc install -c -m 755 %SOURCE2 ./etc/profile.d install -c -m 755 %SOURCE3 ./etc/profile.d ) %clean rm -rf $RPM_BUILD_ROOT %post /sbin/install-info %{_infodir}/fileutils.info.gz %{_infodir}/dir %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/fileutils.info.gz %{_infodir}/dir fi %files %defattr(-,root,root) %doc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO %config %{_sysconfdir}/* %ifos linux %{_exec_prefix}/bin/* %endif %{_prefix}/bin/* %{_mandir}/man*/* %{_infodir}/fileutils* %{_prefix}/share/locale/*/*/* %changelog * Fri Oct 13 2000 Jan "Yenya" Kasprzak - Fixed the closed-stdout bug. * Fri Aug 25 2000 Bernhard Rosenkraenzer - Fix up the dircolors initialization script (Bug #16918) * Mon Aug 14 2000 Nalin Dahyabhai - fix a bad optimization that broke du ("du -sk . *") * Thu Aug 3 2000 Bernhard Rosenkraenzer - Update to 4.0x, this fixes cp -r DIR1/ DIR2 * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jul 10 2000 Preston Brown - colorls scripts evaluate ~/.dircolors (#12634) * Mon Jul 3 2000 Bernhard Rosenkraenzer - Fix up colorls.{c,}sh (Bug #13384) - 4.0w (this fixes a relatively critical cp -R bug) * Sat Jun 24 2000 Bernhard Rosenkraenzer - Replace a reference to %%{_prefix}/share/info with %%{_infodir} for backwards compatibility (Bug #12817) - Fix compilation with current glibc * Sat Jun 17 2000 Bernhard Rosenkraenzer - 4.0u (2 bugfixes) * Thu Jun 1 2000 Matt Wilson - fix usage of configure and makeinstall macros - use _infodir macros - fixed filelist to be more generic * Wed May 31 2000 Bernhard Rosenkraenzer - 4.0s (important bugfixes + interesting new chown option --from=) - some tweaks to spec file - fix up filesystem layout for new FSSTND (/usr/share/man ...) - fix build on sparc - fix up installation with the new configure macro * Sat Apr 8 2000 Bernhard Rosenkraenzer - 4.0q * Tue Mar 07 2000 Cristian Gafton - get rid of 'ls -C' crap. It breaks pipes * Fri Mar 3 2000 Bernhard Rosenkraenzer - Don't use color-ls on dumb terminals * Thu Feb 17 2000 Bernhard Rosenkraenzer - Fix up mv behavior when overwriting a write-protected file without -f (Bug #6246) * Wed Feb 16 2000 Cristian Gafton - take out the default -F argument to ls (the extra chars are breaking scripts) * Wed Feb 9 2000 Bernhard Rosenkraenzer - Back out the cp -x fix, as it breaks cp -r. I'll look into really fixing it when I have the time; for now, -r is more important than -x. * Mon Feb 7 2000 Bernhard Rosenkraenzer - Fix up the cp -x option (Bug #8726) * Sun Feb 6 2000 Bernhard Rosenkraenzer - don't produce a fatal error on -s when strip fails - handle special bits with install -m (Bug #7080) * Wed Feb 2 2000 Bernhard Rosenkraenzer - 4.0p stuff: quote multibyte characters correctly. * Tue Feb 01 2000 Cristian Gafton - add patch to disable st_size computation for devices (hjl) * Fri Jan 28 2000 Nalin Dahyabhai - disable DOOR type, which makes tcsh unhappy - gzipped man pages * Wed Jan 5 2000 Bernhard Rosenkraenzer - Fixes from 4.0m * Sun Dec 12 1999 Bernhard Rosenkraenzer - Fix output of mkdir --verbose -p (Bug #7770) * Thu Nov 18 1999 Bernhard Rosenkraenzer - Fix a typo in colorls.sh - Add the -C option to install for compatibility with *BSD - unset LINGUAS in spec file to fix build on most 6.1 installations * Wed Nov 17 1999 Bernhard Rosenkraenzer - Add colorls.sh/colorls.csh to /etc/profile.d (Newbies are likely to like them, professionals who don't will know how to remove them. Also, they're compatible with DLD) - Modify /etc/DIR_COLORS: - recognize .bz2, .bz, .tz, .png, .sh, .csh, .rpm, .cpio, .tif - recognize color_xterm, dtterm, rxvt and cons25 as colorizable * Fri Sep 24 1999 Cristian Gafton - don't apply the samefile patch anymore (breaks globbing). Patch still included in the src.rpm for a later day fix * Mon Sep 13 1999 Cristian Gafton - fix my patch some more and use lstat instead * Sat Sep 11 1999 Bill Nottingham - fix gafton's patch ;) * Fri Sep 10 1999 Cristian Gafton - patch to stop "mv b b" from creating a stupid b/b directory. * Tue Aug 31 1999 Jeff Johnson - install -D should create DEST not SOURCE filename (#3339). * Mon Aug 23 1999 Preston Brown - fixed display of symlinked directories in ls (#4561) * Wed Jul 28 1999 Cristian Gafton - correctly display mount points that have spaces in them (#3317) * Tue Mar 23 1999 Cristian Gafton - version 4.0 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 12) * Thu Aug 06 1998 Erik Troan - got install-info stuff working in %post/%pre * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Thu Apr 09 1998 Cristian Gafton - manhattan rebuild - added %clean * Wed Oct 22 1997 Erik Troan - minor patch for glibc 2.1 * Mon Oct 20 1997 Erik Troan - install-info turned off, as it creates a prereq loop * Fri Oct 17 1997 Donnie Barnes - install-info turned on - added BuildRoot * Mon Sep 15 1997 Erik Troan - can't use install-info until %post -p allows argument passing * Sun Sep 14 1997 Erik Troan - uses install-info * Fri May 16 1997 Erik Troan - rebuilt for glibc. * Tue Feb 25 1997 Erik Troan - Hacked at mktime() test to work on 64 bit machines w/ broken mktime(). I told Ulrich Drepper and Richard Henderson about this, so hopefully glibc will get fixed. * Thu Feb 20 1997 Michael Fulbright - Updated to version 3.16.