[10133] | 1 | %define pkg_name the_silver_searcher |
---|
[11064] | 2 | %define pkg_version 1.0.3 |
---|
[10294] | 3 | %define pkg_release 1%{?_dist_release} |
---|
[10133] | 4 | |
---|
| 5 | Summary: ag: The silver searcher |
---|
| 6 | Summary(ja): ag: 高速検索プログラム |
---|
| 7 | Name: silversearcher-ag |
---|
| 8 | Version: %{pkg_version} |
---|
| 9 | Release: %{pkg_release} |
---|
| 10 | License: Apache License 2.0 |
---|
| 11 | |
---|
| 12 | Group: Applications/Accessories |
---|
| 13 | URL: https://github.com/ggreer/the_silver_searcher |
---|
| 14 | Source: %{pkg_name}-%{pkg_version}.tar.gz |
---|
| 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: pcre-devel xz-devel zlib-devel |
---|
| 18 | Requires: pcre xz zlib |
---|
| 19 | |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | Packager: ara_t |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | The Silver Searcher |
---|
| 27 | An attempt to make something better than ack |
---|
| 28 | (which itself is better than grep). |
---|
| 29 | |
---|
| 30 | Why use Ag? |
---|
| 31 | * It searches code about 3–5x faster than ack. |
---|
| 32 | * It ignores file patterns from your .gitignore and .hgignore. |
---|
| 33 | * If there are files in your source repo you don't want to search, |
---|
| 34 | just add their patterns to a .agignore file. *cough* extern *cough* |
---|
| 35 | * The command name is 33% shorter than ack! |
---|
| 36 | |
---|
| 37 | How is it so fast? |
---|
| 38 | * Searching for literals (no regex) uses Boyer-Moore-Horspool strstr. |
---|
| 39 | * Files are mmap()ed instead of read into a buffer. |
---|
| 40 | * If you're building with PCRE 8.21 or greater, |
---|
| 41 | regex searches use the JIT compiler. |
---|
| 42 | * Ag calls pcre_study() before executing the regex on a jillion files. |
---|
| 43 | * Instead of calling fnmatch() on every pattern in your ignore files, |
---|
| 44 | non-regex patterns are loaded into an array and binary searched. |
---|
| 45 | * Ag uses Pthreads to take advantage of multiple CPU cores and |
---|
| 46 | search files in parallel. |
---|
| 47 | |
---|
| 48 | %description -l ja |
---|
| 49 | The Silver Searcher: 高速検索プログラム |
---|
| 50 | * ackより3-5倍高速 |
---|
| 51 | * .gitignore、.hgignoreに記載されているものを検索対象から除外 |
---|
| 52 | * 検索対象から除外したいファイルは.agignoreに記載 |
---|
| 53 | * agというコマンド名で、ackと比べてコマンドが短い(33%減!) |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %prep |
---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 58 | %setup -q -n %{pkg_name}-%{pkg_version} |
---|
| 59 | |
---|
| 60 | ./build.sh |
---|
| 61 | %{configure} |
---|
| 62 | |
---|
| 63 | %build |
---|
| 64 | %{__make} %{?_smp_mflags} |
---|
| 65 | |
---|
| 66 | %install |
---|
| 67 | %{make_install} |
---|
| 68 | |
---|
| 69 | %clean |
---|
| 70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %files |
---|
| 74 | %defattr(-, root, root) |
---|
| 75 | %{_bindir}/ |
---|
| 76 | %{_datadir}/ |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %changelog |
---|
[11064] | 80 | * Fri May 05 2017 Toshiaki Ara <ara_t@384.jp> 1.0.3-1 |
---|
| 81 | - new upstream release |
---|
| 82 | |
---|
[10838] | 83 | * Tue Dec 06 2016 Toshiaki Ara <ara_t@384.jp> 1.0.2-1 |
---|
| 84 | - new upstream release |
---|
| 85 | |
---|
[10834] | 86 | * Mon Nov 28 2016 Toshiaki Ara <ara_t@384.jp> 1.0.1-1 |
---|
| 87 | - new upstream release |
---|
| 88 | |
---|
[10801] | 89 | * Mon Oct 10 2016 Toshiaki Ara <ara_t@384.jp> 0.33.0-1 |
---|
| 90 | - update to 0.33.0 |
---|
| 91 | |
---|
[10294] | 92 | * Tue May 17 2016 Toshiaki Ara <ara_t@384.jp> 0.32.0-1 |
---|
| 93 | - update to 0.32.0 |
---|
| 94 | |
---|
[10139] | 95 | * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.31.0-3 |
---|
[10133] | 96 | - correct SPEC file |
---|
| 97 | |
---|
[10139] | 98 | * Wed Feb 17 2016 Toshiaki Ara <ara_t@384.jp> 0.31.0-2 |
---|
| 99 | - add LICENSE |
---|
| 100 | |
---|
[10133] | 101 | * Tue Sep 22 2015 Toshiaki Ara <ara_t@384.jp> 0.31.0-1 |
---|
| 102 | - new package |
---|
| 103 | |
---|