Browse Source

python-Coherence: add dbus service file

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@977 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 14 years ago
parent
commit
d798acfc47
1 changed files with 18 additions and 5 deletions
  1. 18 5
      p/python-Coherence/python-Coherence-vl.spec

+ 18 - 5
p/python-Coherence/python-Coherence-vl.spec

@@ -10,12 +10,15 @@ Group:		Development/Languages
 URL:		https://coherence.beebits.net/
 Source:		https://coherence.beebits.net/download/Coherence-%{version}.tar.gz
 
-Requires:	python-setuptools
-Requires:	python-configobj
-BuildRequires:	python-devel
-BuildRequires:	python-setuptools
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 Buildarch:	noarch
+BuildRequires:	python-devel
+BuildRequires:	python-setuptools
+
+Requires:	python-setuptools
+Requires:	python-configobj
+Requires:	python-twisted
+Requires:	dbus
 
 %description
 Coherence is a framework written in Python enabling applications to participate
@@ -38,7 +41,13 @@ Coherence はアプリケーションをDLNA(Digital Living Network Alliance)や
 %{__rm} -rf ${RPM_BUILD_ROOT}
 %{__python} setup.py install \
     --single-version-externally-managed \
-    -O1 --skip-build --root ${RPM_BUILD_ROOT}
+    -O1 --skip-build --root %{buildroot}
+# Install the D-Bus service file
+%{__install} -D -m 0644 -p misc/org.Coherence.service \
+    %{buildroot}/%{_datadir}/dbus-1/services/org.Coherence.service
+# Install the man page
+%{__install} -D -m 0644 -p docs/man/coherence.1 \
+    %{buildroot}/%{_mandir}/man1/coherence.1
 
 
 %clean
@@ -50,16 +59,20 @@ Coherence はアプリケーションをDLNA(Digital Living Network Alliance)や
 %doc LICENCE README docs/*
 %exclude %{_bindir}/applet-coherence
 %{_bindir}/coherence
+%{_datadir}/dbus-1/services/org.Coherence.service
 %{python_sitelib}/Coherence-*.egg-info/
 %{python_sitelib}/coherence/
 # We don't want this in the package
 %exclude %{python_sitelib}/misc/
+%{_mandir}/man1/coherence.1*
 
 
 %changelog
 * Mon May 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.6.2-1
 - new upstream release
 - add Summary(ja):
+- install D-Bus service file
+- install man pages
 
 * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.5.8-2
 - rebuild with python-2.6