diff --git a/2.1.0-1a5e259.tar.gz b/2.1.0-1a5e259.tar.gz new file mode 100644 index 0000000..df9cee7 Binary files /dev/null and b/2.1.0-1a5e259.tar.gz differ diff --git a/README.en.md b/README.en.md index cb2a25e..3d2e407 100644 --- a/README.en.md +++ b/README.en.md @@ -1,22 +1,19 @@ # the_silver_searcher #### Description -A code searching tool similar to ack, with a focus on speed + +A code searching tool similar to ack, with a focus on speed. #### Software Architecture -Software architecture description + +* aarch64 #### Installation -1. xxxx -2. xxxx -3. xxxx +`dnf install the_silver_searcher` #### Instructions -1. xxxx -2. xxxx -3. xxxx #### Contribution diff --git a/README.md b/README.md index e42b95c..fee6dde 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,19 @@ # the_silver_searcher #### 介绍 -A code searching tool similar to ack, with a focus on speed + +类似于 grep, ack 等的文本搜索工具,基于并行技术,搜索速度大幅提升。 #### 软件架构 -软件架构说明 +* aarch64 #### 安装教程 -1. xxxx -2. xxxx -3. xxxx +`dnf install the_silver_searcher` #### 使用说明 -1. xxxx -2. xxxx -3. xxxx #### 参与贡献 diff --git a/the_silver_searcher.spec b/the_silver_searcher.spec new file mode 100644 index 0000000..f37731d --- /dev/null +++ b/the_silver_searcher.spec @@ -0,0 +1,62 @@ +%global commit 1a5e259b259130b50607174fc9f9508dc1f2941c +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global bashcompdir %(pkg-config --variable=completionsdir bash-completion) +%if "%{bashcompdir}" == "" +%define bashcompdir "/etc/bash_completion.d" +%endif + +Name: the_silver_searcher +Version: 2.1.0 +Release: 1%{?dist} +Summary: Super-fast text searching tool (ag) +Group: Applications/Text +License: ASL 2.0 and BSD +URL: https://github.com/ggreer/the_silver_searcher +Source: https://github.com/ggreer/the_silver_searcher/archive/%{commit}/%{version}-%{shortcommit}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: pcre-devel +%if ! 0%{?el6} +BuildRequires: pkgconfig(bash-completion) +%endif +BuildRequires: xz-devel +BuildRequires: zlib-devel + +%description +The Silver Searcher is a code searching tool similar to ack, +with a focus on speed. + +%prep +%setup -q -n %{name}-%{commit} + +%build +aclocal +autoconf +autoheader +automake --add-missing +%configure --disable-silent-rules +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{bashcompdir} +install -pm 0644 ag.bashcomp.sh $RPM_BUILD_ROOT%{bashcompdir}/ag +rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name} + +%files +%{_bindir}/ag +%{_mandir}/man1/ag.1* +%(dirname %{bashcompdir}) +%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 +%doc README.md +%license LICENSE +%else +%doc README.md LICENSE +%endif +# zsh completion +%{_datadir}/zsh/site-functions/_%{name} + +%changelog +* Wed Sep 16 2020 Li Chao - 2.1.0-1 +- First the_silver_searcher package