Summary: A DLNA/UPnP MediaServer protocol implementation
Summary(pl.UTF-8): Implementacja protokołu DLNA/UPnP MediaServer
Name: python-coherence
-Version: 0.6.2
-Release: 1
+Version: 0.6.6.2
+Release: 5
License: MIT
Group: Libraries/Python
Source0: https://coherence.beebits.net/download/Coherence-%{version}.tar.gz
-# Source0-md5: feaeeaa68cae420c0c365c3c27b2a21e
+# Source0-md5: d7a1b4abf6831c61e37a3b9e2bdc560a
+Source1: org.Coherence.service
URL: https://coherence.beebits.net/
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: python-TwistedWeb
BuildRequires: python-devel >= 1:2.5
BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
%setup -q -n Coherence-%{version}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
+install %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.Coherence.service
+
+%py_install
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%doc README
%attr(755,root,root) %{_bindir}/*
%{py_sitescriptdir}/*
+%{_datadir}/dbus-1/services/org.Coherence.service