2006-12-18 23:16:42 +00:00
|
|
|
#
|
2011-08-11 08:08:30 +00:00
|
|
|
# spec file for package grep
|
2006-12-18 23:16:42 +00:00
|
|
|
#
|
2017-02-08 10:29:11 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-18 23:16:42 +00:00
|
|
|
#
|
2008-08-21 15:53:30 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-18 23:16:42 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-14 10:21:46 +00:00
|
|
|
|
2006-12-18 23:16:42 +00:00
|
|
|
Name: grep
|
2017-02-13 12:43:49 +00:00
|
|
|
Version: 3.0
|
2011-12-01 15:53:45 +00:00
|
|
|
Release: 0
|
2006-12-18 23:16:42 +00:00
|
|
|
Summary: Print lines matching a pattern
|
2012-02-07 10:09:11 +00:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Text/Utilities
|
2014-02-19 12:44:11 +00:00
|
|
|
Url: http://www.gnu.org/software/grep/
|
2013-03-27 14:02:13 +00:00
|
|
|
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
2013-12-19 10:06:49 +00:00
|
|
|
Source2: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source3: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=grep&download=1#/%{name}.keyring
|
2017-02-13 12:43:49 +00:00
|
|
|
BuildRequires: fdupes
|
2014-02-19 12:44:11 +00:00
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: pcre-devel
|
2014-05-24 17:06:08 +00:00
|
|
|
Requires(pre): %{install_info_prereq}
|
2016-02-05 20:31:40 +00:00
|
|
|
Requires(preun): %{install_info_prereq}
|
2017-02-13 12:43:49 +00:00
|
|
|
Recommends: %{name}-lang
|
2014-05-24 17:06:08 +00:00
|
|
|
Provides: base:%{_bindir}/grep
|
2014-02-19 12:44:11 +00:00
|
|
|
|
2006-12-18 23:16:42 +00:00
|
|
|
%description
|
2017-02-13 12:43:49 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
%lang_package
|
2006-12-18 23:16:42 +00:00
|
|
|
|
|
|
|
%prep
|
2007-10-02 22:55:33 +00:00
|
|
|
%setup -q
|
2006-12-18 23:16:42 +00:00
|
|
|
|
2012-04-20 04:49:24 +00:00
|
|
|
%build
|
2016-10-28 13:08:56 +00:00
|
|
|
%global optflags %{optflags} -fPIE
|
2014-12-31 14:00:22 +00:00
|
|
|
export LDFLAGS="-pie"
|
2012-02-07 10:09:11 +00:00
|
|
|
%configure --disable-silent-rules --without-included-regex
|
2014-02-19 12:44:11 +00:00
|
|
|
make %{?_smp_mflags}
|
2009-06-05 20:56:59 +00:00
|
|
|
|
|
|
|
%check
|
2014-02-19 12:44:11 +00:00
|
|
|
make check VERBOSE=1 %{?_smp_mflags}
|
2006-12-18 23:16:42 +00:00
|
|
|
|
|
|
|
%install
|
2017-02-13 12:43:49 +00:00
|
|
|
%make_install
|
2012-02-07 10:09:11 +00:00
|
|
|
#UsrMerge
|
2012-08-24 18:47:51 +00:00
|
|
|
install -d %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/egrep %{buildroot}/bin/egrep
|
|
|
|
ln -sf %{_bindir}/fgrep %{buildroot}/bin/fgrep
|
|
|
|
ln -sf %{_bindir}/grep %{buildroot}/bin/grep
|
2012-02-07 10:09:11 +00:00
|
|
|
#EndUsrMerge
|
2017-02-13 12:43:49 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2014-02-19 12:44:11 +00:00
|
|
|
%find_lang %{name}
|
2006-12-18 23:16:42 +00:00
|
|
|
|
|
|
|
%post
|
2017-02-13 12:43:49 +00:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/grep.info%{ext_info}
|
2006-12-18 23:16:42 +00:00
|
|
|
|
2016-02-05 20:31:40 +00:00
|
|
|
%preun
|
2017-02-13 12:43:49 +00:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/grep.info%{ext_info}
|
2006-12-18 23:16:42 +00:00
|
|
|
|
2017-02-13 12:43:49 +00:00
|
|
|
%files
|
2006-12-18 23:16:42 +00:00
|
|
|
%defattr(-,root,root)
|
2014-02-19 12:44:11 +00:00
|
|
|
%doc README AUTHORS NEWS THANKS TODO COPYING ChangeLog*
|
2012-02-07 10:09:11 +00:00
|
|
|
#UsrMerge
|
|
|
|
/bin/egrep
|
|
|
|
/bin/fgrep
|
|
|
|
/bin/grep
|
|
|
|
#EndUsrMerge
|
2017-02-13 12:43:49 +00:00
|
|
|
%{_bindir}/egrep
|
|
|
|
%{_bindir}/fgrep
|
|
|
|
%{_bindir}/grep
|
|
|
|
%{_mandir}/man1/egrep.1%{ext_man}
|
|
|
|
%{_mandir}/man1/fgrep.1%{ext_man}
|
|
|
|
%{_mandir}/man1/grep.1%{ext_man}
|
|
|
|
%{_infodir}/grep.info%{ext_info}
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2007-11-28 22:12:05 +00:00
|
|
|
|
2007-03-22 19:43:58 +00:00
|
|
|
%changelog
|