Browse Source

golang 1.2-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8228 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 10 years ago
parent
commit
24f1161379
1 changed files with 8 additions and 119 deletions
  1. 8 119
      g/golang/golang-vl.spec

+ 8 - 119
g/golang/golang.spec → g/golang/golang-vl.spec

@@ -25,26 +25,15 @@
 
 Name:           golang
 Version:        1.2
-Release:        4%{?dist}
+Release:        1%{?_dist_release}
 Summary:        The Go Programming Language
 
 License:        BSD
 URL:            http://golang.org/
 Source0:        https://go.googlecode.com/files/go%{version}.src.tar.gz
 
-# this command moved places
-%if 0%{?fedora} >= 21
-BuildRequires:  /usr/bin/hostname
-Patch1:         golang-f21-hostname.patch
-%else
-BuildRequires:  /bin/hostname
-%endif
-
-BuildRequires:  emacs
-# xemacs on fedora only
-%if 0%{?fedora}
-BuildRequires:  xemacs xemacs-packages-extra
-%endif
+# 'hostname' command
+BuildRequires:  net-tools
 
 # We strip the meta dependency, but go does require glibc.
 # This is an odd issue, still looking for a better fix.
@@ -59,13 +48,7 @@ Patch2:         golang-1.2-remove-ECC-p224.patch
 # http://code.google.com/p/go/issues/detail?id=6522
 Patch3:         ./golang-1.2-skipCpuProfileTest.patch
 
-# Having documentation separate was broken
-Obsoletes:      %{name}-docs < 1.1-4
-
-# RPM can't handle symlink -> dir with subpackages, so merge back
-Obsoletes:      %{name}-data < 1.1.1-4
-
-ExclusiveArch:  %{ix86} x86_64 %{arm}
+ExclusiveArch:  %{ix86} x86_64
 
 Source100:      golang-gdbinit
 Source101:      golang-prelink.conf
@@ -74,51 +57,6 @@ Source101:      golang-prelink.conf
 %{summary}.
 
 
-# Restore this package if RPM gets fixed (bug #975909)
-#%package       data
-#Summary:       Required architecture-independent files for Go
-#Requires:      %{name} = %{version}-%{release}
-#BuildArch:     noarch
-#Obsoletes:     %{name}-docs < 1.1-4
-#
-#%description   data
-#%{summary}.
-
-
-%package        vim
-Summary:        Vim plugins for Go
-# xemacs on fedora only
-%if 0%{?fedora}
-Requires:       vim-filesystem
-%endif
-BuildArch:      noarch
-
-%description    vim
-%{summary}.
-
-
-%package -n    emacs-%{name}
-Summary:       Emacs add-on package for Go
-Requires:      emacs(bin) >= %{_emacs_version}
-BuildArch:     noarch
-
-%description -n emacs-%{name}
-%{summary}.
-
-
-# xemacs on fedora only
-%if 0%{?fedora}
-%package -n    xemacs-%{name}
-Summary:       XEmacs add-on package for Go
-Requires:      xemacs(bin) >= %{_xemacs_version}
-Requires:      xemacs-packages-extra
-BuildArch:     noarch
-
-%description -n xemacs-%{name}
-%{summary}.
-%endif
-
-
 # Workaround old RPM bug of symlink-replaced-with-dir failure
 %pretrans -p <lua>
 for _,d in pairs({"api", "doc", "include", "lib", "src"}) do
@@ -164,18 +102,6 @@ cd src
 PATH="$(pwd -P)/../zz:$PATH" CC="gcc" ./make.bash
 cd ..
 
-# compile for emacs and xemacs
-cd misc
-mv emacs/go-mode-load.el emacs/%{name}-init.el
-# xemacs on fedora only
-%if 0%{?fedora}
-cp -av emacs xemacs
-%{_xemacs_bytecompile} xemacs/go-mode.el
-%endif
-%{_emacs_bytecompile} emacs/go-mode.el
-cd ..
-
-
 %check
 export GOROOT=$(pwd -P)
 export PATH="$PATH":"$GOROOT"/bin
@@ -218,26 +144,6 @@ for z in 8l 6l 5l 8g 6g 5g gofmt gccgo
   do ln -s go $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/$z
 done
 
-# misc/emacs
-mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
-mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
-cp -av misc/emacs/go-mode.* $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
-cp -av misc/emacs/%{name}-init.el $RPM_BUILD_ROOT%{_emacs_sitestartdir}
-
-# xemacs on fedora only
-%if 0%{?fedora}
-# misc/xemacs
-mkdir -p $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{name}
-mkdir -p $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
-cp -av misc/xemacs/go-mode.* $RPM_BUILD_ROOT%{_xemacs_sitelispdir}/%{name}
-cp -av misc/xemacs/%{name}-init.el $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
-%endif
-
-# misc/vim
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles
-cp -av misc/vim/* $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles
-rm $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/readme.txt
-
 # misc/zsh
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
 cp -av misc/zsh/go $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
@@ -271,28 +177,11 @@ cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
 # prelink blacklist
 %{_sysconfdir}/prelink.conf.d
 
-
-%files vim
-%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
-%{_datadir}/vim/vimfiles/*
-
-
-%files -n emacs-%{name}
-%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
-%{_emacs_sitelispdir}/%{name}
-%{_emacs_sitestartdir}/*.el
-
-
-# xemacs on fedora only
-%if 0%{?fedora}
-%files -n xemacs-%{name}
-%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
-%{_xemacs_sitelispdir}/%{name}
-%{_xemacs_sitestartdir}/*.el
-%endif
-
-
 %changelog
+* Sat Feb  1 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.2
+- initial build for Vine Linux
+- drop emacs and vim package
+
 * Thu Jan 24 2014 Vincent Batts <vbatts@redhat.com> 1.2-4
 - skip a flaky test that is sporadically failing on the build server