Репозиторий Sisyphus
Последнее обновление: 5 февраля 2023 | Пакетов: 18173 | Посещений: 26644982
en ru br
Репозитории ALT
5.1: 7.6-alt1
4.1: 6.11-alt1
4.0: 5.97-alt6
3.0: 5.3.1-alt0.4

Другие репозитории

Группа :: Система/Основа
Пакет: coreutils

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: coreutils
Version: 5.97
Release: alt6
%define srcname %name-%version

Summary: The GNU versions of common management utilities
License: GPL
Group: System/Base
Url: http://www.gnu.org/software/coreutils/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# ftp://ftp.gnu.org/gnu/coreutils/%srcname.tar.bz2

# ftp://alpha.gnu.org/gnu/coreutils/%srcname.tar.bz2
Source: %srcname.tar
Source1: coreutils-ru.po

# sources from fileutils

Source11: color_ls.sh
Source12: color_ls.csh

# sources from sh-utils

Source20: exit.c
Source21: getuseruid.c
Source22: realpath.c
Source23: runas.c
Source24: runbg.c
Source25: usleep.c
Source26: runas.1
Source27: usleep.1
Source28: true.1
Source29: false.1

# ALT patches, candidates for upstream version

# and CVS backports.
Patch0: coreutils-5.97-cvs-20060628.patch
Patch1: coreutils-5.91-up-ls-usage.patch
Patch2: coreutils-5.91-eggert-ls-time-style.patch
Patch3: coreutils-5.97-up-cut.patch
Patch4: coreutils-5.97-up-copy_internal.patch
Patch5: coreutils-5.97-up-newhashes.patch
Patch6: coreutils-5.97-up-getpwd-openat.patch
Patch7: coreutils-5.91-alt-hostname.patch

# ALT/Owl specific.

Patch101: coreutils-5.92-owl-info-true-false.patch
Patch102: coreutils-5.91-alt-mksock.patch
Patch103: coreutils-5.91-alt-owl-dircolors.patch
Patch104: coreutils-5.3.0-alt-without-su-uptime.patch
Patch105: coreutils-5.3.1-alt-ls-dir-vdir.patch
Patch106: coreutils-5.91-alt-posix2_version.patch

# RH.

Patch202: coreutils-5.2.0-rh-install_strip.patch
Patch203: coreutils-5.3.1-rh-owl-alt-ls_dumbterm.patch
Patch204: coreutils-5.91-rh-alt-langinfo.patch
Patch205: coreutils-5.97-rh-cifs.patch
Patch206: coreutils-5.2.0-rh-alt-ls-stat.patch
Patch207: coreutils-5.97-rh-remove_cwd_entries.patch

Provides: /bin/cat /bin/cut /bin/du /bin/head /bin/hostname /bin/install
Provides: /bin/mkfifo /bin/readlink /bin/sort /bin/tail /bin/wc
Provides: /sbin/chroot
Provides: %_bindir/mksock %_bindir/realpath

Provides: stat = %version, fileutils = %version, textutils = %version, sh-utils = %version
Obsoletes: stat, fileutils, textutils, sh-utils
Conflicts: man-pages < 0:1.52-alt2, initscripts < 0:5.49-ipl41mdk, rpm-build < 0:4.0.4-alt7
# due to /bin/kill
Conflicts: util-linux < 0:2.12-alt1
# due to /usr/bin/kill and %_man1dir/kill.1
Conflicts: procps < 0:2.0.10-alt4
# due to incompatible change in "readlink -f"
Conflicts: chrooted < 0:0.3.1-alt1
# due to buggy rpmdups/rpmrdups
Conflicts: rpm-utils < 0:0.7.6-alt1
# due to hostname
Conflicts: net-tools < 0:1.60-alt9

Requires(post): %install_info
Requires(preun): %uninstall_info

# due to autopoint

BuildPreReq: cvs

# due to ls

BuildRequires: libtinfo-devel

# due to exit.c

BuildRequires: glibc-devel-static

These are the GNU core utilities.  This package is the union of
the GNU fileutils, sh-utils, and textutils packages.

These tools are the GNU versions of common useful and popular
file and text utilities which are used for:
+ file management
+ shell scripting
+ modifying text file

Most of these programs have significant advantages over their Unix
counterparts, such as greater speed, additional options, and fewer
arbitrary limits.

%setup -q -n %srcname
install -pm644 %_sourcedir/coreutils-ru.po po/ru.po

# ALT patches, candidates for upstream version

