Subject: jchaloup pushed to golang-github-jtolds-gls (el6).
"Polish the spec file (..more)"



From ce7b997222a619dd140b37572cd73fc07429a227 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <[email protected]>
Date: Thu, 12 Jan 2017 10:52:20 +0100
Subject: Polish the spec file - related: #1250490

---
golang-github-jtolds-gls.spec | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)

diff --git a/golang-github-jtolds-gls.spec b/golang-github-jtolds-gls.spec
index 9e261a4..db1e7ed 100644
--- a/golang-github-jtolds-gls.spec
+++ b/golang-github-jtolds-gls.spec
@@ -1,16 +1,27 @@
-%if 0%{?fedora} || 0%{?rhel} == 6
+# If any of the following macros should be set otherwise,
+# you can wrap any of them with the following conditions:
+# - %%if 0%%{centos} == 7
+# - %%if 0%%{?rhel} == 7
+# - %%if 0%%{?fedora} == 23
+# Or just test for particular distribution:
+# - %%if 0%%{centos}
+# - %%if 0%%{?rhel}
+# - %%if 0%%{?fedora}
+#
+# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
+# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0
condition.
+# (Don't forget to replace double percentage symbol with single one in order
to apply a condition)
+
+# Generate devel rpm
%global with_devel 1
+# Build project from bundled dependencies
%global with_bundled 0
+# Build with debug info rpm
%global with_debug 0
+# Run tests in check section
%global with_check 1
+# Generate unit-test rpm
%global with_unit_test 1
-%else
-%global with_devel 0
-%global with_bundled 0
-%global with_debug 0
-%global with_check 0
-%global with_unit_test 0
-%endif

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
@@ -30,14 +41,14 @@

Name: golang-%{provider}-%{project}-%{repo}
Version: 0
-Release: 0.6.git%{shortcommit}%{?dist}
+Release: 0.7.git%{shortcommit}%{?dist}
Summary: Goroutine local storage
License: MIT
URL: https://%{provider_prefix}
Source0:
https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
-ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
+ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64
%{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang
instead.
BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

@@ -150,6 +161,10 @@ export
GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif

%changelog
+* Thu Jan 12 2017 Jan Chaloupka <[email protected]> - 0-0.7.git9a4a02d
+- Polish the spec file
+ related: #1250490
+
* Thu Jul 21 2016 Fedora Release Engineering <[email protected]>
- 0-0.6.git9a4a02d
- https://fedoraproject.org/wiki/Changes/golang1.7

--
cgit v0.12



http://pkgs.fedoraproject.org/cgit/golang-github-jtolds-gls.git/commit/?h=el6&id=ce7b997222a619dd140b37572cd73fc07429a227
_______________________________________________
scm-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]



Programming list archiving by: Enterprise Git Hosting