cd0aa33
%global commit 36754027ac4f44c1d4329ee2b4fa1b112b6c3e45
481dacb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
481dacb
%global bashcompdir %(pkg-config --variable=completionsdir bash-completion)
f0a1c43
%if "%{bashcompdir}" == ""
f0a1c43
%define compdir "/etc/bash_completion.d"
f0a1c43
%endif
481dacb
481dacb
Name:           the_silver_searcher
c0e38c2
Version:        0.31.0
cd0aa33
Release:        2%{?dist}
0e798ce
Summary:        Super-fast text searching tool (ag)
481dacb
Group:          Applications/Text
481dacb
License:        ASL 2.0 and BSD
481dacb
URL:            https://github.com/ggreer/the_silver_searcher
481dacb
Source:         https://github.com/ggreer/the_silver_searcher/archive/%{commit}/%{version}-%{shortcommit}.tar.gz
481dacb
481dacb
BuildRequires:  autoconf
481dacb
BuildRequires:  automake
481dacb
BuildRequires:  pcre-devel
cd0aa33
%if ! 0%{?el6}
481dacb
BuildRequires:  pkgconfig(bash-completion)
cd0aa33
%endif
481dacb
BuildRequires:  xz-devel
481dacb
BuildRequires:  zlib-devel
481dacb
481dacb
%description
481dacb
The Silver Searcher is a code searching tool similar to ack,
481dacb
with a focus on speed.
481dacb
481dacb
%prep
481dacb
%setup -q -n %{name}-%{commit}
481dacb
481dacb
%build
481dacb
aclocal
481dacb
autoconf
481dacb
autoheader
481dacb
automake --add-missing
481dacb
%configure --disable-silent-rules
481dacb
make %{?_smp_mflags}
481dacb
481dacb
%install
481dacb
make install DESTDIR=$RPM_BUILD_ROOT
481dacb
mkdir -p $RPM_BUILD_ROOT%{bashcompdir}
481dacb
install -pm 0644 ag.bashcomp.sh $RPM_BUILD_ROOT%{bashcompdir}/ag
481dacb
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
481dacb
481dacb
%files
481dacb
%{_bindir}/ag
481dacb
%{_mandir}/man1/ag.1*
481dacb
%(dirname %{bashcompdir})
481dacb
%doc README.md LICENSE
481dacb
481dacb
%changelog
caaa520
* Sun Jan 24 2016 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.31.0-2
cd0aa33
- Build for RHEL6(EPEL)
cd0aa33
c0e38c2
* Tue Dec 29 2015 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.31.0-1
c0e38c2
- update to 0.31.0
d0de904
b0917db
* Thu May 07 2015 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.30.0-1
b0917db
- update to 0.30.0
0e7dae8
989b67c
* Mon Dec 15 2014 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.27.0-1
989b67c
- update to 0.27.0
989b67c
cc1ef65
* Mon Nov 03 2014 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.26.0-1
00dc8ce
- update to 0.26.0
00dc8ce
989b67c
* Wed Oct 15 2014 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.25.0-1
0e798ce
- update to 0.25.0
0e798ce
cfe2831
* Tue Sep 30 2014 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.24.1-1
cfe2831
- update to 0.24.1
cfe2831
2f9629b
* Sun Jun 22 2014 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.22.0-1
2f9629b
- update to 0.22.0
2f9629b
2f9629b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.0-2
2f9629b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2f9629b
481dacb
* Tue Apr 22 2014 Kenjiro Nakayama <nakayamakenjiro@gmail.com> - 0.21.0-1
481dacb
- update to 0.21.0
481dacb
481dacb
* Thu Sep 12 2013 Henrik Hodne <henrik@hodne.io> - 0.16-2
481dacb
- Initial RPM release