2011-05-19 20:17:10 +02:00
|
|
|
# Macros for Go module building.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 Sascha Peilicke <saschpe@gmx.de>
|
|
|
|
#
|
|
|
|
|
|
|
|
%go_ver 0.0.r57.1+hg20110519
|
|
|
|
%go_arch amd64
|
|
|
|
|
|
|
|
%go_dir %{_libdir}/go
|
|
|
|
%go_sitedir %{_libdir}/go/pkg
|
2011-05-19 22:36:34 +02:00
|
|
|
%go_sitearch %{_libdir}/go/pkg/linux_%{go_arch}
|
2011-05-19 20:17:10 +02:00
|
|
|
|
2011-05-19 20:23:17 +02:00
|
|
|
%go_requires \
|
2011-05-19 22:36:34 +02:00
|
|
|
BuildRequires: go = %{go_ver}
|
2011-05-19 20:17:10 +02:00
|
|
|
|
2011-05-19 20:23:17 +02:00
|
|
|
%go_provides \
|
2011-05-19 20:17:10 +02:00
|
|
|
Provides: %{name}-devel \
|
|
|
|
Provides: %{name}-devel-static
|
|
|
|
|
|
|
|
%go_make \
|
2011-05-19 22:36:34 +02:00
|
|
|
GOROOT=%{go_dir} \
|
|
|
|
make
|
2011-05-19 20:17:10 +02:00
|
|
|
|
|
|
|
%go_make_install \
|
2011-05-19 22:36:34 +02:00
|
|
|
GOROOT=%{go_dir} \
|
|
|
|
TARGDIR=%{buildroot}%{go_sitearch}/pkg/linux_%{go_arch} \
|
|
|
|
make install
|
2011-05-19 20:17:10 +02:00
|
|
|
|