[golang-github-kr-pretty/f20] Initial commit
Jan Chaloupka
jchaloup at fedoraproject.org
Wed Sep 24 10:41:44 UTC 2014
commit 5506757577a8e4fad247fe8fca9350dd9f11f882
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Wed Sep 24 12:41:44 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/%{import_path}
+Source0: https://%{import_path}/archive/%{commit}/pretty-%{shortcommit}.tar.gz
+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 at fedoraproject.org> - 0-0.2.git
+- don't redefine gopath
+- preserve timestamps
+
+* Wed Aug 06 2014 Adam Miller <maxamillion at 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
More information about the scm-commits
mailing list