Name: coreutils Version: 8.16 Release: 1mamba2 Summary: A GNU set of tools commonly used in shell scripts Group: System/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.gnu.org/software/coreutils/ Source0: ftp://ftp.gnu.org/gnu/coreutils/%{name}-%{version}.tar.xz Source1: coreutils-pam-su Patch0: %{name}-7.6-langinfo.patch # http://www.linuxfromscratch.org/patches/downloads/coreutils Patch2: %{name}-8.16-i18n-1.patch Patch3: %{name}-5.2.1-su_paths.patch Patch5: %{name}-8.4-pam.patch Patch6: %{name}-6.9-uname_element_unknown.patch Patch7: %{name}-6.9-su_setrootpaths.patch Patch8: %{name}-6.9-rename_futimens.patch Patch9: %{name}-8.4-cross_compile.patch Patch10: %{name}-8.14-uname-1.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: bash BuildRequires: glibc-devel BuildRequires: pam-devel %if "%{stage1}" != "1" BuildRequires: perl-Digest-SHA1 %endif BuildRequires: texinfo ## AUTOBUILDREQ-END BuildRequires: gettext-devel BuildRequires: bison BuildRequires: autoconf >= 2.58 BuildRequires: automake >= 1.8 Requires(post):%{__install_info} %if "%{stage1}" != "1" Requires: perl-Digest-SHA1 %endif Provides: fileutils = %{version} Provides: sh-utils = %{version} Provides: textutils = %{?epoch:%epoch:}%{version} Provides: mktemp Obsoletes: textutils BuildRoot: %{_tmppath}/%{name}-%{version}-root %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 and 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. %prep %setup -q %patch0 -p1 -b .langinfo # lin18nux/LSB compliance %patch2 -p1 -b .i18n %patch3 -p1 -b .su_paths # RMS will never accept the PAM patch because it removes his historical # rant about Twenex and the wheel group, so we'll (Fedora) continue to # maintain it here indefinitely %patch5 -p1 -b .pam %patch6 -p1 -b .uname_element_unknown.patch #%patch7 -p1 -b .su_setrootpaths.patch #%patch9 -p1 %patch10 -p1 # docs should say /var/run/[uw]tmp not /etc/[uw]tmp sed -i 's,/etc/utmp,/var/run/utmp,g; s,/etc/wtmp,/var/run/wtmp,g' doc/coreutils.texi %build export CFLAGS="%{optflags} -fpic -D_GNU_SOURCE=1" # see: ./lib/config.h CONFIG_OPTS="DEFAULT_POSIX2_VERSION=200112" %if "%{_host}" != "%{_build}" # disable help2man execution sed -i "s|\.x\.1:|disabled.x.1:|" man/Makefile.in cat > config.cache << _EOF fu_cv_sys_stat_statvfs=yes gl_cv_func_sleep_works=yes _EOF %endif touch aclocal.m4 configure config.hin Makefile.in */Makefile.in #aclocal -I m4 && #autoconf --force && #automake-1.10 --copy --add-missing && %configure ${CONFIG_OPTS} \ %if "%{_host}" != "%{_build}" --cache-file=config.cache %endif # export CPPFLAGS="-DUSE_PAM" %make all LDFLAGS="-lpam -lpam_misc" \ %if "%{_host}" != "%{_build}" LIB_SELINUX="-lsepol -lselinux" %endif # LIB_PAM="-lpam -lpam_misc" #% else #% make all #% endif [ -f ChangeLog -a ! -f ChangeLog.bz2 ] && bzip2 -9f ChangeLog # don't run basic-1 test, since it breaks when run in the background sed -i '/basic-1/d' tests/Makefile* chmod a+x tests/misc/sort-mb-tests # FIXME: cut test fails; disabling it sed -i '/misc\/cut/d' tests/Makefile* # run the test suite %if "%{_host}" == "%{_build}" %ifnarch arm #env RUN_EXPENSIVE_TESTS=yes make check make check || make check %endif %endif %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall install -d %{buildroot}{/bin,%_bindir,%_sbindir} for f in basename cat chgrp chmod chown cp cut date dd df echo env false \ link ln ls mkdir mknod mktemp mv nice pwd rm rmdir sleep sort stty sync \ touch true uname unlink; do [ -f %{buildroot}%{_bindir}/$f ] && mv %{buildroot}{%_bindir,/bin}/$f done # mktemp: create a link for backward compatibility ln -sf /bin/mktemp %{buildroot}%{_bindir}/mktemp mv %{buildroot}%{_bindir}/chroot %{buildroot}%{_sbindir} # These tools come from other packages for f in hostname groups kill uptime; do rm -f %{buildroot}{%_bindir/$f,%_mandir/man1/${f}.1} done install src/su %{buildroot}/bin/su install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/pam.d/su ln -sf ../../bin/env %{buildroot}%{_bindir}/env ln -sf ../usr/bin/install %{buildroot}/bin/install %find_lang %{name} %post %install_info %{name}.info exit 0 %preun %uninstall_info %{name}.info exit 0 %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %attr(4775,root,root) /bin/su %config %{_sysconfdir}/pam.d/su /bin/* %{_bindir}/* %{_sbindir}/* %{_libexecdir}/coreutils/libstdbuf.so %{_infodir}/* %{_mandir}/man1/* %doc AUTHORS THANKS #%doc AUTHORS ChangeLog* NEWS README TODO #%doc THANKS THANKS-to-translators THANKStt.in %changelog * Wed May 09 2012 Silvan Calarco 8.16-1mamba2 - mamba2 milestone rebuild * Wed Apr 04 2012 Automatic Build System 8.16-1mamba - automatic version update by autodist * Wed Jan 25 2012 Automatic Build System 8.15-1mamba - automatic version update by autodist * Fri Oct 14 2011 Automatic Build System 8.14-1mamba - update to 8.14 * Fri Jul 22 2011 Automatic Build System 8.12-1mamba - automatic update by autodist * Sun Feb 13 2011 Automatic Build System 8.10-1mamba - automatic update by autodist * Wed Jan 05 2011 Automatic Build System 8.9-1mamba - automatic update by autodist * Thu Dec 23 2010 Automatic Build System 8.8-1mamba - automatic update to 8.8 by autodist * Sun Nov 14 2010 Automatic Build System 8.7-1mamba - automatic update to 8.7 by autodist * Fri Oct 29 2010 Automatic Build System 8.6-1mamba - automatic update by autodist * Mon Jul 12 2010 Automatic Build System 8.5-2mamba - automatic rebuild by autodist * Sat May 08 2010 Automatic Build System 8.5-1mamba - automatic update to 8.5 by autodist * Fri Apr 09 2010 Silvan Calarco 8.4-2mamba - re-enabled the pam patch from fedora * Thu Jan 14 2010 Automatic Build System 8.4-1mamba - automatic update to 8.4 by autodist * Fri Jan 08 2010 Automatic Build System 8.3-1mamba - automatic update to 8.3 by autodist * Mon Dec 21 2009 Automatic Build System 8.2-1mamba - automatic update by autodist * Sun Oct 11 2009 Automatic Build System 7.6-1mamba - automatic update to 7.6 by autodist * Thu Sep 10 2009 Automatic Build System 7.5-1mamba - automatic update by autodist * Fri May 08 2009 Automatic Build System 7.4-1mamba - automatic update to 7.4 by autodist * Wed Apr 15 2009 Silvan Calarco 7.2-1mamba - automatic update to 7.2 by autodist * Tue Jul 01 2008 Silvan Calarco 6.12-1mamba - update to 6.12 - add provide for mktemp - updated i18n patch from Fedora CVS (http://cvs.fedoraproject.org) - dropped rename_futimens patch applied upstream * Wed Jan 23 2008 Silvan Calarco 6.9-7mamba - rebuild with rpm 4.4.9 * Tue Jul 03 2007 Silvan Calarco 6.9-6mamba - removed unused prereq for shadow-common * Mon Jul 02 2007 Silvan Calarco 6.9-5mamba - su pam file fixed (remove use of pam_stack.so in favour of include directive) * Mon Apr 30 2007 Silvan Calarco 6.9-4mamba - fix exit errors on pre and post scripts * Thu Apr 19 2007 Silvan Calarco 6.9-3mamba - restore the su_setrootpaths patch for setting non-login root path * Wed Apr 17 2007 Davide Madrisan 6.9-2mamba - fixed the output of uname * Wed Apr 04 2007 Davide Madrisan 6.9-1mamba - update to version 6.9 - dropped the patch used to allow tools to accept obsolete options defined in POSIX 1003.2-1992 - dropped coreutils-5.2.1-su_setrootpaths.patch: merged upstream - dropped the now obsolete coreutils-6.9-uname.patch used to fix uname output * Tue Sep 06 2005 Silvan Calarco 5.2.1-12qilnx - fixes for ppc build * Thu Jul 21 2005 Silvan Calarco 5.2.1-11qilnx - su: set root paths (/sbin,/usr/sbin) for non simulated login escalations * Thu May 18 2005 Silvan Calarco 5.2.1-10qilnx - added %%config before /etc/pam.d/su * Wed May 18 2005 Silvan Calarco 5.2.1-9qilnx - added su with pam support, will replace shadow-tools's su * Thu Apr 14 2005 Davide Madrisan 5.2.1-8qilnx - obsoletes `textutils' present in old QiLinux releases * Fri Apr 08 2005 Davide Madrisan 5.2.1-7qilnx - fixed uname output * Fri Apr 08 2005 Davide Madrisan 5.2.1-6qilnx - allow old options if the environment variable POSIXLY_CORRECT in not set * Tue Apr 05 2005 Davide Madrisan 5.2.1-5qilnx - added patch to made coreutils LSB compliant * Wed Oct 27 2004 Silvan Calarco 5.2.1-4qilnx - moved install to /bin and made symlink in /usr/bin * Fri Sep 17 2004 Silvan Calarco 5.2.1-3qilnx - fixed the symlink to /bin/env in /usr/bin/env * Thu Sep 02 2004 Davide Madrisan 5.2.1-2qilnx - fixed path for some coreutils tools * Mon Mar 15 2004 Davide Madrisan 5.2.1-1qilnx - new version rebuild * Tue Feb 24 2004 Davide Madrisan 5.2.0-1qilnx - package updated to last stable version available * Wed Nov 05 2003 Davide Madrisan 5.0.91-1qilnx - rebuilt with version 5.0.91 * Mon May 09 2003 Silvan Calarco 4.5.12-2qilnx - removed hostname executable and man page (the one from net-tools will be used) - removed su (conflicting with shadow-utils) - removed /bin/kill, /bin/groups, /bin/uptime * Mon May 09 2003 Silvan Calarco 4.5.12-1qilnx - first build as a replacement of old sh-utils, file-utils, text-utils packages