]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - grep/grep.nm
grep: Update to 2.21
[people/ms/ipfire-3.x.git] / grep / grep.nm
index a41eaf7bd6b501c1a6c47d800a6ad4d56d1b0067..1e887d3973d66d0a5f917986e375f34fe4b50e03 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = grep
-version    = 2.13
+version    = 2.21
 release    = 1
 
 groups     = Applications/Text
@@ -23,12 +23,27 @@ sources    = %{thisapp}.tar.xz
 
 build
        requires
+               autoconf
+               automake
+               gettext-devel
                pcre-devel
+               texinfo
        end
 
+       configure_options += \
+               --without-included-regex
+
        test
                make check
        end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d
+               install -m 644 %{DIR_SOURCE}/colorgrep.sh \
+                       %{BUILDROOT}%{sysconfdir}/profile.d
+               install -m 644 %{DIR_SOURCE}/GREP_COLORS \
+                       %{BUILDROOT}%{sysconfdir}
+       end
 end
 
 packages
@@ -37,11 +52,17 @@ packages
 
                provides
                        /bin/grep
+                       bundled(gnulib)
                end
 
                conflicts
                        filesystem < 002
                end
+
+               configfiles
+                       %{sysconfdir}/profile.d/colorgrep.sh
+                       %{sysconfdir}/GREP_COLORS
+               end
        end
 
        package %{name}-debuginfo