LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-Coherence.spec of Package python-Coherence (Project openSUSE:Factory)

# spec file for package python-Coherence
# Copyright (c) 2011 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-Coherence
Release:        0
Url:            http://coherence-project.org
Summary:        Coherence - DLNA/UPnP framework for the digital living
License:        MIT
Group:          Development/Languages/Python
Source:         http://coherence.beebits.net/download/Coherence-
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  fdupes
# We drop the internal version in coherence tree
BuildRequires:  python-Louie
BuildRequires:  python-distribute
BuildRequires:  python-Twisted
# Requires pkg_resources
Requires:       python-distribute
# As we drop the internal version, we need to require our own package.
Requires:       python-Louie
Requires:       python-Twisted
Recommends:     python-gstreamer-0_10
# Youtube MediaServer
Recommends:     python-gdata
# Flickr MediaServer
Suggests:       python-mechanize
# For directory ownership:
BuildRequires:  dbus-1
Requires:       dbus-1
Provides:       python-coherence = %{version}
#TODO: Change back to '<' after next version update:
Obsoletes:      python-coherence <= %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildArch:      noarch

Coherence is a framework written in Python, providing a variety of UPnP
MediaServer and UPnP MediaRenderer implementations for instant use.

It includes an UPnP ControlPoint, which is accessible via D-Bus too.

Furthermore it enables your application to participate in
digital living networks, at the moment primarily the DLNA/UPnP universe.
Its objective and demand is to relieve your application from all the
membership/the UPnP related tasks as much as possible.

%setup -q -n Coherence-%{version}
# We have python-louie available. Let's not carry the same package more than once
find coherence -type f -exec sed -i 's/coherence.extern.louie as louie/louie/' {} \;
rm coherence/extern/louie.py

python setup.py build

python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Install the D-Bus service file
mkdir -p %{buildroot}/%{_datadir}/dbus-1/services
cp -a misc/org.Coherence.service %{buildroot}/%{_datadir}/dbus-1/services/

# Not really useful here
%exclude %{_bindir}/applet-coherence
%exclude %{python_sitelib}/misc