18110
|
1 |
#
|
|
2 |
# base spec file for package coherence
|
|
3 |
#
|
|
4 |
# Copyright 2009 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# bugdb: http://coherence.beebits.net/ticket/$bugid
|
|
9 |
%define owner jouby
|
|
10 |
|
|
11 |
%define OSR 11375:0.7
|
|
12 |
|
|
13 |
%{?!pythonver:%define pythonver 2.6}
|
|
14 |
|
|
15 |
%define src_url http://coherence.beebits.net/download
|
|
16 |
%define src_name Coherence
|
|
17 |
|
|
18 |
Name: Coherence
|
|
19 |
Summary: DLNA/UPnP framework for the digital living
|
|
20 |
URL: http://coherence.beebits.net
|
|
21 |
Version: 0.6.6.2
|
|
22 |
Vendor: coherence.beebits.net
|
|
23 |
Source: %{src_url}/%{src_name}-%{version}.tar.gz
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
Requires: python
|
|
26 |
|
|
27 |
%prep
|
|
28 |
%setup -q -n %name-%version
|
|
29 |
|
|
30 |
%build
|
|
31 |
python%{default_python_version} setup.py build
|
|
32 |
|
|
33 |
%install
|
|
34 |
python%{default_python_version} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
|
|
35 |
|
|
36 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
|
|
37 |
cp misc/org.Coherence.service $RPM_BUILD_ROOT%{_datadir}/dbus-1/services
|
|
38 |
|
|
39 |
# move to vendor-packages
|
|
40 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
41 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
42 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
43 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
44 |
|
|
45 |
# remove the log test code with GPL license
|
|
46 |
# https://code.fluendo.com/flumotion/trac/ticket/1259
|
|
47 |
rm $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/coherence/extern/log/test_log*
|
|
48 |
|
|
49 |
# remove applet-coherence which depends on python-qt
|
|
50 |
rm $RPM_BUILD_ROOT%{_bindir}/applet-coherence
|
|
51 |
|
|
52 |
# remove misc
|
|
53 |
rm -r $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/misc
|
|
54 |
|
|
55 |
%clean
|
|
56 |
rm -rf $RPM_BUILD_ROOT
|
|
57 |
|
|
58 |
%changelog
|
|
59 |
* Fri Oct 16 2009 - [email protected]
|
|
60 |
- Move to python 2.6
|
|
61 |
* Fri Sep 17 2009 [email protected]
|
|
62 |
- Ship org.Coherence.service file
|
|
63 |
* Thu Jun 04 2009 - [email protected]
|
|
64 |
- Remove misc directory from the package for now.
|
|
65 |
* Thu Jun 04 2009 - [email protected]
|
|
66 |
- Bump to 0.6.4 and remove upstreamed patch solaris.diff.
|
|
67 |
* Fri Mar 06 2009 - [email protected]
|
|
68 |
- initial version 0.6.2.
|