18861N/A#
18861N/A# base spec file for package coherence
18861N/A#
18861N/A# Copyright 2009 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A# bugdb: http://coherence.beebits.net/ticket/$bugid
18861N/A%define owner jouby
18861N/A
18861N/A%define OSR 11375:0.7
18861N/A
18861N/A%{?!pythonver:%define pythonver 2.6}
18861N/A
18861N/A%define src_url http://coherence.beebits.net/download
18861N/A%define src_name Coherence
18861N/A
18861N/AName: Coherence
18861N/ASummary: DLNA/UPnP framework for the digital living
18861N/AURL: http://coherence.beebits.net
18861N/AVersion: 0.6.6.2
18861N/AVendor: coherence.beebits.net
18861N/ASource: %{src_url}/%{src_name}-%{version}.tar.gz
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/ARequires: python
18861N/A
18861N/A%prep
18861N/A%setup -q -n %name-%version
18861N/A
18861N/A%build
18861N/Apython%{default_python_version} setup.py build
18861N/A
18861N/A%install
18861N/Apython%{default_python_version} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
18861N/A
18861N/Amkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
18861N/Acp misc/org.Coherence.service $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
18861N/A
18861N/A# move to vendor-packages
18861N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
18861N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
18861N/A $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
18861N/Armdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
18861N/A
18861N/A# remove the log test code with GPL license
18861N/A# https://code.fluendo.com/flumotion/trac/ticket/1259
18861N/Arm $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/coherence/extern/log/test_log*
18861N/A
18861N/A# remove applet-coherence which depends on python-qt
18861N/Arm $RPM_BUILD_ROOT%{_bindir}/applet-coherence
18861N/A
18861N/A# remove misc
18861N/Arm -r $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/misc
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%changelog
18861N/A* Fri Oct 16 2009 - brian.lu@sun.com
18861N/A- Move to python 2.6
18861N/A* Fri Sep 17 2009 -brian.lu@sun.com
18861N/A- Ship org.Coherence.service file
18861N/A* Thu Jun 04 2009 - alfred.peng@sun.com
18861N/A- Remove misc directory from the package for now.
18861N/A* Thu Jun 04 2009 - alfred.peng@sun.com
18861N/A- Bump to 0.6.4 and remove upstreamed patch solaris.diff.
18861N/A* Fri Mar 06 2009 - alfred.peng@sun.com
18861N/A- initial version 0.6.2.