[packages/grep] restored shrc.d/grep.c?sh, there was no need for reverting, just commenting out by default: c1edd101
gotar
gotar at pld-linux.org
Fri Aug 5 18:47:14 CEST 2016
commit f2fca20ab94a3ed726758530b1b6e7cfeaea7ee0
Author: Tomasz Pala <gotar at pld-linux.org>
Date: Fri Aug 5 18:32:03 2016 +0200
restored shrc.d/grep.c?sh, there was no need for reverting, just
commenting out by default: c1edd1016a5175e4190df07a0c81b81f66749b4c
grep.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/grep.spec b/grep.spec
index a61356d..b0920fe 100644
--- a/grep.spec
+++ b/grep.spec
@@ -110,6 +110,7 @@ пошуку по шаблону в текстових файлах.
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/shrc.d
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -119,6 +120,13 @@ echo .so grep.1 > $RPM_BUILD_ROOT%{_mandir}/man1/fgrep.1
bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.sh
+#alias grep='/bin/grep --binary-files=without-match --devices=skip --directories=skip --color=auto'
+EOF
+cat << EOF >$RPM_BUILD_ROOT/etc/shrc.d/grep.csh
+#alias grep '/bin/grep --binary-files=without-match --devices=skip --directories=skip --color=auto'
+EOF
+
%find_lang %{name}
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
@@ -137,6 +145,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc NEWS README ChangeLog TODO
+%config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/grep.*sh
%attr(755,root,root) %{_bindir}/egrep
%attr(755,root,root) %{_bindir}/fgrep
%attr(755,root,root) %{_bindir}/grep
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/grep.git/commitdiff/5f07b1aa27ebd3aacf4bc58d9a47a182f5c9f24c
More information about the pld-cvs-commit
mailing list