From 3f8ffe86c98709ba44dd05731777ce10fb0fadb5 Mon Sep 17 00:00:00 2001 From: "Doncho N. Gunchev" Date: Wed, 3 Apr 2024 10:28:31 +0300 Subject: [PATCH] Fix ip color on EL 7. iproute2 on EL 7 (ip utility, iproute2-ss170501) does not support --color=auto, only -c[olor]. Signed-off-by: Doncho N. Gunchev --- changelog.sh | 3 +++ gwebu-profile.spec.in | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/changelog.sh b/changelog.sh index 3b89442..5107716 100755 --- a/changelog.sh +++ b/changelog.sh @@ -11,3 +11,6 @@ change="* $(date +'%a %b %d %Y') $(git log -1 --format='%aN <%aE>') - ${rpm_ver} awk -v change="${change}" '/^%changelog/ {print; print change; next} 1' gwebu-profile.spec.in \ > gwebu-profile.spec.tmp && mv gwebu-profile.spec.tmp gwebu-profile.spec.in + +sed -i "s/Version: .*/Version: ${rpm_ver}/" gwebu-profile.spec.in +sed -i "s/Release: .*/Release: ${rpm_numeric_rev}/" gwebu-profile.spec.in diff --git a/gwebu-profile.spec.in b/gwebu-profile.spec.in index 517cb56..1fcd030 100644 --- a/gwebu-profile.spec.in +++ b/gwebu-profile.spec.in @@ -1,7 +1,7 @@ Summary: Gwebu profile.d - cool date, prompt with history, aliases Name: gwebu-profile -Version: 1.0.0 -Release: 5 +Version: 1.0.1 +Release: 0 BuildArch: noarch License: GPLv2 Source0: profile.d-%{version}-%{release}.tar.xz @@ -41,6 +41,9 @@ install -m 0644 etc/profile.d/*.sh %{buildroot}%{_sysconfdir}/profile.d/ %changelog +* Wed Apr 03 2024 Doncho N. Gunchev - 1.0.1-0 +- Fix ip color on EL 7. + * Thu Feb 22 2024 Doncho N. Gunchev - 1.0.0-4 - General rework of the build process (distribution source and rpm).