added packaging
authorAnas Nashif <anas.nashif@intel.com>
Thu, 25 Oct 2012 18:17:20 +0000 (11:17 -0700)
committerNicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
Thu, 15 Jan 2015 10:04:26 +0000 (11:04 +0100)
packaging/grep.spec [new file with mode: 0644]

diff --git a/packaging/grep.spec b/packaging/grep.spec
new file mode 100644 (file)
index 0000000..c280be5
--- /dev/null
@@ -0,0 +1,44 @@
+Name:           grep
+BuildRequires:  automake
+BuildRequires:  pcre-devel
+Url:            http://www.gnu.org/software/grep/
+Provides:       base:/usr/bin/grep
+Version:        2.14
+Release:        0
+Summary:        Print lines matching a pattern
+License:        GPL-3.0+
+Group:          Productivity/Text/Utilities
+Source0:        grep-%{version}.tar.xz
+
+%description
+The grep command searches one or more input files for lines
+containing a match to a specified pattern.  By default, grep prints
+the matching lines.
+
+%prep
+%setup -q
+
+%build
+%configure --disable-silent-rules --without-included-regex
+%{__make} %{?_smp_mflags}
+
+%check
+make check VERBOSE=1
+
+%install
+%make_install
+%find_lang %name
+
+%post docs
+%install_info --info-dir=%{_infodir} %{_infodir}/grep.info.gz
+
+%postun docs
+%install_info_delete --info-dir=%{_infodir} %{_infodir}/grep.info.gz
+
+%docs_package
+
+%files 
+%defattr(-,root,root)
+%{_bindir}/*
+
+%changelog