|
@@ -1,5 +1,5 @@
|
|
|
%define pkg_version 0.3.5
|
|
|
-%define pkg_release 2%{?_dist_release}
|
|
|
+%define pkg_release 3%{?_dist_release}
|
|
|
|
|
|
Summary: Simplistic interactive filtering tool
|
|
|
Summary(ja): シンプルな対話式フィルタリングツール
|
|
@@ -10,11 +10,14 @@ Release: %{pkg_release}
|
|
|
License: MIT License
|
|
|
Group: Applications/Text
|
|
|
URL: https://github.com/peco/peco
|
|
|
-Source: %{name}-%{version}.tar.gz
|
|
|
+Source: https://github.com/peco/peco/archive/v%{version}.tar.gz#/peco-%{version}.tar.gz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
|
|
|
BuildRequires: golang
|
|
|
-BuildRequires: git
|
|
|
+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
|
|
@@ -35,14 +38,11 @@ Pyhon製のpercolをGo言語で実装したプログラムです。
|
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
-export GOPATH=$HOME/rpm/BUILD
|
|
|
-go get github.com/google/btree
|
|
|
-go get github.com/jessevdk/go-flags
|
|
|
-go get github.com/mattn/go-runewidth
|
|
|
-go get github.com/nsf/termbox-go
|
|
|
-
|
|
|
-%{__mkdir} -p $GOPATH/src/github.com/peco/peco
|
|
|
-%{__cp} -r * $GOPATH/src/github.com/peco/peco
|
|
|
+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
|
|
@@ -55,10 +55,18 @@ go build cmd/peco/peco.go
|
|
|
|
|
|
%files
|
|
|
%defattr(-, root, root)
|
|
|
+%doc LICENSE
|
|
|
+%doc README.md Changes
|
|
|
%{_bindir}/
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* 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
|