- Added auto-color profile.d scripts (thanks to Ville Skyttä #600832)

- Removed description macro from changelog
This commit is contained in:
Jaroslav Škarvada 2010-06-07 15:25:12 +00:00
parent 6ccb1073e9
commit 7649763975
3 changed files with 13 additions and 2 deletions

1
colorgrep.csh Normal file
View File

@ -0,0 +1 @@
alias grep 'grep --color=auto'

1
colorgrep.sh Normal file
View File

@ -0,0 +1 @@
alias grep='grep --color=auto' 2>/dev/null

View File

@ -3,10 +3,12 @@
Summary: Pattern matching utilities
Name: grep
Version: 2.6.3
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv3+
Group: Applications/Text
Source: ftp://ftp.gnu.org/pub/gnu/grep/grep-%{version}.tar.xz
Source1: colorgrep.sh
Source2: colorgrep.csh
URL: http://www.gnu.org/software/grep/
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
@ -53,6 +55,8 @@ rm -rf ${RPM_BUILD_ROOT}
make %{?_smp_mflags} DESTDIR=$RPM_BUILD_ROOT install
gzip $RPM_BUILD_ROOT%{_infodir}/grep*
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
install -pm 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
%find_lang %name
@ -75,10 +79,15 @@ fi
%doc ABOUT-NLS AUTHORS THANKS TODO NEWS README ChangeLog COPYING
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/profile.d/colorgrep.*sh
%{_infodir}/*.info*.gz
%{_mandir}/*/*
%changelog
* Mon Jun 07 2010 Jaroslav Škarvada <jskarvad@redhat.com> - 2.6.3-3
- Added auto-color profile.d scripts (thanks to Ville Skyttä #600832)
- Removed description macro from changelog
* Tue May 06 2010 Jaroslav Škarvada <jskarvad@redhat.com> - 2.6.3-2
- Added dfa-optimize-period patch (speedup for . patterns in UTF-8)
- Added glibc-matcher-fallback patch (speedup for [a-z] patterns in UTF-8)
@ -106,7 +115,7 @@ fi
* Wed Feb 10 2010 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.4-1
- New version: grep-2.5.4
- Fixed typos in %description
- Fixed typos in description
- Updated utf-8 patch
- Added dfa-optional patch (#538423)