Created
July 2, 2014 16:39
-
-
Save oremj/4b34f2a0966e071a712e to your computer and use it in GitHub Desktop.
Golang spec file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%global debug_package %{nil} | |
%global __strip /bin/true | |
Name: golang | |
Version: 1.3 | |
Release: 1%{?dist} | |
Summary: Golang | |
Group: Development/Languages | |
License: BSD | |
URL: http://golang.org | |
Source0: http://golang.org/dl/go1.3.linux-amd64.tar.gz | |
AutoReqProv: no | |
%description | |
Golang | |
%prep | |
%setup -q -n go | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
mkdir -p "$RPM_BUILD_ROOT/usr/local/go" | |
mkdir -p "$RPM_BUILD_ROOT/usr/bin/" | |
mv * "$RPM_BUILD_ROOT/usr/local/go/" | |
ln -s /usr/local/go/bin/go $RPM_BUILD_ROOT/usr/bin/go | |
ln -s /usr/local/go/bin/godoc $RPM_BUILD_ROOT/usr/bin/godoc | |
ln -s /usr/local/go/bin/gofmt $RPM_BUILD_ROOT/usr/bin/gofmt | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
%defattr(-,root,root,-) | |
/usr/local/go/* | |
/usr/bin/go | |
/usr/bin/gofmt | |
/usr/bin/godoc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment