LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

#
# spec file for package go-go-socket.io
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           go-go-socket.io
Version:        0.0.0+git20120403
Release:        0
Summary:        A Socket.IO backend implementation written in Go
Group:          Development/Languages/Other
License:        MIT
URL:            https://github.com/madari/go-socket.io
                # See also http://github.com/gnanderson/go-socket.io
				# This library seems no longer activly developed, it doesn't support
				# socket.io 0.8+ and 0.9.4 is the current version. The fixes and changes
				# I've made only provide life support for anyone using this lib with
				# socket.io 0.7+.
Source0:        go-socket.io-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
BuildRequires:  go-net
%if 0%{?suse_version} >= 1100
Recommends:     go-go-socket.io-doc
%endif
%{go_provides}
%{go_requires}

%description
The socketio package is a simple abstraction layer for different web browser
supported transport mechanisms. It is fully compatible with the Socket.IO
client JavaScript-library by LearnBoost Labs. By writing custom codecs the
socketio could be perhaps used with other clients, too.

It provides an easy way for developers to rapidly prototype with the most
popular browser transport mechanism today:

 - HTML5 WebSockets
 - Adobe Flash Sockets
 - JSONP Long Polling
 - XHR Long Polling
 - XHR Multipart Streaming
 - ActiveX HTMLFile

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

%description doc
API, examples and documentation.

%prep
%setup -q -n go-socket.io

%build
%goprep  github.com/madari/go-socket.io
%gobuild 

%install
%{go_disable_brp_strip_static_archive}

%goinstall
%godoc

%check
# can't run net tests on OBS
#%%gotest github.com/madari/go-socket.io socketio

%files
%defattr(-,root,root,-)
%doc EXPERIMENTAL LICENSE README.md example
%{go_contribdir}/*

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

%changelog