config color alias for xz*grep
This commit is contained in:
parent
d9260eef88
commit
509070a1b9
5
colorxzgrep.csh
Normal file
5
colorxzgrep.csh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/usr/libexec/grepconf.sh -c
|
||||||
|
if ( $status == 1 ) exit
|
||||||
|
alias xzgrep 'xzgrep --color=auto'
|
||||||
|
alias xzfgrep 'xzfgrep --color=auto'
|
||||||
|
alias xzegrep 'xzegrep --color=auto'
|
||||||
4
colorxzgrep.sh
Normal file
4
colorxzgrep.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
/usr/libexec/grepconf.sh -c || return
|
||||||
|
alias xzgrep='xzgrep --color=auto' 2>/dev/null
|
||||||
|
alias xzegrep='xzegrep --color=auto' 2>/dev/null
|
||||||
|
alias xzfgrep='xzfgrep --color=auto' 2>/dev/null
|
||||||
18
xz.spec
18
xz.spec
@ -1,10 +1,13 @@
|
|||||||
Name: xz
|
Name: xz
|
||||||
Version: 5.2.5
|
Version: 5.2.5
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A free general-purpose data compreession software with LZMA2 algorithm
|
Summary: A free general-purpose data compreession software with LZMA2 algorithm
|
||||||
License: Public Domain, LGPLv2.1 and GPLv2+
|
License: Public Domain, LGPLv2.1 and GPLv2+
|
||||||
URL: http://tukaani.org/xz
|
URL: http://tukaani.org/xz
|
||||||
Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.xz
|
Source0: http://tukaani.org/%{name}/%{name}-%{version}.tar.xz
|
||||||
|
Source1: colorxzgrep.sh
|
||||||
|
Source2: colorxzgrep.csh
|
||||||
|
|
||||||
Patch6000: backport-CVE-2022-1271.patch
|
Patch6000: backport-CVE-2022-1271.patch
|
||||||
|
|
||||||
BuildRequires: perl-interpreter gcc
|
BuildRequires: perl-interpreter gcc
|
||||||
@ -64,6 +67,12 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
# config color alias for xz*grep
|
||||||
|
%global profiledir %{_sysconfdir}/profile.d
|
||||||
|
mkdir -p %{buildroot}%{profiledir}
|
||||||
|
install -p -m 644 %{SOURCE1} %{buildroot}%{profiledir}
|
||||||
|
install -p -m 644 %{SOURCE2} %{buildroot}%{profiledir}
|
||||||
|
|
||||||
%find_lang %name
|
%find_lang %name
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -74,6 +83,7 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
|
|||||||
%doc %{_pkgdocdir}
|
%doc %{_pkgdocdir}
|
||||||
%license %{_pkgdocdir}/COPYING*
|
%license %{_pkgdocdir}/COPYING*
|
||||||
%{_bindir}/*xz*
|
%{_bindir}/*xz*
|
||||||
|
%{profiledir}/*
|
||||||
|
|
||||||
%exclude %_pkgdocdir/examples*
|
%exclude %_pkgdocdir/examples*
|
||||||
%exclude %{_libdir}/*.la
|
%exclude %{_libdir}/*.la
|
||||||
@ -101,6 +111,12 @@ LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
|
|||||||
%{_mandir}/de/man1/*xz*
|
%{_mandir}/de/man1/*xz*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 23 2022 wangjiang <wangjiang37@h-partners.com> - 5.2.5-3
|
||||||
|
- Type:enhancement
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:config color alias for xz*grep
|
||||||
|
|
||||||
* Fri Apr 15 2022 liudabo <liudabo1@h-partners.com> - 5.2.5-2
|
* Fri Apr 15 2022 liudabo <liudabo1@h-partners.com> - 5.2.5-2
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- ID:CVE-2022-1271
|
- ID:CVE-2022-1271
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user