[golang-gopkg-yaml] Adding go test and deps on gopkg.in/check.v1 Adding another Provides
Jan Chaloupka
jchaloup at fedoraproject.org
Tue Oct 14 13:10:14 UTC 2014
commit 9bad18e720f4126e34d7838da6e5c3b599f36469
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Fri Oct 10 16:18:15 2014 +0200
Adding go test and deps on gopkg.in/check.v1
Adding another Provides
golang-gopkg-yaml.spec | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/golang-gopkg-yaml.spec b/golang-gopkg-yaml.spec
index 1c940f8..4861d8c 100644
--- a/golang-gopkg-yaml.spec
+++ b/golang-gopkg-yaml.spec
@@ -2,10 +2,11 @@
%global commit 1b9791953ba4027efaeb728c7355e542a203be5e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global import_path gopkg.in/v1/yaml
+%global import_path_sec gopkg.in/yaml.v1
Name: golang-gopkg-yaml
Version: 1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Enables Go programs to comfortably encode and decode YAML values
License: LGPLv3 with exceptions
URL: http://%{import_path}
@@ -17,9 +18,11 @@ BuildArch: noarch
%package devel
BuildRequires: golang >= 1.2.1-3
+BuildRequires: golang(gopkg.in/check.v1)
Requires: golang >= 1.2.1-3
Summary: Enables Go programs to comfortably encode and decode YAML values
Provides: golang(%{import_path}) = %{version}-%{release}
+Provides: golang(%{import_path_sec}) = %{version}-%{release}
%description devel
%{summary}
@@ -42,15 +45,26 @@ features are not hard to add, and will be introduced as necessary.
%install
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
+install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path_sec}/
+
+%check
+GOPATH=%{buildroot}%{gopath}:%{gopath} go test %{import_path_sec}
%files devel
%doc LICENSE LICENSE.libyaml README.md
%dir %{gopath}/src/gopkg.in
%dir %{gopath}/src/gopkg.in/v1
%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path_sec}
%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path_sec}/*.go
%changelog
+* Fri Oct 10 2014 jchaloup <jchaloup at redhat.com> - 1-4
+- Adding go test and deps on gopkg.in/check.v1
+- Adding another Provides
+
* Mon Sep 15 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 1-3
- Resolves: rhbz#1141875 - newpackage
- no debug_package
More information about the scm-commits
mailing list