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