From 5998fbdf94a4cffa88ea86c1c978235c5d49ac6b Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Sep 19 2013 14:55:33 +0000 Subject: EL6 edits --- diff --git a/golang.spec b/golang.spec index 8e71ec8..8c69ed4 100644 --- a/golang.spec +++ b/golang.spec @@ -16,16 +16,9 @@ # Actually, don't strip at all since we are not even building debug packages and this corrupts the dwarf testdata %global __strip /bin/true -# rpmbuild magic to keep from having meta dependency on libc.so.6 -%define _use_internal_dependency_generator 0 -%define __find_requires %{nil} -%global debug_package %{nil} -%global __spec_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot \ - /usr/lib/rpm/brp-compress - Name: golang Version: 1.1.2 -Release: 4%{?dist} +Release: 2%{?dist} Summary: The Go Programming Language License: BSD @@ -33,7 +26,7 @@ URL: http://golang.org/ Source0: https://go.googlecode.com/files/go%{version}.src.tar.gz BuildRequires: /bin/hostname -BuildRequires: emacs xemacs xemacs-packages-extra +BuildRequires: emacs Patch0: golang-1.1-verbose-build.patch @@ -66,7 +59,6 @@ Source101: golang-prelink.conf %package vim Summary: Vim plugins for Go -Requires: vim-filesystem BuildArch: noarch %description vim @@ -82,16 +74,6 @@ BuildArch: noarch %{summary}. -%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}. - - # Workaround old RPM bug of symlink-replaced-with-dir failure %pretrans -p for _,d in pairs({"api", "doc", "include", "lib", "src"}) do @@ -109,9 +91,9 @@ end # increase verbosity of build %patch0 -p1 - %build # create a gcc wrapper to allow us to build with our own flags + mkdir zz cd zz echo -e "#!/bin/sh\n/usr/bin/gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS \"\$@\"" > mygcc @@ -128,6 +110,7 @@ export GOROOT_FINAL=%{_libdir}/%{name} # build cd src +rm *.rc ./make.bash cd .. @@ -138,15 +121,12 @@ cd doc make cd .. -# compile for emacs and xemacs +# compile for emacs cd misc mv emacs/go-mode-load.el emacs/%{name}-init.el -cp -av emacs xemacs %{_emacs_bytecompile} emacs/go-mode.el -%{_xemacs_bytecompile} xemacs/go-mode.el cd .. - %check export GOROOT=$(pwd -P) export PATH="$PATH":"$GOROOT"/bin @@ -154,7 +134,6 @@ cd src ./run.bash --no-rebuild cd .. - %install rm -rf $RPM_BUILD_ROOT @@ -193,12 +172,6 @@ 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} -# 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} - # misc/vim mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles cp -av misc/vim/* $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles @@ -250,30 +223,15 @@ cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf %{_emacs_sitestartdir}/*.el -%files -n xemacs-%{name} -%doc AUTHORS CONTRIBUTORS LICENSE PATENTS -%{_xemacs_sitelispdir}/%{name} -%{_xemacs_sitestartdir}/*.el - - %changelog -* Fri Aug 30 2013 Adam Miller - 1.1.2-4 -- fix the libc meta dependency (thanks to vbatts [at] redhat.com for the fix) - -* Tue Aug 27 2013 Adam Miller - 1.1.2-3 -- Revert incorrect merged changelog +* Fri Aug 16 2013 Adam Miller - 1.1.2-2 +- vim-filesystem only required for Fedora , vim-common owns those files in RHEL -* Tue Aug 27 2013 Adam Miller - 1.1.2-2 -- This was reverted, just a placeholder changelog entry for bad merge - -* Tue Aug 20 2013 Adam Miller - 1.1.2-1 +* Fri Aug 16 2013 Adam Miller - 1.1.2-1 - Update to latest upstream -* Sat Aug 03 2013 Fedora Release Engineering - 1.1.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Jul 17 2013 Petr Pisar - 1.1.1-6 -- Perl 5.18 rebuild +* Fri Aug 16 2013 Adam Miller - 1.1.1-6 +- Remove xemacs bits for RHEL build * Wed Jul 10 2013 Adam Goode - 1.1.1-5 - Blacklist testdata files from prelink