commit 6825fbe0a6cbe0a1eae96dc16b7af6dcd35715a3 Author: Jan Chaloupka jchaloup@redhat.com Date: Wed Sep 24 11:57:24 2014 +0200
Initial commit
.gitignore | 1 + golang-github-kr-pretty.spec | 55 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d99450a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pretty-5feda8d.tar.gz diff --git a/golang-github-kr-pretty.spec b/golang-github-kr-pretty.spec new file mode 100644 index 0000000..94cb64e --- /dev/null +++ b/golang-github-kr-pretty.spec @@ -0,0 +1,55 @@ +%global debug_package %{nil} +%global import_path github.com/kr/pretty +%global commit 5feda8d406801dae804b9773a257cc5592ef88ab +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-github-kr-pretty +Version: 0 +Release: 0.2.git%{shortcommit}%{?dist} +Summary: Provides pretty-printing for go values +License: MIT +URL: http://godoc.org/%%7Bimport_path%7D +Source0: https://%%7Bimport_path%7D/archive/%%7Bcommit%7D/pretty-%%7Bshortcommit%7D.t... +BuildArch: noarch + +%description +Package pretty provides pretty-printing for go values. This is useful during +debugging, to avoid wrapping long output lines in the terminal. + +%package devel +BuildRequires: golang >= 1.2.1-3 +BuildRequires: golang(github.com/kr/text) +Requires: golang >= 1.2.1-3 +Requires: golang(github.com/kr/text) +Summary: Provides pretty-printing for go values +Provides: golang(%{import_path}) = %{version}-%{release} + +%description devel +Package pretty provides pretty-printing for go values. This is useful during +debugging, to avoid wrapping long output lines in the terminal. + +%prep +%setup -q -n pretty-%{commit} + +%build + +%install +install -d %{buildroot}/%{gopath}/src/%{import_path} +cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path} + +%check +GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path} + +%files devel +%doc License Readme +%dir %attr(755,root,root) %{gopath}/src/github.com/kr +%dir %attr(755,root,root) %{gopath}/src/%{import_path} +%{gopath}/src/%{import_path}/*.go + +%changelog +* Mon Sep 15 2014 Lokesh Mandvekar lsm5@fedoraproject.org - 0-0.2.git +- don't redefine gopath +- preserve timestamps + +* Wed Aug 06 2014 Adam Miller maxamillion@fedoraproject.org - 0.1.git5feda8d +- First package for Fedora. diff --git a/sources b/sources index e69de29..970ee00 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c74b0a781f880619d7998bf57f12d52a pretty-5feda8d.tar.gz