|
@@ -1,22 +1,18 @@
|
|
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
|
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
|
Summary(ja): GNU コアユーティリティ: シェルスクリプトで用いるツール集
|
|
Summary(ja): GNU コアユーティリティ: シェルスクリプトで用いるツール集
|
|
Name: coreutils
|
|
Name: coreutils
|
|
-Version: 8.10
|
|
+Version: 8.20
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
License: GPL
|
|
License: GPL
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
Url: http://www.gnu.org/software/coreutils/
|
|
Url: http://www.gnu.org/software/coreutils/
|
|
|
|
|
|
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
Source101: coreutils-DIR_COLORS
|
|
Source101: coreutils-DIR_COLORS
|
|
-Source102: coreutils-DIR_COLORS.xterm
|
|
+Source102: coreutils-DIR_COLORS.lightbgcolor
|
|
Source103: coreutils-DIR_COLORS.256color
|
|
Source103: coreutils-DIR_COLORS.256color
|
|
Source105: coreutils-colorls.sh
|
|
Source105: coreutils-colorls.sh
|
|
Source106: coreutils-colorls.csh
|
|
Source106: coreutils-colorls.csh
|
|
-Source200: coreutils-su.pamd
|
|
|
|
-Source201: coreutils-runuser.pamd
|
|
|
|
-Source202: coreutils-su-l.pamd
|
|
|
|
-Source203: coreutils-runuser-l.pamd
|
|
|
|
|
|
|
|
# Vine sources
|
|
# Vine sources
|
|
Source1000: coreutils-8.10-ja.po
|
|
Source1000: coreutils-8.10-ja.po
|
|
@@ -34,38 +30,22 @@ Patch102: coreutils-7.4-sttytcsadrain.patch
|
|
Patch103: coreutils-8.2-uname-processortype.patch
|
|
Patch103: coreutils-8.2-uname-processortype.patch
|
|
#df --direct
|
|
#df --direct
|
|
Patch104: coreutils-df-direct.patch
|
|
Patch104: coreutils-df-direct.patch
|
|
-#add jar-like archives to colored ones
|
|
|
|
-Patch106: coreutils-8.5-dircolors.patch
|
|
|
|
|
|
|
|
# sh-utils
|
|
# sh-utils
|
|
-#Patch703: sh-utils-2.0.11-dateman.patch
|
|
|
|
-Patch704: sh-utils-1.16-paths.patch
|
|
|
|
-# 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-8.5-pam.patch
|
|
|
|
Patch713: coreutils-4.5.3-langinfo.patch
|
|
Patch713: coreutils-4.5.3-langinfo.patch
|
|
|
|
|
|
# (sb) lin18nux/lsb compliance
|
|
# (sb) lin18nux/lsb compliance
|
|
-Patch800: coreutils-8.10-i18n.patch
|
|
+Patch800: coreutils-8.19-i18n.patch
|
|
|
|
|
|
-#Call setsid() in su under some circumstances (bug #173008).
|
|
|
|
-Patch900: coreutils-setsid.patch
|
|
|
|
-#make runuser binary based on su.c
|
|
|
|
-Patch907: coreutils-8.7-runuser.patch
|
|
|
|
#getgrouplist() patch from Ulrich Drepper.
|
|
#getgrouplist() patch from Ulrich Drepper.
|
|
Patch908: coreutils-getgrouplist.patch
|
|
Patch908: coreutils-getgrouplist.patch
|
|
#Prevent buffer overflow in who(1) (bug #158405).
|
|
#Prevent buffer overflow in who(1) (bug #158405).
|
|
Patch912: coreutils-overflow.patch
|
|
Patch912: coreutils-overflow.patch
|
|
-#compile su with pie flag and RELRO protection
|
|
|
|
-Patch917: coreutils-8.4-su-pie.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gettext libtermcap-devel bison
|
|
BuildRequires: gettext libtermcap-devel bison
|
|
-%{?!nopam:BuildRequires: pam-devel}
|
|
|
|
BuildRequires: texinfo >= 4.3
|
|
BuildRequires: texinfo >= 4.3
|
|
-BuildRequires: autoconf >= 2.58, automake >= 1.10
|
|
+BuildRequires: autoconf >= 2.58, automake >= 1.11.2
|
|
-%{?!nopam:Requires: pam >= 0.66-12}
|
|
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libcap-devel
|
|
BuildRequires: libattr-devel
|
|
BuildRequires: libattr-devel
|
|
BuildRequires: libacl-devel
|
|
BuildRequires: libacl-devel
|
|
@@ -82,6 +62,8 @@ Provides: fileutils = %version, sh-utils = %version, stat, textutils = %version
|
|
Obsoletes: fileutils sh-utils stat textutils
|
|
Obsoletes: fileutils sh-utils stat textutils
|
|
Provides: mktemp = %version
|
|
Provides: mktemp = %version
|
|
Obsoletes: mktemp
|
|
Obsoletes: mktemp
|
|
|
|
+# su/runuser moved to util-linux
|
|
|
|
+Requires: util-linux >= 2.22.1
|
|
|
|
|
|
%description
|
|
%description
|
|
These are the GNU core utilities. This package is the combination of
|
|
These are the GNU core utilities. This package is the combination of
|
|
@@ -105,23 +87,18 @@ sh-utils, textutils を統合したパッケージです。
|
|
%patch102 -p1 -b .tcsadrain
|
|
%patch102 -p1 -b .tcsadrain
|
|
%patch103 -p1 -b .sysinfo
|
|
%patch103 -p1 -b .sysinfo
|
|
%patch104 -p1 -b .dfdirect
|
|
%patch104 -p1 -b .dfdirect
|
|
-%patch106 -p1 -b .java
|
|
|
|
|
|
|
|
# sh-utils
|
|
# sh-utils
|
|
#%patch703 -p1 -b .dateman
|
|
#%patch703 -p1 -b .dateman
|
|
-%patch704 -p1 -b .paths
|
|
+#%patch706 -p1 -b .pam
|
|
-%patch706 -p1 -b .pam
|
|
|
|
%patch713 -p1 -b .langinfo
|
|
%patch713 -p1 -b .langinfo
|
|
|
|
|
|
# li18nux/lsb
|
|
# li18nux/lsb
|
|
%patch800 -p1 -b .i18n
|
|
%patch800 -p1 -b .i18n
|
|
|
|
|
|
# Coreutils
|
|
# Coreutils
|
|
-%patch900 -p1 -b .setsid
|
|
|
|
-%patch907 -p1 -b .runuser
|
|
|
|
%patch908 -p1 -b .getgrouplist
|
|
%patch908 -p1 -b .getgrouplist
|
|
%patch912 -p1 -b .overflow
|
|
%patch912 -p1 -b .overflow
|
|
-%patch917 -p1 -b .pie
|
|
|
|
|
|
|
|
# copy updated ja.po
|
|
# copy updated ja.po
|
|
mv po/ja.po po/ja.po.orig
|
|
mv po/ja.po po/ja.po.orig
|
|
@@ -134,28 +111,26 @@ touch aclocal.m4 configure config.hin Makefile.in */Makefile.in
|
|
aclocal -I m4
|
|
aclocal -I m4
|
|
autoconf --force
|
|
autoconf --force
|
|
automake --copy --force --add-missing
|
|
automake --copy --force --add-missing
|
|
-%configure --enable-largefile --with-afs %{?!nopam:--enable-pam} \
|
|
+%configure --enable-largefile \
|
|
- --enable-install-program=su,hostname,arch \
|
|
+ --enable-install-program=hostname,arch \
|
|
--with-tty-group \
|
|
--with-tty-group \
|
|
DEFAULT_POSIX2_VERSION=200112 alternative=199209 || :
|
|
DEFAULT_POSIX2_VERSION=200112 alternative=199209 || :
|
|
|
|
|
|
touch man/*.x
|
|
touch man/*.x
|
|
|
|
|
|
-%__make all %{?_smp_mflags} \
|
|
+%__make all %{?_smp_mflags}
|
|
- %{?!nopam:CPPFLAGS="-DUSE_PAM"} \
|
|
|
|
- su_LDFLAGS="-pie %{?!nopam:-lpam -lpam_misc}"
|
|
|
|
|
|
|
|
%__make -C po update-gmo
|
|
%__make -C po update-gmo
|
|
|
|
|
|
[[ -f ChangeLog && -f ChangeLog.bz2 ]] || bzip2 -9f ChangeLog
|
|
[[ -f ChangeLog && -f ChangeLog.bz2 ]] || bzip2 -9f ChangeLog
|
|
|
|
|
|
# XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp
|
|
# 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
|
|
+sed -i -e 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/run/wtmp,g' doc/coreutils.texi
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
-%makeinstall
|
|
+%__make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
# man pages are not installed with make install
|
|
# man pages are not installed with make install
|
|
%__make mandir=$RPM_BUILD_ROOT%{_mandir} install-man
|
|
%__make mandir=$RPM_BUILD_ROOT%{_mandir} install-man
|
|
@@ -170,7 +145,6 @@ fi
|
|
|
|
|
|
# let be compatible with old fileutils, sh-utils and textutils packages :
|
|
# let be compatible with old fileutils, sh-utils and textutils packages :
|
|
mkdir -p $RPM_BUILD_ROOT{/bin,%_bindir,%_sbindir,/sbin}
|
|
mkdir -p $RPM_BUILD_ROOT{/bin,%_bindir,%_sbindir,/sbin}
|
|
-%{?!nopam:mkdir -p $RPM_BUILD_ROOT%_sysconfdir/pam.d}
|
|
|
|
for f in basename cat chgrp chmod chown cp cut date dd df echo env false \
|
|
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 \
|
|
link ln ls mkdir mknod mktemp mv nice pwd rm rmdir sleep sort \
|
|
stty sync touch true uname unlink
|
|
stty sync touch true uname unlink
|
|
@@ -190,20 +164,11 @@ install -p -c -m644 %SOURCE103 $RPM_BUILD_ROOT%{_sysconfdir}/DIR_COLORS.256color
|
|
install -p -c -m644 %SOURCE105 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/colorls.sh
|
|
install -p -c -m644 %SOURCE105 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/colorls.sh
|
|
install -p -c -m644 %SOURCE106 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/colorls.csh
|
|
install -p -c -m644 %SOURCE106 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/colorls.csh
|
|
|
|
|
|
-# su
|
|
|
|
-install -m 4755 src/su $RPM_BUILD_ROOT/bin
|
|
|
|
-install -m 755 src/runuser $RPM_BUILD_ROOT/sbin
|
|
|
|
-
|
|
|
|
# These come from util-linux and/or procps.
|
|
# These come from util-linux and/or procps.
|
|
for i in hostname uptime kill ; do
|
|
for i in hostname uptime kill ; do
|
|
rm -f $RPM_BUILD_ROOT{%_bindir/$i,%_mandir/man1/$i.1}
|
|
rm -f $RPM_BUILD_ROOT{%_bindir/$i,%_mandir/man1/$i.1}
|
|
done
|
|
done
|
|
|
|
|
|
-%{?!nopam:install -p -m 644 %SOURCE200 $RPM_BUILD_ROOT%_sysconfdir/pam.d/su}
|
|
|
|
-%{?!nopam:install -p -m 644 %SOURCE202 $RPM_BUILD_ROOT%_sysconfdir/pam.d/su-l}
|
|
|
|
-%{?!nopam:install -p -m 644 %SOURCE201 $RPM_BUILD_ROOT%_sysconfdir/pam.d/runuser}
|
|
|
|
-%{?!nopam:install -p -m 644 %SOURCE203 $RPM_BUILD_ROOT%_sysconfdir/pam.d/runuser-l}
|
|
|
|
-
|
|
|
|
bzip2 -f9 old/*/C* || :
|
|
bzip2 -f9 old/*/C* || :
|
|
|
|
|
|
%find_lang %name
|
|
%find_lang %name
|
|
@@ -252,20 +217,18 @@ fi
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%config(noreplace) %{_sysconfdir}/DIR_COLORS*
|
|
%config(noreplace) %{_sysconfdir}/DIR_COLORS*
|
|
%config(noreplace) %{_sysconfdir}/profile.d/*
|
|
%config(noreplace) %{_sysconfdir}/profile.d/*
|
|
-%{?!nopam:%config(noreplace) %{_sysconfdir}/pam.d/su}
|
|
|
|
-%{?!nopam:%config(noreplace) %{_sysconfdir}/pam.d/su-l}
|
|
|
|
-%{?!nopam:%config(noreplace) %{_sysconfdir}/pam.d/runuser}
|
|
|
|
-%{?!nopam:%config(noreplace) %{_sysconfdir}/pam.d/runuser-l}
|
|
|
|
%doc COPYING ABOUT-NLS ChangeLog.bz2 NEWS README THANKS TODO old/*
|
|
%doc COPYING ABOUT-NLS ChangeLog.bz2 NEWS README THANKS TODO old/*
|
|
/bin/*
|
|
/bin/*
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
-%{_libdir}/coreutils
|
|
+%{_libexecdir}/coreutils
|
|
%{_infodir}/coreutils*
|
|
%{_infodir}/coreutils*
|
|
%{_mandir}/man*/*
|
|
%{_mandir}/man*/*
|
|
%{_sbindir}/chroot
|
|
%{_sbindir}/chroot
|
|
-/sbin/runuser
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Nov 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 8.20-1
|
|
|
|
+- update to 8.20
|
|
|
|
+
|
|
* Sat Apr 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 8.10-2
|
|
* Sat Apr 02 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 8.10-2
|
|
- update ja.po
|
|
- update ja.po
|
|
- add BR: libcap-devel, gmp-devel, libattr-devel, libacl-devel
|
|
- add BR: libcap-devel, gmp-devel, libattr-devel, libacl-devel
|