File python-entangled.spec of Package python-entangled

#
# spec file for package python-entangled
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           python-entangled
Version:        0.1
Release:        0
Url:            http://entangled.sourceforge.net
Summary:        DHT based on Kademlia, and p2p tuple space implementation
License:        LGPL-3.0+
Group:          Development/Languages/Python
Source:         entangled-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-Twisted
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-Twisted
Requires:       python-sqlite
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%description
Entangled is a distributed hash table (DHT) based on Kademlia, as well as a
distributed, peer-to-peer tuple space implementation. This can be used as a base
for creating peer-to-peer (P2P) network applications that require
synchronization and event handling (such as distributed resource provisioning
systems) as well as applications that do not (such as file sharing applications).

%prep
%setup -q -n entangled-%{version}
sed -i "1d" entangled/kademlia/{node,protocol,constants,contact,msgformat,kbucket,msgtypes,datastore,encoding}.py entangled/{node,dtuple}.py examples/{gui,create_network,fileshare}.py # Fix non-executable scripts

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README doc examples
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by