]> git.pld-linux.org Git - packages/python-coherence.git/blobdiff - python-coherence.spec
BR: rpmbuild(macros) >= 1.710
[packages/python-coherence.git] / python-coherence.spec
index a47a85a715ac99b414adf2cd0ec5942e43fcf8c2..ace306b7f4a9a6aec694e2c56c8a4fbca861f8b4 100644 (file)
@@ -1,14 +1,16 @@
 Summary:       A DLNA/UPnP MediaServer protocol implementation
 Summary(pl.UTF-8):     Implementacja protokołu DLNA/UPnP MediaServer
 Name:          python-coherence
-Version:       0.4.0
-Release:       2
+Version:       0.6.6.2
+Release:       5
 License:       MIT
 Group:         Libraries/Python
 Source0:       https://coherence.beebits.net/download/Coherence-%{version}.tar.gz
-# Source0-md5: b3fdc0de8ae46c6c9efdc4e7d6204417
-Patch0:                %{name}-syntax.patch
+# 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
@@ -18,6 +20,8 @@ Requires:     python-TwistedWeb
 Requires:      python-configobj
 Requires:      python-setuptools
 %pyrequires_eq python-modules
+# For applet:
+Suggests:      python-PyQt4
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,22 +42,23 @@ Wraz z GStreamerem tworzy sterowalny renderer mediów DLNA/UPnP.
 
 %prep
 %setup -q -n Coherence-%{version}
-%patch0 -p1
 
 %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}
 
 find $RPM_BUILD_ROOT%{py_sitescriptdir} -name "*.py" | xargs rm
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/misc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -63,3 +68,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc README
 %attr(755,root,root) %{_bindir}/*
 %{py_sitescriptdir}/*
+%{_datadir}/dbus-1/services/org.Coherence.service
This page took 0.073813 seconds and 4 git commands to generate.