]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - grep/grep.nm
grep: Update to version 2.18.
[people/ms/ipfire-3.x.git] / grep / grep.nm
index 348d8a4c235fe17b7ac02423eab36b36c03f8610..1462ba3ac7e2d2a2ccb1e189f75d4f82a7b6f066 100644 (file)
@@ -4,17 +4,17 @@
 ###############################################################################
 
 name       = grep
-version    = 2.10
+version    = 2.18
 release    = 1
 
-groups     = Base Build Applications/Text
+groups     = Applications/Text
 url        = http://www.gnu.org/software/grep/
 license    = GPLv3+
 summary    = A pattern matching utilities.
 
 description
-       The GNU versions of commonly used grep utilities. Grep searches through \
-       textual input for lines which contain a match to a specified pattern and then \
+       The GNU versions of commonly used grep utilities. Grep searches through
+       textual input for lines which contain a match to a specified pattern and then
        prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
 end
 
@@ -23,19 +23,46 @@ sources    = %{thisapp}.tar.xz
 
 build
        requires
+               autoconf
+               automake
+               gettext-devel
                pcre-devel
+               texinfo
        end
 
        configure_options += \
-               --bindir=/bin
+               --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
        package %{name}
+               groups += Base Build
+
+               provides
+                       /bin/grep
+                       bundled(gnulib)
+               end
+
+               conflicts
+                       filesystem < 002
+               end
+
+               configfiles
+                       %{sysconfdir}/profile.d/colorgrep.sh
+                       %{sysconfdir}/GREP_COLORS
+               end
        end
 
        package %{name}-debuginfo