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