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