[golang-github-bmizerany-pat/el6] Initial commit - resolves: #1148702

Jan Chaloupka jchaloup at fedoraproject.org
Thu Oct 9 12:40:01 UTC 2014


commit 8b211dc8e8723f4fbe7bf85bc28e2b13c98bc56a
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Thu Oct 9 14:07:21 2014 +0200

    Initial commit
    - resolves: #1148702

 .gitignore                       |    1 +
 golang-github-bmizerany-pat.spec |   65 ++++++++++++++++++++++++++++++++++++++
 sources                          |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c160863 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pat-b8a3500.tar.gz
diff --git a/golang-github-bmizerany-pat.spec b/golang-github-bmizerany-pat.spec
new file mode 100644
index 0000000..22f9a47
--- /dev/null
+++ b/golang-github-bmizerany-pat.spec
@@ -0,0 +1,65 @@
+%global provider	github
+%global provider_tld	com
+%global project		bmizerany
+%global repo		pat
+%global commit		b8a35001b773c267eb260a691f4e5499a3531600
+
+%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:	A Sinatra style pattern muxer for Go's net/http library
+License:	BSD
+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/bmizerany/assert)
+Requires:	golang >= 1.2.1-3
+Requires:	golang(github.com/bmizerany/assert)
+Summary:	A Sinatra style pattern muxer for Go's net/http library
+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
+%dir %{gopath}/src/%{import_path}/example/patexample
+%{gopath}/src/%{import_path}/example/*.go
+%{gopath}/src/%{import_path}/example/patexample/*.go
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Thu Sep 25 2014 Jan Chaloupka <jchaloup at redhat.com> - 0-0.1.gitb8a3500
+- First package for Fedora
+
+
+
diff --git a/sources b/sources
index e69de29..42696ef 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dbc143cc86ce9d2e52d10622f1a10263  pat-b8a3500.tar.gz


More information about the scm-commits mailing list