diff --git a/grep-profile b/grep-profile new file mode 100644 index 0000000..14fa1cd --- /dev/null +++ b/grep-profile @@ -0,0 +1,4 @@ +# grep aliases +alias grep="grep --color=auto" +alias fgrep="egrep --color=auto" +alias fgrep="fgrep --color=auto" diff --git a/grep.spec b/grep.spec index 40eb3b9..afe0b09 100644 --- a/grep.spec +++ b/grep.spec @@ -1,6 +1,6 @@ Name: grep Version: 2.21 -Release: 1mamba +Release: 2mamba Summary: The GNU versions of grep pattern matching utilities Group: Applications/File Vendor: openmamba @@ -8,6 +8,7 @@ Distribution: openmamba Packager: Silvan Calarco URL: http://www.gnu.org/software/grep/grep.html Source: ftp://ftp.gnu.org/gnu/grep/grep-%{version}.tar.xz +Source1: grep-profile License: GPL Requires(post):%{__install_info} ## AUTOBUILDREQ-BEGIN @@ -38,6 +39,8 @@ You should install grep on your system, because it is a very useful utility for %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall + +install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/grep.sh %find_lang %{name} %clean @@ -52,6 +55,7 @@ exit 0 %files -f %{name}.lang %defattr(-,root,root) +%{_sysconfdir}/profile.d/grep.sh /bin/egrep /bin/fgrep /bin/grep @@ -59,9 +63,13 @@ exit 0 %{_mandir}/man1/egrep.* %{_mandir}/man1/fgrep.* %{_mandir}/man1/grep.* -%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO +%doc AUTHORS COPYING THANKS +#%doc ChangeLog NEWS README TODO %changelog +* Wed Oct 28 2015 Silvan Calarco 2.21-2mamba +- added profile.d aliases for colors + * Mon Nov 24 2014 Automatic Build System 2.21-1mamba - automatic version update by autodist