packaging: provide /bin/grep for compatibility
[platform/upstream/grep.git] / packaging / grep.spec
1 Name:           grep
2 BuildRequires:  automake
3 BuildRequires:  pcre-devel
4 Url:            http://www.gnu.org/software/grep/
5 Version:        2.14
6 Release:        0
7 Summary:        Print lines matching a pattern
8 License:        GPL-3.0+
9 Group:          Base/Tools
10 Source0:        grep-%{version}.tar.xz
11 Provides:       base:/usr/bin/grep
12 Provides:       /bin/grep
13
14 %description
15 The grep command searches one or more input files for lines
16 containing a match to a specified pattern.  By default, grep prints
17 the matching lines.
18
19 %prep
20 %setup -q
21
22 %build
23 %configure --disable-silent-rules --without-included-regex
24 %{__make} %{?_smp_mflags}
25
26 %check
27 make check VERBOSE=1
28
29 %install
30 %make_install
31 %find_lang %name
32
33
34 %docs_package
35
36 %lang_package
37
38 %files 
39 %defattr(-,root,root)
40 %license COPYING
41 %{_bindir}/*
42
43 %changelog