commit fd00fb3b641ea6580acf8667296236a6d7798d44
Author: Vincent Batts <vbatts(a)redhat.com>
Date: Wed Mar 26 15:48:05 2014 -0400
include rpm macros with %gopath
golang.spec | 12 +++++++++++-
macros.golang | 1 +
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/golang.spec b/golang.spec
index 4b1517d..bb1be77 100644
--- a/golang.spec
+++ b/golang.spec
@@ -25,7 +25,7 @@
Name: golang
Version: 1.2.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The Go Programming Language
License: BSD
@@ -80,6 +80,7 @@ ExclusiveArch: %{ix86} x86_64 %{arm}
Source100: golang-gdbinit
Source101: golang-prelink.conf
+Source102: macros.golang
# Patch4 - pull in new archive/tar upstream patch, this file is part
# of the upstream merge and is used for test cases.
@@ -275,6 +276,10 @@ cp -av %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d/golang
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
+# rpm macros
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
+cp -av %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.golang
+
%files
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS VERSION
@@ -296,6 +301,8 @@ cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
# prelink blacklist
%{_sysconfdir}/prelink.conf.d
+%{_sysconfdir}/rpm/macros.golang
+
%files vim
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
@@ -318,6 +325,9 @@ cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
%changelog
+* Wed Mar 26 2014 Vincent Batts <vbatts(a)fedoraproject.org> 1.2.1-2
+- provide a system rpm macros. Starting with %gopath
+
* Tue Mar 04 2014 Adam Miller <maxamillion(a)fedoraproject.org> 1.2.1-1
- Update to latest upstream
diff --git a/macros.golang b/macros.golang
new file mode 100644
index 0000000..42cb2a1
--- /dev/null
+++ b/macros.golang
@@ -0,0 +1 @@
+%gopath %{_datadir}/gocode