|
@@ -1,36 +1,38 @@
|
|
|
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
|
|
Summary(ja): GNU コアユーティリティ: シェルスクリプトで用いるツール集
|
|
|
-Name: coreutils
|
|
|
-Version: 9.5
|
|
|
-Release: 1%{?_dist_release}
|
|
|
-License: GPL
|
|
|
-Group: system
|
|
|
-Url: https://www.gnu.org/software/coreutils/
|
|
|
-
|
|
|
-Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
|
-Source101: coreutils-DIR_COLORS
|
|
|
-Source102: coreutils-DIR_COLORS.lightbgcolor
|
|
|
-Source103: coreutils-DIR_COLORS.256color
|
|
|
-Source105: coreutils-colorls.sh
|
|
|
-Source106: coreutils-colorls.csh
|
|
|
+Name: coreutils
|
|
|
+Version: 9.5
|
|
|
+Release: 2%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+License: GPL
|
|
|
+URL: https://www.gnu.org/software/coreutils/
|
|
|
+Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
|
+Source101: coreutils-DIR_COLORS
|
|
|
+Source102: coreutils-DIR_COLORS.lightbgcolor
|
|
|
+Source103: coreutils-DIR_COLORS.256color
|
|
|
+Source105: coreutils-colorls.sh
|
|
|
+Source106: coreutils-colorls.csh
|
|
|
|
|
|
# Vine sources
|
|
|
-Source1000: coreutils-8.10-ja.po
|
|
|
+Source1000: coreutils-8.10-ja.po
|
|
|
|
|
|
# disable the test-lock gnulib test prone to deadlock
|
|
|
-Patch100: coreutils-8.26-test-lock.patch
|
|
|
+Patch100: coreutils-8.26-test-lock.patch
|
|
|
|
|
|
# require_selinux_(): use selinuxenabled(8) if available
|
|
|
-Patch105: coreutils-8.26-selinuxenable.patch
|
|
|
+Patch105: coreutils-8.26-selinuxenable.patch
|
|
|
|
|
|
# downstream changes to default DIR_COLORS
|
|
|
-Patch102: coreutils-8.32-DIR_COLORS.patch
|
|
|
+Patch102: coreutils-8.32-DIR_COLORS.patch
|
|
|
|
|
|
#df --direct
|
|
|
-Patch104: coreutils-df-direct.patch
|
|
|
+Patch104: coreutils-df-direct.patch
|
|
|
|
|
|
# (sb) lin18nux/lsb compliance - multibyte functionality patch
|
|
|
-Patch800: coreutils-i18n.patch
|
|
|
+Patch800: coreutils-i18n.patch
|
|
|
|
|
|
#SELINUX Patch - implements Redhat changes
|
|
|
#(upstream did some SELinux implementation unlike with RedHat patch)
|
|
@@ -40,21 +42,30 @@ Patch800: coreutils-i18n.patch
|
|
|
%global __requires_exclude ^%{_bindir}/coreutils$
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: gettext libtermcap-devel bison
|
|
|
-BuildRequires: texinfo >= 4.3
|
|
|
-BuildRequires: autoconf >= 2.58, automake >= 1.11.2
|
|
|
-BuildRequires: libcap-devel
|
|
|
-BuildRequires: libattr-devel
|
|
|
-BuildRequires: libacl-devel
|
|
|
-BuildRequires: gmp-devel
|
|
|
+BuildRequires: gettext libtermcap-devel bison
|
|
|
+BuildRequires: texinfo >= 4.3
|
|
|
+BuildRequires: autoconf >= 2.58, automake >= 1.11.2
|
|
|
+BuildRequires: libcap-devel
|
|
|
+BuildRequires: libattr-devel
|
|
|
+BuildRequires: libacl-devel
|
|
|
+BuildRequires: gmp-devel
|
|
|
|
|
|
# Require a C library that doesn't put LC_TIME files in our way.
|
|
|
-Conflicts: glibc < 2.2
|
|
|
-
|
|
|
-Provides: fileutils = %version, sh-utils = %version, stat, textutils = %version
|
|
|
-Obsoletes: fileutils sh-utils stat textutils
|
|
|
-Provides: mktemp = %version
|
|
|
-Obsoletes: mktemp
|
|
|
+Conflicts: glibc < 2.2
|
|
|
+
|
|
|
+Provides: /usr/bin/cut
|
|
|
+Provides: /usr/bin/env
|
|
|
+
|
|
|
+Provides: fileutils = %{version}-%{release}
|
|
|
+Obsoletes: fileutils < %{version}-%{release}
|
|
|
+Provides: sh-utils = %{version}-%{release}
|
|
|
+Obsoletes: sh-utils < %{version}-%{release}
|
|
|
+Provides: stat = %{version}-%{release}
|
|
|
+Obsoletes: stat < %{version}-%{release}
|
|
|
+Provides: textutils = %{version}-%{release}
|
|
|
+Obsoletes: textutils < %{version}-%{release}
|
|
|
+Provides: mktemp = %{version}-%{release}
|
|
|
+Obsoletes: mktemp < %{version}-%{release}
|
|
|
|
|
|
%description
|
|
|
These are the GNU core utilities. This package is the combination of
|
|
@@ -142,8 +153,6 @@ 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
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
|
|
install -p -c -m644 %SOURCE101 $RPM_BUILD_ROOT%{_sysconfdir}/DIR_COLORS
|
|
@@ -165,15 +174,32 @@ grep LC_TIME %name.lang | cut -d'/' -f1-6 | sed -e 's/) /) %%dir /g' >>%name.lan
|
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
|
|
|
|
|
|
|
|
|
+%ifarch x86_64
|
|
|
%check
|
|
|
# this test will fail on non-real filesystem (overlayfs, etc.).
|
|
|
perl -pi -e 's|^.*inotify-dir-recreate.*$|\\|' tests/local.mk
|
|
|
|
|
|
make check %{?_smp_mflags}
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
-%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+%post
|
|
|
+if [ ! -L /bin ]; then
|
|
|
+ for i in env cut; do
|
|
|
+ if [ ! -e /usr/bin/$i ]; then
|
|
|
+ ln -sf ../../bin/$i /usr/bin/$i
|
|
|
+ fi
|
|
|
+ done
|
|
|
+fi
|
|
|
+
|
|
|
+%triggerpostun -- coreutils < 9.5-2
|
|
|
+if [ ! -L /bin ]; then
|
|
|
+ for i in env cut; do
|
|
|
+ if [ ! -e /usr/bin/$i ]; then
|
|
|
+ ln -sf ../../bin/$i /usr/bin/$i
|
|
|
+ fi
|
|
|
+ done
|
|
|
+fi
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
@@ -191,6 +217,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Jul 07 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.5-2
|
|
|
+- prepared for usrmerge.
|
|
|
+
|
|
|
* Mon Jun 17 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.5-1
|
|
|
- new upstream release.
|
|
|
|