File the_silver_searcher.spec of Package the_silver_searcher
#
# spec file for package
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: the_silver_searcher
Version: 0.19.2
Release: 0
License: Apache-2.0
Summary: A code-searching tool similar to ack, but faster
Url: https://github.com/ggreer/the_silver_searcher
Group: Productivity/File utilities
# url is https://github.com/ggreer/the_silver_searcher/archive/%{version}.tar.gz
Source: %{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: pcre-devel
BuildRequires: pkg-config
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A code searching tool similar to ack, with a focus on speed.
%prep
%setup -q
%build
aclocal
autoconf
autoheader
automake --add-missing
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/ag
%{_mandir}/man1/ag.1.gz
%{_datadir}/the_silver_searcher
%doc LICENSE NOTICE README.md
%changelog