# and CVS backports.
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p0
%patch7 -p1

# ALT specific.

%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1

# RH.

%patch202 -p1
%patch203 -p1
%patch204 -p1
%patch205 -p1
#FIXME#%patch206 -p1
%patch207 -p1

find -type f -name \*.orig -delete

# Get rid of su and uptime.

rm {src,man}/{su,uptime}.*

# "dist_" is redundant, as sources are distributed by default.

%__subst 's/dist_man_MANS/man_MANS/g' man/Makefile.am

# Docs should say /var/run/[uw]tmp, not /etc/[uw]tmp.

grep -Zl /etc/[uw]tmp doc/* man/* |
xargs -r0 %__subst -p 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/log/wtmp,g'

# rm -f for easy CVS vs release builds.

rm -f doc/*.info* man/*.1

# Stable autoconf is sufficient to build coreutils for GNU/Linux.

grep -lZ 'AC_PREREQ(2\.59[^)]\+)' m4/*.m4 |
xargs -r0 %__subst 's/AC_PREREQ(2\.59[^)]\+)/AC_PREREQ(2.59)/' --

bzip2 -9k ChangeLog NEWS THANKS

autoreconf -fisv

# hack to disable uptime build.

export gnulib_cv_have_boot_time=no

%configure --exec-prefix=/
make -C po update-po

: ${SHELL:=/bin/sh} ${VERBOSE:=no}
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}

# Build our version of true and false.

%__cc %optflags -W -U_FORTIFY_SOURCE -fno-stack-protector -static \
-nostartfiles -nodefaultlibs -nostdlib %_sourcedir/exit.c \
-DSTATUS=0 -o true
%__cc %optflags -W -U_FORTIFY_SOURCE -fno-stack-protector -static \
-nostartfiles -nodefaultlibs -nostdlib %_sourcedir/exit.c \
-DSTATUS=1 -o false

# Build additional utilities.

for n in getuseruid realpath runas runbg usleep; do
%__cc %optflags "%_sourcedir/$n.c" -o $n

install -pD -m644 src/dircolors.hin "%buildroot%_sysconfdir/DIR_COLORS"

pushd "%buildroot"
mkdir -p bin

# %_bindir -> /bin relocations

       for n in \
basename cat chgrp chmod chown cp cut date dd df du echo \
false head hostname install kill link ln ls mkdir mkfifo \
mknod mv nice pwd readlink rm rmdir sleep sort stty sync \
tail touch true uname unlink wc \
; do
mv .%_bindir/$n bin/

# dir and vdir now symlinks to ls

ln -snf ../../bin/ls .%_bindir/dir
ln -snf ../../bin/ls .%_bindir/vdir

# compatibility symlinks

for n in cat cut du head install kill mkfifo sort tail wc; do
ln -s ../../bin/$n .%_bindir/

# test

ln -snf test .%_bindir/[

# chroot

mkdir -p sbin .%_sbindir
mv .%_bindir/chroot sbin/
ln -s ../../sbin/chroot .%_sbindir/

# hostname

for n in dnsdomainname domainname nisdomainname ypdomainname; do
ln -s hostname ./bin/$n
ln -s hostname.1 ./%_man1dir/$n.1

mkdir -p .%_sysconfdir/profile.d
install -pm755 %_sourcedir/color_ls.{sh,csh} .%_sysconfdir/profile.d/
ln -s ../../bin/install .%_bindir/ginstall

# Install assembler versions of true and false and their manpages.

install -pm755 true false %buildroot/bin/
install -pm644 %_sourcedir/{true,false}.1 %buildroot%_mandir/man1/

# Install additional utilities and their manpages.

install -pm755 getuseruid runas usleep %buildroot/bin/
install -pm755 realpath runbg %buildroot%_bindir/
install -pm644 %_sourcedir/{runas,usleep}.1 %buildroot%_man1dir/

%find_lang %name

# Remove info pages from fileutils, textutils and sh-utils.
for f in %_infodir/{fileutils,textutils,sh-utils}.info*; do
[ -f "$f" ] || continue
RPM_INSTALL_ARG1=0 %_sbindir/uninstall_info "$f" ||:

%install_info %name.info

%uninstall_info %name.info

%files -f %name.lang
%config(noreplace) %_sysconfdir/DIR_COLORS
%config(noreplace) %_sysconfdir/profile.d/*
%doc AUTHORS ChangeLog.bz2 NEWS.bz2 README THANKS.bz2 TODO


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin