|
@@ -1,65 +1,68 @@
|
|
-%global provider github
|
|
+%define pkg_version 0.3.5
|
|
-%global provider_tld com
|
|
+%define pkg_release 2%{?_dist_release}
|
|
-%global project peco
|
|
+
|
|
-%global repo peco
|
|
+Summary: Simplistic interactive filtering tool
|
|
-# https://github.com/peco/peco
|
|
+Summary(ja): シンプルな対話式フィルタリングツール
|
|
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
|
|
+Name: peco
|
|
-%global import_path %{provider_prefix}
|
|
+Version: %{pkg_version}
|
|
-#%global commit none
|
|
+Release: %{pkg_release}
|
|
-#%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
+
|
|
-
|
|
+License: MIT License
|
|
-Name: peco
|
|
+Group: Applications/Text
|
|
-Version: 0.3.5
|
|
+URL: https://github.com/peco/peco
|
|
-Release: 1%{?dist}
|
|
+Source: %{name}-%{version}.tar.gz
|
|
-Summary: Simplistic interactive filtering tool
|
|
+
|
|
-License: MIT
|
|
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
|
|
-URL: https://%{import_path}
|
|
+BuildRequires: golang
|
|
-Source0: https://github.com/peco/peco/archive/v%{version}.tar.gz#/peco-%{version}.tar.gz
|
|
+BuildRequires: git
|
|
-Patch0: peco-0.3.5_make.patch
|
|
|
|
-
|
|
|
|
-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
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
-Packager: iwaim
|
|
+Packager: Toshiaki Ara <ara_t@384.jp>
|
|
-
|
|
|
|
-# If go_arches not defined fall through to implicit golang archs
|
|
|
|
-%if 0%{?go_arches:1}
|
|
|
|
-ExclusiveArch: %{go_arches}
|
|
|
|
-%else
|
|
|
|
-ExclusiveArch: %{ix86} x86_64 %{arm}
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
-%{summary}.
|
|
+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
|
|
%prep
|
|
-%setup -q -n %{repo}-%{version}
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
-%patch0 -p1
|
|
+
|
|
|
|
+%setup -q
|
|
|
|
|
|
%build
|
|
%build
|
|
-export GOPATH=$(pwd):%{gopath}
|
|
+export GOPATH=$HOME/rpm/BUILD
|
|
-%__mkdir_p src/github.com/peco/peco
|
|
+go get github.com/google/btree
|
|
-%__ln_s $(pwd)/internal src/github.com/peco/peco/
|
|
+go get github.com/jessevdk/go-flags
|
|
-go build -o make build/make.go
|
|
+go get github.com/mattn/go-runewidth
|
|
-./make build-single
|
|
+go get github.com/nsf/termbox-go
|
|
|
|
+
|
|
|
|
+%{__mkdir} -p $GOPATH/src/github.com/peco/peco
|
|
|
|
+%{__cp} -r * $GOPATH/src/github.com/peco/peco
|
|
|
|
+go build cmd/peco/peco.go
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
+%{__mkdir} -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
+%{__install} -m 755 peco ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
+
|
|
|
|
+%clean
|
|
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
-%__install -m 0755 ./peco/peco ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
-%doc LICENSE
|
|
+%defattr(-, root, root)
|
|
-%doc README.md Changes
|
|
+%{_bindir}/
|
|
-%{_bindir}/peco
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Sun Jan 24 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.3.5-1
|
|
+* Tue Jan 19 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-2
|
|
-- initial build for Vine Linux
|
|
+- build with Go
|
|
|
|
+- change spec file
|
|
|
|
+
|
|
|
|
+* Sun Jan 17 2016 Toshiaki Ara <ara_t@384.jp> 0.3.5-1
|
|
|
|
+- new package
|
|
|
|
|