[10132] | 1 | %define pkg_name peco |
---|
[10278] | 2 | %define pkg_version 0.3.6 |
---|
| 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) |
---|
[9989] | 24 | |
---|
[9983] | 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
[10132] | 27 | Packager: ara_t |
---|
[9983] | 28 | |
---|
[10132] | 29 | |
---|
[9983] | 30 | %description |
---|
[9989] | 31 | peco is a simplistic interactive filtering tool |
---|
| 32 | based on a python tool, percol, and written in Go. |
---|
[9983] | 33 | |
---|
[9989] | 34 | %description -l ja |
---|
| 35 | pecoはシンプルな対話式フィルタリングツールであり、 |
---|
| 36 | Pyhon製のpercolをGo言語で実装したプログラムです。 |
---|
| 37 | |
---|
| 38 | |
---|
[9983] | 39 | %prep |
---|
[9989] | 40 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[9983] | 41 | |
---|
[9989] | 42 | %setup -q |
---|
| 43 | |
---|
[9983] | 44 | %build |
---|
[9990] | 45 | export BUILD_DIR=$(pwd)/.build |
---|
| 46 | export GOPATH=$BUILD_DIR:%{gopath} |
---|
[9983] | 47 | |
---|
[9990] | 48 | %{__mkdir_p} $BUILD_DIR/src/github.com/peco/peco |
---|
| 49 | %{__cp} -r * $BUILD_DIR/src/github.com/peco/peco |
---|
[9989] | 50 | go build cmd/peco/peco.go |
---|
| 51 | |
---|
[9983] | 52 | %install |
---|
[10132] | 53 | %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir} |
---|
[9989] | 54 | %{__install} -m 755 peco ${RPM_BUILD_ROOT}%{_bindir} |
---|
[9983] | 55 | |
---|
[9989] | 56 | %clean |
---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[9983] | 58 | |
---|
[9989] | 59 | |
---|
[9983] | 60 | %files |
---|
[9989] | 61 | %defattr(-, root, root) |
---|
[9990] | 62 | %doc LICENSE |
---|
| 63 | %doc README.md Changes |
---|
[9989] | 64 | %{_bindir}/ |
---|
[9983] | 65 | |
---|
[9989] | 66 | |
---|
[9983] | 67 | %changelog |
---|
[10278] | 68 | * Wed May 11 2016 Toshiaki Ara <ara_t@384.jp> 0.3.6-1 |
---|
| 69 | - update to 0.3.6 |
---|
| 70 | |
---|
[10132] | 71 | * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-5 |
---|
| 72 | - correct SPEC file |
---|
| 73 | |
---|
[9998] | 74 | * Fri Jan 29 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-4 |
---|
| 75 | - defile %%{gopath} |
---|
| 76 | |
---|
[9990] | 77 | * Mon Jan 25 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.3.5-3 |
---|
| 78 | - using golang-* RPM packages for BuildRequires |
---|
| 79 | - stop 'go get' in build section |
---|
| 80 | - update build section |
---|
| 81 | - add LICENSE, README.md and Changes |
---|
| 82 | |
---|
[9989] | 83 | * Tue Jan 19 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-2 |
---|
| 84 | - build with Go |
---|
| 85 | - change spec file |
---|
[9983] | 86 | |
---|
[9989] | 87 | * Sun Jan 17 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-1 |
---|
| 88 | - new package |
---|
| 89 | |
---|