[golang-github-bmizerany-assert/el6] Initial commit - resolves: #1148700

Jan Chaloupka jchaloup at fedoraproject.org
Thu Oct 9 11:43:12 UTC 2014


commit ca6ed6a34a4b5b8abfe13d4d42c2323507411cdf
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Thu Oct 9 11:05:45 2014 +0200

    Initial commit
    - resolves: #1148700

 .gitignore                          |    1 +
 golang-github-bmizerany-assert.spec |   63 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..062e69b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/assert-e17e998.tar.gz
diff --git a/golang-github-bmizerany-assert.spec b/golang-github-bmizerany-assert.spec
new file mode 100644
index 0000000..0d4b390
--- /dev/null
+++ b/golang-github-bmizerany-assert.spec
@@ -0,0 +1,63 @@
+%global provider	github
+%global provider_tld	com
+%global project		bmizerany
+%global repo		assert
+%global commit		e17e99893cb6509f428e1728281c2ad60a6b31e3
+
+%global import_path	%{provider}.%{provider_tld}/%{project}/%{repo}
+%global shortcommit	%(c=%{commit}; echo ${c:0:7})
+%global debug_package	%{nil}
+
+Name:		golang-%{provider}-%{project}-%{repo}
+Version:	0
+Release:	0.1.git%{shortcommit}%{?dist}
+Summary:	Assertions for Go tests
+License:	MIT
+URL:		http://%{import_path}
+Source0:	https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:	noarch
+
+%description
+%{summary}.
+
+%package devel
+BuildRequires:	golang >= 1.2.1-3
+BuildRequires:	golang(github.com/kr/pretty)
+Requires:	golang >= 1.2.1-3
+Requires:	golang(github.com/kr/pretty)
+Summary:	Assertions for Go tests
+Provides:	golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+%{summary}.
+
+This package contains library source intended for 
+building other packages which use %{project}/%{repo}.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+cp -pav example %{buildroot}/%{gopath}/src/%{import_path}/
+
+%check
+GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/example
+%{gopath}/src/%{import_path}/example/*.go
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Thu Sep 25 2014 Jan Chaloupka <jchaloup at redhat.com> - 0-0.1.gite17e998
+- First package for Fedora
+
+
+
diff --git a/sources b/sources
index e69de29..bab916d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2d2f547eb79ccf92ef62c0e712740c71  assert-e17e998.tar.gz


More information about the scm-commits mailing list