commit cacd9f450e130271e3e839c1d6642ce00573af18
Author: Lokesh Mandvekar <[email protected]>
Date:   Mon Apr 28 13:30:17 2014 -0400

    Bug 1092057 - initial package

 .gitignore                        |    1 +
 golang-github-kdar-factorlog.spec |   60 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..eb0686e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/context-814d8f7.tar.gz
diff --git a/golang-github-kdar-factorlog.spec 
b/golang-github-kdar-factorlog.spec
new file mode 100644
index 0000000..ef371ca
--- /dev/null
+++ b/golang-github-kdar-factorlog.spec
@@ -0,0 +1,60 @@
+%global debug_package   %{nil}
+%global import_path     github.com/kdar/factorlog
+%global gopath          %{_datadir}/gocode
+%global commit          814d8f7ea0cba0a35203db9181a3269699eca59e
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-github-kdar-factorlog
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        Fast logging infrastructure for Go
+License:        MIT
+URL:            http://www.gorillatoolkit.org/pkg/context
+Source0:        
https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+Requires:       golang
+Summary:        Fast logging infrastructure for Go
+Provides:       golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+FactorLog is a fast logging infrastructure for Go that provides numerous
+logging functions for whatever your style may be. It could easily be a
+replacement for Go's log in the standard library (though it doesn't support
+functions such as SetFlags()).
+
+This package contains library source intended for building other packages
+which use kdar/factorlog.
+
+%prep
+%setup -n factorlog-%{commit}
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+
+%files devel
+%defattr(-,root,root,-)
+%doc LICENSE README.md
+%dir %attr(755,root,root) %{gopath}
+%dir %attr(755,root,root) %{gopath}/src
+%dir %attr(755,root,root) %{gopath}/src/github.com
+%dir %attr(755,root,root) %{gopath}/src/github.com/kdar
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Mon Apr 28 2014 Lokesh Mandvekar <[email protected]> 0-0.1.git
+- Bug 1092057 - Initial fedora package
diff --git a/sources b/sources
index e69de29..5cd21d5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+68d47f36fbff0f517848f21e176f3394  context-814d8f7.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to