LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go-go-charset.spec of Package go-go-charset (Project devel:languages:go)

#
# Copyright (c), 2011, Sascha Peilicke <saschpe@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:           go-go-charset
Version:        0.0.0+hg20120330
Release:        0
Summary:        Character set conversion for Go
Group:          Development/Languages/Other
License:        BSD
URL:            http://code.google.com/p/go-charset
Source0:        go-charset-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
%if 0%{?suse_version} >= 1100
Recommends:     go-go-charset-doc
%endif
%{go_provides}
%{go_requires}

%description
A port of inferno's convcs for Go, which supports conversion to and from utf-8
for the following character sets:

big5 ibm437 ibm850 ibm866 iso-8859-1 iso-8859-10 iso-8859-15 iso-8859-2
iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-9
koi8-r utf-16 utf-16be utf-16le utf-8 windows-1250 windows-1251 windows-1252

This project also includes an extra package which links to the GNU iconv
library and adds all the character sets available from it.

%package doc
Summary:        API documenation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
API, examples and documentation.

%prep
%setup -q -n go-charset

%build
%goprep code.google.com/p/go-charset
%gobuild ...

%install
%{go_disable_brp_strip_static_archive}

%goinstall
%godoc


%if ! 0%{?mandriva_version}
%check
%gotest code.google.com/p/go-charset
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS CONTRIBUTORS
%{_bindir}/tcs
%{go_contribdir}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog