Browse Source

peco 0.3.5-2; override iwaim package spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9989 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 8 years ago
parent
commit
ad525fdcd9
1 changed files with 51 additions and 48 deletions
  1. 51 48
      p/peco/peco-vl.spec

+ 51 - 48
p/peco/peco-vl.spec

@@ -1,65 +1,68 @@
-%global provider        github
-%global provider_tld    com
-%global project         peco
-%global repo            peco
-# https://github.com/peco/peco
-%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
-%global import_path     %{provider_prefix}
-#%global commit          none
-#%global shortcommit     %(c=%{commit}; echo ${c:0:7})
-
-Name:           peco
-Version:        0.3.5
-Release:        1%{?dist}
-Summary:        Simplistic interactive filtering tool
-License:        MIT
-URL:            https://%{import_path}
-Source0:        https://github.com/peco/peco/archive/v%{version}.tar.gz#/peco-%{version}.tar.gz
-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)
+%define pkg_version 0.3.5
+%define pkg_release 2%{?_dist_release}
+
+Summary:          Simplistic interactive filtering tool
+Summary(ja):      シンプルな対話式フィルタリングツール
+Name:             peco
+Version:          %{pkg_version}
+Release:          %{pkg_release}
+
+License:          MIT License
+Group:            Applications/Text
+URL:              https://github.com/peco/peco
+Source:           %{name}-%{version}.tar.gz
+
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-root
+BuildRequires: golang
+BuildRequires: git
 
 Vendor: Project Vine
 Distribution: Vine Linux
-Packager: iwaim
-
-# 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
+Packager: Toshiaki Ara <ara_t@384.jp>
 
 %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
-%setup -q -n %{repo}-%{version}
-%patch0 -p1
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%setup -q
 
 %build
-export GOPATH=$(pwd):%{gopath}
-%__mkdir_p src/github.com/peco/peco
-%__ln_s $(pwd)/internal src/github.com/peco/peco/
-go build -o make build/make.go
-./make build-single
+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
+go build cmd/peco/peco.go
 
 %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
-%doc LICENSE
-%doc README.md Changes
-%{_bindir}/peco
+%defattr(-, root, root)
+%{_bindir}/
+
 
 %changelog
-* Sun Jan 24 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 0.3.5-1
-- initial build for Vine Linux
+* 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