mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
chore(el10): remove packages (#3321)
* chore(el10): remove bazzite-specific packages * chore(el10): remove misc packages either in upstream or are not maintained in terra Ref: #2876 * revert: "chore(el10): remove bazzite-specific packages" Ref:d5d5b6958f* chore(el10): rm mesa-freeworld and packages in haskell and zig * rm: xyproto-{env,textoutput,vt100} (#3302) Close #3088. (cherry picked from commit1efece3) --------- Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
*.tar.gz
|
||||
@@ -1,8 +0,0 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "uutils-coreutils-replace.spec"
|
||||
}
|
||||
labels {
|
||||
subrepo = "extras"
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
# skip everything for non-interactive shells
|
||||
if (! $?prompt) exit
|
||||
|
||||
# color-ls initialization
|
||||
if ( $?USER_LS_COLORS ) then
|
||||
if ( "$USER_LS_COLORS" != "" ) then
|
||||
#when USER_LS_COLORS defined do not override user
|
||||
#specified LS_COLORS and use them
|
||||
goto finish
|
||||
endif
|
||||
endif
|
||||
|
||||
alias ll 'ls -l'
|
||||
alias l. 'ls -d .*'
|
||||
set COLORS=/etc/DIR_COLORS
|
||||
|
||||
if ($?TERM) then
|
||||
if ( -e "/etc/DIR_COLORS.$TERM" ) then
|
||||
set COLORS="/etc/DIR_COLORS.$TERM"
|
||||
endif
|
||||
endif
|
||||
if ( -f ~/.dircolors ) set COLORS=~/.dircolors
|
||||
if ( -f ~/.dir_colors ) set COLORS=~/.dir_colors
|
||||
if ($?TERM) then
|
||||
if ( -f ~/.dircolors."$TERM" ) set COLORS=~/.dircolors."$TERM"
|
||||
if ( -f ~/.dir_colors."$TERM" ) set COLORS=~/.dir_colors."$TERM"
|
||||
endif
|
||||
set INCLUDE="`/usr/bin/cat "$COLORS" | /usr/bin/grep '^INCLUDE' | /usr/bin/cut -d ' ' -f2-`"
|
||||
|
||||
if ( ! -e "$COLORS" ) exit
|
||||
|
||||
set _tmp="`/usr/bin/mktemp .colorlsXXX -q --tmpdir=/tmp`"
|
||||
#if mktemp fails, exit when include was active, otherwise use $COLORS file
|
||||
if ( "$_tmp" == '' ) then
|
||||
if ( "$INCLUDE" == '' ) then
|
||||
eval "`/usr/bin/dircolors -c $COLORS`"
|
||||
endif
|
||||
goto cleanup
|
||||
endif
|
||||
|
||||
if ( "$INCLUDE" != '' ) /usr/bin/cat "$INCLUDE" >> $_tmp
|
||||
/usr/bin/grep -v '^INCLUDE' "$COLORS" >> $_tmp
|
||||
|
||||
eval "`/usr/bin/dircolors -c $_tmp`"
|
||||
|
||||
/usr/bin/rm -f $_tmp
|
||||
|
||||
if ( "$LS_COLORS" == '' ) exit
|
||||
cleanup:
|
||||
set color_none=`/usr/bin/sed -n '/^COLOR.*none/Ip' < $COLORS`
|
||||
if ( "$color_none" != '' ) then
|
||||
unset color_none
|
||||
exit
|
||||
endif
|
||||
unset color_none
|
||||
unset _tmp
|
||||
unset INCLUDE
|
||||
unset COLORS
|
||||
|
||||
finish:
|
||||
alias ll 'ls -l --color=auto'
|
||||
alias l. 'ls -d .* --color=auto'
|
||||
alias ls 'ls --color=auto'
|
||||
@@ -1,53 +0,0 @@
|
||||
# color-ls initialization
|
||||
|
||||
# Skip all for noninteractive shells.
|
||||
[ ! -t 0 ] && return
|
||||
|
||||
#when USER_LS_COLORS defined do not override user LS_COLORS, but use them.
|
||||
if [ -z "$USER_LS_COLORS" ]; then
|
||||
|
||||
alias ll='ls -l' 2>/dev/null
|
||||
alias l.='ls -d .*' 2>/dev/null
|
||||
|
||||
INCLUDE=
|
||||
COLORS=
|
||||
|
||||
for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \
|
||||
"$HOME/.dir_colors" "$HOME/.dircolors"; do
|
||||
[ -e "$colors" ] && COLORS="$colors" && \
|
||||
INCLUDE="`/usr/bin/cat "$COLORS" | /usr/bin/grep '^INCLUDE' | /usr/bin/cut -d ' ' -f2-`" && \
|
||||
break
|
||||
done
|
||||
|
||||
[ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.$TERM" ] && \
|
||||
COLORS="/etc/DIR_COLORS.$TERM"
|
||||
|
||||
[ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS" ] && \
|
||||
COLORS="/etc/DIR_COLORS"
|
||||
|
||||
# Existence of $COLORS already checked above.
|
||||
[ -n "$COLORS" ] || return
|
||||
|
||||
if [ -e "$INCLUDE" ];
|
||||
then
|
||||
TMP="`/usr/bin/mktemp .colorlsXXX -q --tmpdir=/tmp`"
|
||||
[ -z "$TMP" ] && return
|
||||
|
||||
/usr/bin/cat "$INCLUDE" >> $TMP
|
||||
/usr/bin/grep -v '^INCLUDE' "$COLORS" >> $TMP
|
||||
|
||||
eval "`/usr/bin/dircolors --sh $TMP 2>/dev/null`"
|
||||
/usr/bin/rm -f $TMP
|
||||
else
|
||||
eval "`/usr/bin/dircolors --sh $COLORS 2>/dev/null`"
|
||||
fi
|
||||
|
||||
[ -z "$LS_COLORS" ] && return
|
||||
/usr/bin/grep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return
|
||||
fi
|
||||
|
||||
unset TMP COLORS INCLUDE
|
||||
|
||||
alias ll='ls -l --color=auto' 2>/dev/null
|
||||
alias l.='ls -d .* --color=auto' 2>/dev/null
|
||||
alias ls='ls --color=auto' 2>/dev/null
|
||||
@@ -1,40 +0,0 @@
|
||||
--- coreutils-*/Cargo.toml
|
||||
+++ coreutils-*/Cargo.toml
|
||||
@@ -18,6 +18,7 @@
|
||||
categories = ["command-line-utilities"]
|
||||
rust-version = "1.79.0"
|
||||
edition = "2021"
|
||||
+autobins = false
|
||||
|
||||
build = "build.rs"
|
||||
|
||||
@@ -325,7 +326,7 @@
|
||||
rand_core = "0.6.4"
|
||||
rayon = "1.10"
|
||||
regex = "1.10.4"
|
||||
-rstest = "0.24.0"
|
||||
+rstest = ">=0.24"
|
||||
rust-ini = "0.21.0"
|
||||
same-file = "1.0.6"
|
||||
self_cell = "1.0.4"
|
||||
@@ -514,7 +515,7 @@
|
||||
rstest = { workspace = true }
|
||||
|
||||
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dev-dependencies]
|
||||
-procfs = { version = "0.17", default-features = false }
|
||||
+procfs = { version = ">=0.16, <0.18", default-features = false }
|
||||
|
||||
[target.'cfg(unix)'.dev-dependencies]
|
||||
nix = { workspace = true, features = ["process", "signal", "user", "term"] }
|
||||
@@ -537,11 +538,6 @@
|
||||
name = "coreutils"
|
||||
path = "src/bin/coreutils.rs"
|
||||
-
|
||||
-[[bin]]
|
||||
-name = "uudoc"
|
||||
-path = "src/bin/uudoc.rs"
|
||||
-required-features = ["uudoc"]
|
||||
|
||||
# The default release profile. It contains all optimizations, without
|
||||
# sacrificing debug info. With this profile (like in the standard
|
||||
# release profile), the debug info and the stack traces will still be available.
|
||||
@@ -1,134 +0,0 @@
|
||||
--- a/tests/by-util/test_seq.rs
|
||||
+++ b/tests/by-util/test_seq.rs
|
||||
@@ -381,80 +381,80 @@
|
||||
#[test]
|
||||
fn test_width_negative_zero_scientific_notation() {
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0e0", "1"])
|
||||
+ .args(&["-w", "--", "-0e0", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-0\n01\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0e0", "1", "2"])
|
||||
+ .args(&["-w", "--", "-0e0", "1", "2"])
|
||||
.succeeds()
|
||||
.stdout_only("-0\n01\n02\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0e0", "1", "2.0"])
|
||||
+ .args(&["-w", "--", "-0e0", "1", "2.0"])
|
||||
.succeeds()
|
||||
.stdout_only("-0\n01\n02\n");
|
||||
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0e+1", "1"])
|
||||
+ .args(&["-w", "--", "-0e+1", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-00\n001\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0e+1", "1", "2"])
|
||||
+ .args(&["-w", "--", "-0e+1", "1", "2"])
|
||||
.succeeds()
|
||||
.stdout_only("-00\n001\n002\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0e+1", "1", "2.0"])
|
||||
+ .args(&["-w", "--", "-0e+1", "1", "2.0"])
|
||||
.succeeds()
|
||||
.stdout_only("-00\n001\n002\n");
|
||||
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e0", "1"])
|
||||
+ .args(&["-w", "--", "-0.000e0", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.000\n01.000\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e0", "1", "2"])
|
||||
+ .args(&["-w", "--", "-0.000e0", "1", "2"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.000\n01.000\n02.000\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e0", "1", "2.0"])
|
||||
+ .args(&["-w", "--", "-0.000e0", "1", "2.0"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.000\n01.000\n02.000\n");
|
||||
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e-2", "1"])
|
||||
+ .args(&["-w", "--", "-0.000e-2", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.00000\n01.00000\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e-2", "1", "2"])
|
||||
+ .args(&["-w", "--", "-0.000e-2", "1", "2"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.00000\n01.00000\n02.00000\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e-2", "1", "2.0"])
|
||||
+ .args(&["-w", "--", "-0.000e-2", "1", "2.0"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.00000\n01.00000\n02.00000\n");
|
||||
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e5", "1"])
|
||||
+ .args(&["-w", "--", "-0.000e5", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-000000\n0000001\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e5", "1", "2"])
|
||||
+ .args(&["-w", "--", "-0.000e5", "1", "2"])
|
||||
.succeeds()
|
||||
.stdout_only("-000000\n0000001\n0000002\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e5", "1", "2.0"])
|
||||
+ .args(&["-w", "--", "-0.000e5", "1", "2.0"])
|
||||
.succeeds()
|
||||
.stdout_only("-000000\n0000001\n0000002\n");
|
||||
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e5", "1"])
|
||||
+ .args(&["-w", "--", "-0.000e5", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-000000\n0000001\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e5", "1", "2"])
|
||||
+ .args(&["-w", "--", "-0.000e5", "1", "2"])
|
||||
.succeeds()
|
||||
.stdout_only("-000000\n0000001\n0000002\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-0.000e5", "1", "2.0"])
|
||||
+ .args(&["-w", "--", "-0.000e5", "1", "2.0"])
|
||||
.succeeds()
|
||||
.stdout_only("-000000\n0000001\n0000002\n");
|
||||
}
|
||||
@@ -493,7 +493,7 @@
|
||||
#[test]
|
||||
fn test_width_negative_decimal_notation() {
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-.1", ".1", ".11"])
|
||||
+ .args(&["-w", "--", "-.1", ".1", ".11"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.1\n00.0\n00.1\n");
|
||||
}
|
||||
@@ -501,19 +501,19 @@
|
||||
#[test]
|
||||
fn test_width_negative_scientific_notation() {
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-1e-3", "1"])
|
||||
+ .args(&["-w", "--", "-1e-3", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.001\n00.999\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-1.e-3", "1"])
|
||||
+ .args(&["-w", "--", "-1.e-3", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.001\n00.999\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-1.0e-4", "1"])
|
||||
+ .args(&["-w", "--", "-1.0e-4", "1"])
|
||||
.succeeds()
|
||||
.stdout_only("-0.00010\n00.99990\n");
|
||||
new_ucmd!()
|
||||
- .args(&["-w", "-.1e2", "10", "100"])
|
||||
+ .args(&["-w", "--", "-.1e2", "10", "100"])
|
||||
.succeeds()
|
||||
.stdout_only(
|
||||
"-010
|
||||
@@ -1 +0,0 @@
|
||||
rpm.version(crates("coreutils"));
|
||||
@@ -1,118 +0,0 @@
|
||||
%global coreutils_ver 9.3
|
||||
%if 0%{?fedora} >= 42
|
||||
### Temporary solution, will be fixed on newer Oniguruma releases.
|
||||
%global build_cflags %{__build_flags_lang_c} %{?_distro_extra_cflags} -std=c18 -std=gnu18
|
||||
%endif
|
||||
|
||||
Name: uutils-coreutils-replace
|
||||
Version: 0.0.29
|
||||
Release: 1%?dist
|
||||
Summary: Cross-platform Rust rewrite of the GNU coreutils
|
||||
License: MIT
|
||||
URL: https://github.com/uutils/coreutils
|
||||
Source0: %url/archive/refs/tags/%version.tar.gz
|
||||
Source1: https://src.fedoraproject.org/rpms/coreutils/raw/rawhide/f/coreutils-colorls.sh
|
||||
Source2: https://src.fedoraproject.org/rpms/coreutils/raw/rawhide/f/coreutils-colorls.csh
|
||||
Source3: https://raw.githubusercontent.com/coreutils/coreutils/refs/heads/master/src/dircolors.hin
|
||||
Patch0: coreutils-fix-metadata.diff
|
||||
Patch1: coreutils-fix-seq-neg-num-tests.diff
|
||||
Patch3: https://src.fedoraproject.org/rpms/coreutils/raw/rawhide/f/coreutils-8.32-DIR_COLORS.patch
|
||||
BuildRequires: anda-srpm-macros
|
||||
BuildRequires: cargo
|
||||
BuildRequires: clang-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libselinux-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: rustfmt
|
||||
BuildRequires: selinux-policy-devel
|
||||
Requires: glibc
|
||||
Provides: coreutils
|
||||
Provides: coreutils-common
|
||||
Conflicts: uutils-coreutils
|
||||
|
||||
%description
|
||||
uutils coreutils is a cross-platform reimplementation of the GNU coreutils in Rust.
|
||||
While all programs have been implemented, some options might be missing or different
|
||||
behavior might be experienced.
|
||||
|
||||
This package replaces the GNU coreutils commands.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n coreutils-%version
|
||||
%cargo_prep_online
|
||||
cp %{SOURCE3} .
|
||||
sed dircolors.hin \
|
||||
-e 's| 00;36$| 01;36|' \
|
||||
> DIR_COLORS
|
||||
sed dircolors.hin \
|
||||
-e 's| 01;31$| 00;31|' \
|
||||
-e 's| 01;35$| 00;35|' \
|
||||
> DIR_COLORS.lightbgcolor
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
export CARGOFLAGS="-vv --verbose"
|
||||
install -p -c -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/colorls.sh
|
||||
install -p -c -Dm644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/colorls.csh
|
||||
install -p -c -Dm644 DIR_COLORS{,.lightbgcolor} %{buildroot}%{_sysconfdir}
|
||||
/usr/bin/rm dircolors.hin DIR_COLORS DIR_COLORS.lightbgcolor
|
||||
%make_install PROFILE_CMD='--profile=rpm' MULTICALL=n DESTDIR=%buildroot BUILDDIR=target/rpm PREFIX=%_prefix SELINUX_ENABLED=1 SKIP_UTILS='hostname kill more uptime' &
|
||||
wait
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha1sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha224sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha256sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha384sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha512sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha3-224sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha3-256sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha3-384sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha3-512sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/sha3sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/shake128sum
|
||||
ln -sr hashsum %{buildroot}%{_bindir}/shake256sum
|
||||
|
||||
%define cmds() $(echo %1{runcon,arch,base{32,64,name,nc},cat,ch{grp,mod,own,root,con},cksum,comm,cp,csplit,cut,date,dd,df,dir{,colors,name},du,echo,env,expand,expr,factor,false,fmt,fold,groups,hashsum,head,host{id},id,install,join,link,ln,logname,ls,mk{dir,fifo,nod,temp},mv,nice,nl,nohup,nproc,numfmt,od,paste,pathchk,pinky,pr,printenv,printf,ptx,pwd,readlink,realpath,rm{,dir},seq,shred,shuf,sleep,sort,split,stat,stdbuf,sum,sync,tac,tail,tee,test,timeout,touch,tr,true,truncate,tsort,tty,uname,un{expand,iq,link},users,vdir,wc,who{,ami},yes}%2)
|
||||
cat <<EOF > files.txt
|
||||
%cmds %_bindir/ ""
|
||||
%_bindir/[
|
||||
%cmds %_datadir/bash-completion/completions/ ""
|
||||
%cmds %_datadir/fish/vendor_completions.d/ .fish
|
||||
%cmds %_mandir/man1/ .1.gz
|
||||
%cmds %_datadir/zsh/site-functions/_ ""
|
||||
EOF
|
||||
sed -i 's@ @\n@g' files.txt
|
||||
|
||||
# remove buildroot from paths in files.txt
|
||||
sed -i "s@%buildroot@/@g" files.txt
|
||||
|
||||
|
||||
echo "=== Files ==="
|
||||
cat files.txt
|
||||
|
||||
%files -f files.txt
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/sha1sum
|
||||
%{_bindir}/sha224sum
|
||||
%{_bindir}/sha256sum
|
||||
%{_bindir}/sha384sum
|
||||
%{_bindir}/sha512sum
|
||||
%{_bindir}/sha3-224sum
|
||||
%{_bindir}/sha3-256sum
|
||||
%{_bindir}/sha3-384sum
|
||||
%{_bindir}/sha3-512sum
|
||||
%{_bindir}/sha3sum
|
||||
%{_bindir}/shake128sum
|
||||
%{_bindir}/shake256sum
|
||||
%config(noreplace) %{_sysconfdir}/DIR_COLORS
|
||||
%config(noreplace) %{_sysconfdir}/DIR_COLORS.lightbgcolor
|
||||
%{_sysconfdir}/profile.d/colorls.sh
|
||||
%{_sysconfdir}/profile.d/colorls.csh
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user