| |
@@ -441,12 +441,6 @@
|
| |
ln -sf %{goroot}/bin/go $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}/go
|
| |
ln -sf %{goroot}/bin/gofmt $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}/gofmt
|
| |
|
| |
- # ensure these exist and are owned
|
| |
- mkdir -p $RPM_BUILD_ROOT%{gopath}/src/github.com
|
| |
- mkdir -p $RPM_BUILD_ROOT%{gopath}/src/bitbucket.org
|
| |
- mkdir -p $RPM_BUILD_ROOT%{gopath}/src/code.google.com/p
|
| |
- mkdir -p $RPM_BUILD_ROOT%{gopath}/src/golang.org/x
|
| |
-
|
| |
# make sure these files exist and point to alternatives
|
| |
rm -f $RPM_BUILD_ROOT%{_bindir}/go
|
| |
ln -sf /etc/alternatives/go $RPM_BUILD_ROOT%{_bindir}/go
|
| |
@@ -511,17 +505,6 @@
|
| |
%exclude %{goroot}/test/
|
| |
%{goroot}/*
|
| |
|
| |
- # ensure directory ownership, so they are cleaned up if empty
|
| |
- %dir %{gopath}
|
| |
- %dir %{gopath}/src
|
| |
- %dir %{gopath}/src/github.com/
|
| |
- %dir %{gopath}/src/bitbucket.org/
|
| |
- %dir %{gopath}/src/code.google.com/
|
| |
- %dir %{gopath}/src/code.google.com/p/
|
| |
- %dir %{gopath}/src/golang.org
|
| |
- %dir %{gopath}/src/golang.org/x
|
| |
-
|
| |
-
|
| |
# gdbinit (for gdb debugging)
|
| |
%{_sysconfdir}/gdbinit.d
|
| |
|
| |
Everything except
%dir %{gopath}
%dir %{gopath}/src
is useless nowadays as our Go packages own their directories properly now, and %{gopath} + %{gopath}/src are going to be provided cleanly by the go-filesystem subpackage generated from fo-rpm-macros