1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- %define pkg_name peco
- %define pkg_version 0.3.6
- %define pkg_release 1%{?_dist_release}
- %global gopath %{_datadir}/gocode
- Summary: Simplistic interactive filtering tool
- Summary(ja): シンプルな対話式フィルタリングツール
- Name: %{pkg_name}
- Version: %{pkg_version}
- Release: %{pkg_release}
- License: MIT License
- Group: Applications/Text
- URL: https://github.com/peco/peco
- Source: https://github.com/peco/peco/archive/v%{version}.tar.gz#/peco-%{version}.tar.gz
- BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
- BuildRequires: golang
- BuildRequires: golang(github.com/google/btree)
- BuildRequires: golang(github.com/mattn/go-runewidth)
- BuildRequires: golang(github.com/jessevdk/go-flags)
- BuildRequires: golang(github.com/nsf/termbox-go)
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: ara_t
- %description
- peco is a simplistic interactive filtering tool
- based on a python tool, percol, and written in Go.
- %description -l ja
- pecoはシンプルな対話式フィルタリングツールであり、
- Pyhon製のpercolをGo言語で実装したプログラムです。
- %prep
- %{__rm} -rf ${RPM_BUILD_ROOT}
- %setup -q
- %build
- export BUILD_DIR=$(pwd)/.build
- export GOPATH=$BUILD_DIR:%{gopath}
- %{__mkdir_p} $BUILD_DIR/src/github.com/peco/peco
- %{__cp} -r * $BUILD_DIR/src/github.com/peco/peco
- go build cmd/peco/peco.go
- %install
- %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
- %{__install} -m 755 peco ${RPM_BUILD_ROOT}%{_bindir}
- %clean
- %{__rm} -rf ${RPM_BUILD_ROOT}
- %files
- %defattr(-, root, root)
- %doc LICENSE
- %doc README.md Changes
- %{_bindir}/
- %changelog
- * Wed May 11 2016 Toshiaki Ara <ara_t@384.jp> 0.3.6-1
- - update to 0.3.6
- * Sun Apr 10 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-5
- - correct SPEC file
- * Fri Jan 29 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-4
- - defile %%{gopath}
- * Mon Jan 25 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.3.5-3
- - using golang-* RPM packages for BuildRequires
- - stop 'go get' in build section
- - update build section
- - add LICENSE, README.md and Changes
- * Tue Jan 19 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-2
- - build with Go
- - change spec file
- * Sun Jan 17 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-1
- - new package
|