[10132] | 1 | %define pkg_name peco |
---|
[11712] | 2 | %define pkg_version 0.5.3 |
---|
[10278] | 3 | %define pkg_release 1%{?_dist_release} |
---|
[9983] | 4 | |
---|
[9998] | 5 | %global gopath %{_datadir}/gocode |
---|
| 6 | |
---|
[10132] | 7 | Summary: Simplistic interactive filtering tool |
---|
| 8 | Summary(ja): シンプルな対話式フィルタリングツール |
---|
| 9 | Name: %{pkg_name} |
---|
| 10 | Version: %{pkg_version} |
---|
| 11 | Release: %{pkg_release} |
---|
[9983] | 12 | |
---|
[10132] | 13 | License: MIT License |
---|
| 14 | Group: Applications/Text |
---|
| 15 | URL: https://github.com/peco/peco |
---|
| 16 | Source: https://github.com/peco/peco/archive/v%{version}.tar.gz#/peco-%{version}.tar.gz |
---|
[9983] | 17 | |
---|
[9989] | 18 | BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root |
---|
| 19 | BuildRequires: golang |
---|
[9990] | 20 | BuildRequires: golang(github.com/google/btree) |
---|
| 21 | BuildRequires: golang(github.com/mattn/go-runewidth) |
---|
| 22 | BuildRequires: golang(github.com/jessevdk/go-flags) |
---|
| 23 | BuildRequires: golang(github.com/nsf/termbox-go) |
---|
[11109] | 24 | BuildRequires: golang(github.com/pkg/errors) |
---|
| 25 | BuildRequires: golang(github.com/lestrrat/go-pdebug) |
---|
[9989] | 26 | |
---|
[9983] | 27 | Vendor: Project Vine |
---|
| 28 | Distribution: Vine Linux |
---|
[10132] | 29 | Packager: ara_t |
---|
[9983] | 30 | |
---|
[10132] | 31 | |
---|
[9983] | 32 | %description |
---|
[9989] | 33 | peco is a simplistic interactive filtering tool |
---|
| 34 | based on a python tool, percol, and written in Go. |
---|
[9983] | 35 | |
---|
[9989] | 36 | %description -l ja |
---|
| 37 | pecoはシンプルな対話式フィルタリングツールであり、 |
---|
[11712] | 38 | Python製のpercolをGo言語で実装したプログラムです。 |
---|
[9989] | 39 | |
---|
| 40 | |
---|
[9983] | 41 | %prep |
---|
[9989] | 42 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[9983] | 43 | |
---|
[9989] | 44 | %setup -q |
---|
| 45 | |
---|
[9983] | 46 | %build |
---|
[9990] | 47 | export BUILD_DIR=$(pwd)/.build |
---|
[11712] | 48 | export GOPATH=${BUILD_DIR}:%{gopath} |
---|
[9983] | 49 | |
---|
[11712] | 50 | %{__mkdir_p} ${BUILD_DIR}/src/github.com/peco/peco |
---|
| 51 | %{__cp} -r * ${BUILD_DIR}/src/github.com/peco/peco |
---|
| 52 | cd ${BUILD_DIR}/src/github.com/peco/peco |
---|
[9989] | 53 | go build cmd/peco/peco.go |
---|
| 54 | |
---|
[9983] | 55 | %install |
---|
[10132] | 56 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir} |
---|
[11109] | 57 | export BUILD_DIR=$(pwd)/.build |
---|
[11712] | 58 | cd ${BUILD_DIR}/src/github.com/peco/peco |
---|
[9989] | 59 | %{__install} -m 755 peco ${RPM_BUILD_ROOT}%{_bindir} |
---|
[9983] | 60 | |
---|
[9989] | 61 | %clean |
---|
| 62 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[9983] | 63 | |
---|
[9989] | 64 | |
---|
[9983] | 65 | %files |
---|
[9989] | 66 | %defattr(-, root, root) |
---|
[9990] | 67 | %doc LICENSE |
---|
| 68 | %doc README.md Changes |
---|
[9989] | 69 | %{_bindir}/ |
---|
[9983] | 70 | |
---|
[9989] | 71 | |
---|
[9983] | 72 | %changelog |
---|
[11712] | 73 | * Sat Jun 09 2018 Toshiaki Ara <ara_t@384.jp> 0.5.3-1 |
---|
| 74 | - update to 0.5.3 |
---|
| 75 | |
---|
[11109] | 76 | * Wed Jun 07 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 0.5.1-1 |
---|
| 77 | - update to 0.5.1 |
---|
| 78 | - update BuildRequires |
---|
| 79 | |
---|
[10278] | 80 | * Wed May 11 2016 Toshiaki Ara <ara_t@384.jp> 0.3.6-1 |
---|
| 81 | - update to 0.3.6 |
---|
| 82 | |
---|
[10132] | 83 | * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-5 |
---|
| 84 | - correct SPEC file |
---|
| 85 | |
---|
[9998] | 86 | * Fri Jan 29 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-4 |
---|
| 87 | - defile %%{gopath} |
---|
| 88 | |
---|
[9990] | 89 | * Mon Jan 25 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.3.5-3 |
---|
| 90 | - using golang-* RPM packages for BuildRequires |
---|
| 91 | - stop 'go get' in build section |
---|
| 92 | - update build section |
---|
| 93 | - add LICENSE, README.md and Changes |
---|
| 94 | |
---|
[9989] | 95 | * Tue Jan 19 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-2 |
---|
| 96 | - build with Go |
---|
| 97 | - change spec file |
---|
[9983] | 98 | |
---|
[9989] | 99 | * Sun Jan 17 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-1 |
---|
| 100 | - new package |
---|
| 101 | |
---|