From f1cafd18ecd4a9d5731f73106a83011d07fd5808 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Feb 24 2016 01:13:24 +0000 Subject: Cleanup spec --- diff --git a/golang-github-SeanDolphin-bqschema.spec b/golang-github-SeanDolphin-bqschema.spec index 80a4318..227cea1 100644 --- a/golang-github-SeanDolphin-bqschema.spec +++ b/golang-github-SeanDolphin-bqschema.spec @@ -18,13 +18,6 @@ %global debug_package %{nil} %endif -%define copying() \ -%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7 \ -%license %{*} \ -%else \ -%doc %{*} \ -%endif - %global provider github %global provider_tld com %global project SeanDolphin @@ -37,7 +30,7 @@ Name: golang-%{provider}-%{project}-%{repo} Version: 0 -Release: 0.8.git%{shortcommit}%{?dist} +Release: 0.9.git%{shortcommit}%{?dist} Summary: Package for creating Google Big Query from Go structs License: ASL 2.0 URL: https://%{provider_prefix} @@ -91,18 +84,6 @@ building other packages which use import path with %if 0%{?with_unit_test} %package unit-test Summary: Unit tests for %{name} package -# If go_arches not defined fall through to implicit golang archs -%if 0%{?go_arches:1} -ExclusiveArch: %{go_arches} -%else -ExclusiveArch: %{ix86} x86_64 %{arm} -%endif -# If gccgo_arches does not fit or is not defined fall through to golang -%ifarch 0%{?gccgo_arches} -BuildRequires: gcc-go >= %{gccgo_min_vers} -%else -BuildRequires: golang -%endif %if 0%{?with_check} #Here comes all BuildRequires: PACKAGE the unit tests @@ -165,7 +146,8 @@ gotest %{import_path} %if 0%{?with_devel} %files devel -f devel.file-list -%copying LICENSE +%{!?_licensedir:%global license %%doc} +%license LICENSE %doc README.md %dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} %dir %{gopath}/src/%{import_path} @@ -173,11 +155,15 @@ gotest %{import_path} %if 0%{?with_unit_test} %files unit-test -f unit-test.file-list -%copying LICENSE +%{!?_licensedir:%global license %%doc} +%license LICENSE %doc README.md %endif %changelog +* Tue Feb 23 2016 Peter Robinson 0-0.9.git41d07ee +- Cleanup spec + * Mon Feb 22 2016 Fedora Release Engineering - 0-0.8.git41d07ee - https://fedoraproject.org/wiki/Changes/golang1.6