Sascha Peilicke 2010-11-08 20:53:51 +00:00 committed by Git OBS Bridge
parent 9ad12f553d
commit f20d9bc0ae

24
go.spec
View File

@ -12,18 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
%define _release 20101108
%define pkg_release 20101108
Name: go
Version: %{_release}
Version: %{pkg_release}
Release: 0
Summary: A compiled, garbage-collected, concurrent programming language
Group: Development/Languages/Other
License: BSD
URL: http://golang.org/
# This is built from upstream mercurial:
# hg clone -r release https://go.googlecode.com/hg/ go-src
Source0: go-%{_release}.tar.bz2
# hg clone -r release https://go.googlecode.com/hg/ go
Source0: go-%{pkg_release}.tar.bz2
# we can't build this without disabling some rpmlint checks
Source1: go-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -33,7 +33,7 @@ BuildRequires: fdupes
%endif
ExclusiveArch: %ix86 x86_64
Provides: libcgo
Provides: %{name} = %{version}
%description
Go is an expressive, concurrent, garbage collected systems programming language
@ -132,9 +132,7 @@ rm -rf $RPM_BUILD_ROOT
%ifarch %ix86
%{_bindir}/8*
%endif
%ifarch x86_64
%{_bindir}/6*
%endif
%{_bindir}/cgo
%{_bindir}/ebnflint
%{_bindir}/go*
@ -146,6 +144,12 @@ rm -rf $RPM_BUILD_ROOT
%files vim
%defattr(-,root,root,-)
%if 0%{?suse_version} < 1130
%{_datadir}/vim
%{_datadir}/vim/site
%{_datadir}/vim/site/syntax
%{_datadir}/vim/site/ftdetect
%endif
%{_datadir}/vim/site/syntax/go.vim
%{_datadir}/vim/site/ftdetect/gofiletype.vim
@ -155,6 +159,12 @@ rm -rf $RPM_BUILD_ROOT
%files kate
%defattr(-,root,root,-)
%if 0%{?suse_version} < 1130
%{_datadir}/kde4
%{_datadir}/kde4/apps
%{_datadir}/kde4/apps/katepart
%{_datadir}/kde4/apps/katepart/syntax
%endif
%{_datadir}/kde4/apps/katepart/syntax/go.xml
%changelog