diff options
author | Ed Marshall <esm@logic.net> | 2017-03-10 17:09:18 -0800 |
---|---|---|
committer | Ed Marshall <esm@logic.net> | 2017-03-10 17:09:18 -0800 |
commit | c52c60de7043cb9df48d742cf436d625ab08366a (patch) | |
tree | b082c987e7cc658720b3e459a2e84b07bc45f922 | |
parent | a0de716945e9d3ab8e53beb630d91fb6a04ea2cc (diff) | |
download | golang-github-google-go-github-c52c60de7043cb9df48d742cf436d625ab08366a.tar.gz golang-github-google-go-github-c52c60de7043cb9df48d742cf436d625ab08366a.tar.xz golang-github-google-go-github-c52c60de7043cb9df48d742cf436d625ab08366a.zip |
Fix unit tests, bump to latest release
l--------- | go-github-553fda4.tar.gz | 1 | ||||
-rw-r--r-- | golang-github-google-go-github.spec | 16 |
2 files changed, 10 insertions, 7 deletions
diff --git a/go-github-553fda4.tar.gz b/go-github-553fda4.tar.gz new file mode 120000 index 0000000..51b0be5 --- /dev/null +++ b/go-github-553fda4.tar.gz @@ -0,0 +1 @@ +.git/annex/objects/VK/wm/SHA256E-s165995--5f0808040ad8ecd6d60708e62742b3953014360a0e8095d8868ac345297fc6cb.tar.gz/SHA256E-s165995--5f0808040ad8ecd6d60708e62742b3953014360a0e8095d8868ac345297fc6cb.tar.gz
\ No newline at end of file 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 <esm@logic.net> - 0-0.1.git1c08387e +* Fri Mar 10 2017 Ed Marshall <esm@logic.net> - 0-0.1.git553fda4 - First package for Fedora |