From c52c60de7043cb9df48d742cf436d625ab08366a Mon Sep 17 00:00:00 2001 From: Ed Marshall Date: Fri, 10 Mar 2017 17:09:18 -0800 Subject: Fix unit tests, bump to latest release --- golang-github-google-go-github.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'golang-github-google-go-github.spec') diff --git a/golang-github-google-go-github.spec b/golang-github-google-go-github.spec index d9b24ed..d0d71f9 100644 --- a/golang-github-google-go-github.spec +++ b/golang-github-google-go-github.spec @@ -19,10 +19,9 @@ # Build with debug info rpm %global with_debug 0 # Run tests in check section -# a test is failing in mock for some reason, will revisit later -%global with_check 0 +%global with_check 1 # Generate unit-test rpm -%global with_unit_test 0 +%global with_unit_test 1 %if 0%{?with_debug} %global _dwz_low_mem_die_limit 0 @@ -38,7 +37,7 @@ # https://github.com/google/go-github %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider_prefix} -%global commit 1c08387e4c91df86627d0853f155a4efc8cb8a2d +%global commit 553fda401c08956cdbc33554240d41ec462a0b62 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: golang-%{provider}-%{project}-%{repo} @@ -73,7 +72,6 @@ BuildRequires: golang(github.com/google/go-querystring/query) Requires: golang(github.com/google/go-querystring/query) Provides: golang(%{import_path}/github) = %{version}-%{release} -Provides: golang(%{import_path}/tests/integration) = %{version}-%{release} %description devel %{summary} @@ -96,6 +94,7 @@ Requires: %{name}-devel = %{version}-%{release} %if 0%{?with_check} && ! 0%{?with_bundled} BuildRequires: golang(golang.org/x/oauth2) +BuildRequires: mailcap %endif Requires: golang(golang.org/x/oauth2) @@ -112,6 +111,9 @@ providing packages with %{import_path} prefix. %build %install +# Remove network tests and examples, we don't need them packaged +rm -r tests examples + # source codes for building projects %if 0%{?with_devel} install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ @@ -175,7 +177,7 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath} %if 0%{?with_devel} %files devel -f devel.file-list %license LICENSE -%doc README.md AUTHORS CONTRIBUTING.md examples +%doc README.md AUTHORS CONTRIBUTING.md %dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} %endif @@ -186,5 +188,5 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath} %endif %changelog -* Sat Mar 04 2017 Ed Marshall - 0-0.1.git1c08387e +* Fri Mar 10 2017 Ed Marshall - 0-0.1.git553fda4 - First package for Fedora -- cgit