parent
45f1244cd8
commit
cc50719e5d
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
/go1.1.src.tar.gz
|
/go1.1.1.src.tar.gz
|
||||||
|
113
golang.spec
113
golang.spec
@ -5,40 +5,46 @@
|
|||||||
# "Failed to write file: invalid section alignment"
|
# "Failed to write file: invalid section alignment"
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
# we are shipping the full contents of src in the data subpackage, which
|
||||||
|
# contains binary-like things (ELF data for tests, etc)
|
||||||
|
%global _binaries_in_noarch_packages_terminate_build 0
|
||||||
|
|
||||||
|
# Do not check any files in doc or src for requires
|
||||||
|
%global __requires_exclude_from ^%{_datadir}/%{name}/(doc|src)/.*$
|
||||||
|
|
||||||
Name: golang
|
Name: golang
|
||||||
Version: 1.1
|
Version: 1.1.1
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: The Go Programming Language
|
Summary: The Go Programming Language
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://golang.org/
|
URL: http://golang.org/
|
||||||
Source0: https://go.googlecode.com/files/go%{version}.src.tar.gz
|
Source0: https://go.googlecode.com/files/go%{version}.src.tar.gz
|
||||||
|
|
||||||
BuildRequires: /bin/hostname
|
BuildRequires: /bin/hostname symlinks
|
||||||
BuildRequires: emacs xemacs xemacs-packages-extra
|
BuildRequires: emacs xemacs xemacs-packages-extra
|
||||||
|
|
||||||
Patch0: golang-1.1-verbose-build.patch
|
Patch0: golang-1.1-verbose-build.patch
|
||||||
|
|
||||||
|
# Having godoc and the documentation separate was broken
|
||||||
|
Obsoletes: %{name}-godoc < 1.1-4
|
||||||
|
|
||||||
|
# All the noarch stuff is in one package now
|
||||||
|
Requires: %{name}-data = %{version}-%{release}
|
||||||
|
|
||||||
ExclusiveArch: %{ix86} x86_64 %{arm}
|
ExclusiveArch: %{ix86} x86_64 %{arm}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%package godoc
|
%package data
|
||||||
Summary: The Go documentation tool
|
Summary: Required architecture-independent files for Go
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: %{name}-docs = %{version}-%{release}
|
BuildArch: noarch
|
||||||
|
Obsoletes: %{name}-docs < 1.1-4
|
||||||
|
|
||||||
%description godoc
|
%description data
|
||||||
%{summary}.
|
|
||||||
|
|
||||||
|
|
||||||
%package docs
|
|
||||||
Summary: Go sources and documentation
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description docs
|
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
@ -147,24 +153,20 @@ rm -rfv $RPM_BUILD_ROOT%{_datadir}/%{name}/lib/time
|
|||||||
# remove the doc Makefile
|
# remove the doc Makefile
|
||||||
rm -rfv $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/Makefile
|
rm -rfv $RPM_BUILD_ROOT%{_datadir}/%{name}/doc/Makefile
|
||||||
|
|
||||||
# install all non-generated sources, used by godoc
|
# install all non-generated sources
|
||||||
pushd ../go-nogenerated
|
pushd ../go-nogenerated
|
||||||
mkdir $RPM_BUILD_ROOT%{_datadir}/%{name}/src
|
cp -av src $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||||
cp -av src/pkg $RPM_BUILD_ROOT%{_datadir}/%{name}/src
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# remove testdata, tests, and non-go files: this is all we need for godoc
|
# make a symlink tree for src
|
||||||
pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/src/pkg
|
cp -asv $RPM_BUILD_ROOT%{_datadir}/%{name}/src $RPM_BUILD_ROOT%{_libdir}/%{name}
|
||||||
find \( -name testdata -type d -o -name '*_test.go' -type f \) -print0 | xargs -0 rm -rfv
|
|
||||||
find -type f \! -name '*.go' -print0 | xargs -0 rm -rfv
|
|
||||||
popd
|
|
||||||
|
|
||||||
# restore the gdb debugging script, needed at runtime by gdb
|
# install arch-specific generated sources (don't clobber symlinks)
|
||||||
cp -av src/pkg/runtime/runtime-gdb.py $RPM_BUILD_ROOT%{_datadir}/%{name}/src/pkg/runtime
|
cp -anv src $RPM_BUILD_ROOT%{_libdir}/%{name}
|
||||||
|
|
||||||
# add symlinks for things in datadir
|
# add symlinks for things in datadir
|
||||||
for z in $RPM_BUILD_ROOT%{_datadir}/%{name}/*
|
for z in api doc favicon.ico include lib robots.txt
|
||||||
do ln -s ../../share/%{name}/$(basename "$z") $RPM_BUILD_ROOT%{_libdir}/%{name}
|
do ln -s ../../share/%{name}/$z $RPM_BUILD_ROOT%{_libdir}/%{name}
|
||||||
done
|
done
|
||||||
|
|
||||||
# add symlinks for binaries
|
# add symlinks for binaries
|
||||||
@ -202,6 +204,9 @@ rm $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/readme.txt
|
|||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
|
||||||
cp -av misc/zsh/go $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
|
cp -av misc/zsh/go $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
|
||||||
|
|
||||||
|
# fix all the symlinks
|
||||||
|
symlinks -c -s -r $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS VERSION
|
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS VERSION
|
||||||
@ -210,60 +215,36 @@ cp -av misc/zsh/go $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
|
|||||||
%dir %{_libdir}/%{name}
|
%dir %{_libdir}/%{name}
|
||||||
%dir %{_libdir}/%{name}/bin
|
%dir %{_libdir}/%{name}/bin
|
||||||
%{_libdir}/%{name}/bin/go
|
%{_libdir}/%{name}/bin/go
|
||||||
|
%{_libdir}/%{name}/bin/godoc
|
||||||
%{_libdir}/%{name}/bin/gofmt
|
%{_libdir}/%{name}/bin/gofmt
|
||||||
%{_libdir}/%{name}/pkg
|
%{_libdir}/%{name}/pkg
|
||||||
|
%{_bindir}/go
|
||||||
# data
|
%{_bindir}/godoc
|
||||||
%dir %{_datadir}/%{name}
|
%{_bindir}/gofmt
|
||||||
%{_datadir}/%{name}/api
|
|
||||||
%{_datadir}/%{name}/include
|
|
||||||
|
|
||||||
# symlinks (lib -> share)
|
# symlinks (lib -> share)
|
||||||
%{_bindir}/go
|
|
||||||
%{_bindir}/gofmt
|
|
||||||
%{_libdir}/%{name}/api
|
%{_libdir}/%{name}/api
|
||||||
%{_libdir}/%{name}/include
|
|
||||||
%{_libdir}/%{name}/src
|
|
||||||
|
|
||||||
# GDB script
|
|
||||||
%dir %{_datadir}/%{name}/src
|
|
||||||
%dir %{_datadir}/%{name}/src/pkg
|
|
||||||
%dir %{_datadir}/%{name}/src/pkg/runtime
|
|
||||||
%{_datadir}/%{name}/src/pkg/runtime/runtime-gdb.*
|
|
||||||
|
|
||||||
# bash completion
|
|
||||||
%{_datadir}/bash-completion
|
|
||||||
|
|
||||||
# zsh
|
|
||||||
%{_datadir}/zsh
|
|
||||||
|
|
||||||
|
|
||||||
%files godoc
|
|
||||||
# binaries
|
|
||||||
%{_libdir}/%{name}/bin/godoc
|
|
||||||
|
|
||||||
# symlinks
|
|
||||||
%{_bindir}/godoc
|
|
||||||
%{_libdir}/%{name}/doc
|
%{_libdir}/%{name}/doc
|
||||||
%{_libdir}/%{name}/favicon.ico
|
%{_libdir}/%{name}/favicon.ico
|
||||||
|
%{_libdir}/%{name}/include
|
||||||
%{_libdir}/%{name}/lib
|
%{_libdir}/%{name}/lib
|
||||||
%{_libdir}/%{name}/robots.txt
|
%{_libdir}/%{name}/robots.txt
|
||||||
|
%{_libdir}/%{name}/src
|
||||||
|
|
||||||
|
|
||||||
%files docs
|
%files data
|
||||||
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS VERSION
|
%{_datadir}/bash-completion
|
||||||
|
%{_datadir}/zsh
|
||||||
|
|
||||||
# data
|
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
|
%{_datadir}/%{name}/api
|
||||||
%{_datadir}/%{name}/doc
|
%{_datadir}/%{name}/doc
|
||||||
%{_datadir}/%{name}/favicon.ico
|
%{_datadir}/%{name}/favicon.ico
|
||||||
%{_datadir}/%{name}/robots.txt
|
%{_datadir}/%{name}/include
|
||||||
%{_datadir}/%{name}/lib
|
%{_datadir}/%{name}/lib
|
||||||
|
%{_datadir}/%{name}/robots.txt
|
||||||
%{_datadir}/%{name}/src
|
%{_datadir}/%{name}/src
|
||||||
|
|
||||||
# exclude the GDB script
|
|
||||||
%exclude %{_datadir}/%{name}/src/pkg/runtime/runtime-gdb.*
|
|
||||||
|
|
||||||
|
|
||||||
%files vim
|
%files vim
|
||||||
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
|
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
|
||||||
@ -283,6 +264,10 @@ cp -av misc/zsh/go $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 13 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-1
|
||||||
|
- Update to 1.1.1
|
||||||
|
- Fix basically useless package (#973842)
|
||||||
|
|
||||||
* Sat May 25 2013 Dan Horák <dan[at]danny.cz> - 1.1-3
|
* Sat May 25 2013 Dan Horák <dan[at]danny.cz> - 1.1-3
|
||||||
- set ExclusiveArch
|
- set ExclusiveArch
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user