[golang-github-coreos-go-log] Update [Build]Requires for github.com/coreos/go-systemd/journal Polish spec file Do not redefine gop

Jan Chaloupka jchaloup at fedoraproject.org
Wed Jan 21 17:11:35 UTC 2015


commit 9792a8d9c9bc7cd2be4d0be218edce25344e620a
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Wed Jan 21 17:40:50 2015 +0100

    Update [Build]Requires for github.com/coreos/go-systemd/journal
    Polish spec file
    Do not redefine gopath
    - related: #1018523

 golang-github-coreos-go-log.spec |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)
---
diff --git a/golang-github-coreos-go-log.spec b/golang-github-coreos-go-log.spec
index 476e23b..e665646 100644
--- a/golang-github-coreos-go-log.spec
+++ b/golang-github-coreos-go-log.spec
@@ -1,12 +1,15 @@
 %global debug_package   %{nil}
-%global import_path     github.com/coreos/go-log
-%global gopath          %{_datadir}/gocode
+%global provider	github
+%global provider_tld	com
+%global project		coreos
+%global repo		go-log
+%global import_path	%{provider}.%{provider_tld}/%{project}/%{repo}
 %global commit          840af6b63e623201384b2f20a8e7d3f2dcfef063
 %global shortcommit     %(c=%{commit}; echo ${c:0:7})
 
 Name:           golang-github-coreos-go-log
 Version:        0
-Release:        0.6.git%{shortcommit}%{?dist}
+Release:        0.7.git%{shortcommit}%{?dist}
 Summary:        A golang library for logging to systemd
 License:        ASL 2.0
 URL:            http://%{import_path}
@@ -21,9 +24,12 @@ ExclusiveArch:  %{ix86} x86_64 %{arm}
 %{summary}
 
 %package devel
-Requires:       golang
+BuildRequires:       golang >= 1.2.1-3
+BuildRequires:       golang(bitbucket.org/kardianos/osext)
+BuildRequires:       golang(github.com/coreos/go-systemd/journal)
+Requires:       golang >= 1.2.1-3
 Requires:       golang(bitbucket.org/kardianos/osext)
-Requires:       golang(github.com/coreos/go-systemd)
+Requires:       golang(github.com/coreos/go-systemd/journal)
 Summary:        A golang library for logging to systemd
 Provides:       golang(%{import_path}/log) = %{version}-%{release}
 
@@ -34,25 +40,26 @@ This package contains library source intended for building other packages
 which use coreos/go-log.
 
 %prep
-%setup -n go-log-%{commit}
+%setup -q -n %{repo}-%{commit}
 
 %build
 
 %install
 install -d -p %{buildroot}/%{gopath}/src/%{import_path}/log
-cp -av log/*.go %{buildroot}/%{gopath}/src/%{import_path}/log
+cp -pav log/*.go %{buildroot}/%{gopath}/src/%{import_path}/log
 
 %files devel
 %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/coreos
-%dir %attr(755,root,root) %{gopath}/src/%{import_path}
-%dir %attr(755,root,root) %{gopath}/src/%{import_path}/log
-%{gopath}/src/%{import_path}/log/*.go
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
 
 %changelog
+* Wed Jan 21 2015 jchaloup <jchaloup at redhat.com> - 0-0.7.git840af6b
+- Update [Build]Requires for github.com/coreos/go-systemd/journal
+- Polish spec file
+- Do not redefine gopath
+  related: #1018523
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0-0.6.git840af6b
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list