]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = grep | |
7 | version = 2.17 | |
8 | release = 1 | |
9 | ||
10 | groups = Applications/Text | |
11 | url = http://www.gnu.org/software/grep/ | |
12 | license = GPLv3+ | |
13 | summary = A pattern matching utilities. | |
14 | ||
15 | description | |
16 | The GNU versions of commonly used grep utilities. Grep searches through | |
17 | textual input for lines which contain a match to a specified pattern and then | |
18 | prints the matching lines. GNU's grep utilities include grep, egrep and fgrep. | |
19 | end | |
20 | ||
21 | source_dl = ftp://ftp.gnu.org/gnu/grep/ | |
22 | sources = %{thisapp}.tar.xz | |
23 | ||
24 | build | |
25 | requires | |
26 | autoconf | |
27 | automake | |
28 | gettext-devel | |
29 | pcre-devel | |
30 | texinfo | |
31 | end | |
32 | ||
33 | prepare_cmds | |
34 | sed -e "s/gnulib-tests//" -i Makefile.am | |
35 | autoreconf -vfi | |
36 | end | |
37 | ||
38 | configure_options += \ | |
39 | --without-included-regex | |
40 | ||
41 | test | |
42 | make check | |
43 | end | |
44 | ||
45 | install_cmds | |
46 | mkdir -pv %{BUILDROOT}%{sysconfdir}/profile.d | |
47 | install -m 644 %{DIR_SOURCE}/colorgrep.sh \ | |
48 | %{BUILDROOT}%{sysconfdir}/profile.d | |
49 | install -m 644 %{DIR_SOURCE}/GREP_COLORS \ | |
50 | %{BUILDROOT}%{sysconfdir} | |
51 | end | |
52 | end | |
53 | ||
54 | packages | |
55 | package %{name} | |
56 | groups += Base Build | |
57 | ||
58 | provides | |
59 | /bin/grep | |
60 | bundled(gnulib) | |
61 | end | |
62 | ||
63 | conflicts | |
64 | filesystem < 002 | |
65 | end | |
66 | ||
67 | configfiles | |
68 | %{sysconfdir}/profile.d/colorgrep.sh | |
69 | %{sysconfdir}/GREP_COLORS | |
70 | end | |
71 | end | |
72 | ||
73 | package %{name}-debuginfo | |
74 | template DEBUGINFO | |
75 | end | |
76 | end |