commit ef1c768d13f76822a00470fefc46580f580e43fd
Author: Lokesh Mandvekar <l...@fedoraproject.org>
Date:   Tue Nov 11 18:16:50 2014 -0800

    Resolves: rhbz#1158670 - initial upload
    
    Signed-off-by: Lokesh Mandvekar <l...@fedoraproject.org>

 .gitignore                         |    1 +
 golang-github-Sirupsen-logrus.spec |   74 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 3 files changed, 76 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b2be597 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v0.5.1.tar.gz
diff --git a/golang-github-Sirupsen-logrus.spec 
b/golang-github-Sirupsen-logrus.spec
new file mode 100644
index 0000000..84a10db
--- /dev/null
+++ b/golang-github-Sirupsen-logrus.spec
@@ -0,0 +1,74 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         Sirupsen
+%global repo            logrus
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+
+Name:       golang-%{provider}-%{project}-%{repo}
+Version:    0.5.1
+Release:    2%{?dist}
+Summary:    Structured logger for Go
+License:    MIT
+URL:        https://%{import_path}
+Source0:    https://%{import_path}/archive/v%{version}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:  noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+BuildRequires:  golang(github.com/stretchr/testify/assert)
+Requires:   golang >= 1.2.1-3
+Requires:   golang(github.com/stretchr/testify/assert)
+Summary:    Structured logger for Go
+Provides:   golang(%{import_path}) = %{version}-%{release}
+Provides:   golang(%{import_path}/hooks/airbrake) = %{version}-%{release}
+Provides:   golang(%{import_path}/hooks/papertrail) = %{version}-%{release}
+Provides:   golang(%{import_path}/hooks/syslog) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use %{project}/%{repo}.
+
+%prep
+%setup -qn %{repo}-%{version}
+
+%build
+
+%install
+install -dp %{buildroot}%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}
+for dir in */ ; do
+    cp -rpav $dir %{buildroot}%{gopath}/src/%{import_path}/
+done
+
+%check
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc README.md LICENSE
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/*
+%dir %{gopath}/src/%{import_path}/*/*
+%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}/*/*/*.go
+%{gopath}/src/%{import_path}/*/*/*.md
+
+%changelog
+* Thu Oct 30 2014 Lokesh Mandvekar <l...@fedoraproject.org> - 0.5.1-2
+- Resolves: rhbz#1158670 - initial package bug
+- courtesy Jan Chaloupka <jchal...@redhat.com>
+- update dependencies
+- add check
+
+* Wed Oct 29 2014 Lokesh Mandvekar <l...@fedoraproject.org> - 0.5.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..89bf5f7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+daba7237ab6788def8781c7033c2e0a2  v0.5.1.tar.gz
_______________________________________________
golang mailing list
golang@lists.fedoraproject.org
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to