9397
|
1 |
#
|
|
2 |
# spec file for package dbus-python
|
|
3 |
#
|
|
4 |
# Copyright (c) 2005 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 |
# Owner: yippi
|
|
9 |
# bugdb: bugzilla.freedesktop.org
|
|
10 |
#
|
|
11 |
%define pythonver 2.4
|
|
12 |
|
|
13 |
Name: dbus-python
|
|
14 |
License: GPL/AFL
|
|
15 |
Group: System/Libraries
|
|
16 |
Version: 0.80.2
|
|
17 |
Release: 1
|
|
18 |
Distribution: Java Desktop System
|
|
19 |
Vendor: Sun Microsystems, Inc.
|
|
20 |
Summary: Python bindings for D-Bus
|
|
21 |
Source: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
|
|
22 |
URL: http://www.freedesktop.org/wiki/Software_2fdbus
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Docdir: %{_defaultdocdir}/doc
|
|
25 |
Autoreqprov: on
|
|
26 |
Prereq: /sbin/ldconfig
|
|
27 |
|
|
28 |
%define python_version 2.4
|
|
29 |
BuildRequires: glib2-devel >= %glib2_version
|
|
30 |
BuildRequires: libxml2-devel >= %libxml2_version
|
|
31 |
BuildRequires: python-devel >= %{pythonver}
|
|
32 |
Requires: glib2 >= %glib2_version
|
|
33 |
Requires: libxml2 >= %libxml2_version
|
|
34 |
Requires: python >= %{pythonver}
|
|
35 |
|
|
36 |
%description
|
|
37 |
Python bindings for D-Bus.
|
|
38 |
|
|
39 |
%package devel
|
|
40 |
Summary: Simple IPC library based on messages
|
|
41 |
Group: Development/Libraries
|
|
42 |
Requires: %{name} = %{version}
|
|
43 |
|
|
44 |
%description devel
|
|
45 |
Python bindings for D-Bus.
|
|
46 |
|
|
47 |
%prep
|
|
48 |
%setup -q
|
|
49 |
%ifos solaris
|
|
50 |
%ifarch amd64 sparcv9
|
|
51 |
cd ..
|
|
52 |
cp -pr %{name}-%{version} %{name}-%{version}-64
|
|
53 |
%endif
|
|
54 |
%endif
|
|
55 |
|
|
56 |
|
|
57 |
%build
|
|
58 |
|
|
59 |
%ifos solaris
|
|
60 |
%ifarch amd64 sparcv9
|
|
61 |
export CC=${CC64:-$CC}
|
|
62 |
export CFLAGS="${CFLAGS64}"
|
|
63 |
export LDFLAGS="${LDFLAGS64}"
|
|
64 |
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}"
|
|
65 |
export PYTHON=%{_bindir}/%{_arch64}/python
|
|
66 |
|
|
67 |
cd ../%{name}-%{version}-64
|
|
68 |
|
|
69 |
autoconf
|
|
70 |
automake -a -c -f
|
|
71 |
./configure --prefix=%{_prefix} \
|
|
72 |
--includedir=%{_includedir} \
|
|
73 |
--sysconfdir=%{_sysconfdir} \
|
|
74 |
--libdir=%{_libdir}/%{_arch64} \
|
|
75 |
--bindir=%{_bindir} \
|
|
76 |
--localstatedir=%{_localstatedir} \
|
|
77 |
--with-dbus-user=root \
|
|
78 |
--with-dbus-daemondir=%{_libdir} \
|
|
79 |
--mandir=%{_mandir} \
|
|
80 |
--datadir=%{_datadir} \
|
|
81 |
--disable-static
|
|
82 |
make
|
|
83 |
cd ../%{name}-%{version}
|
|
84 |
|
|
85 |
export CC=${CC32:-$CC}
|
|
86 |
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
|
|
87 |
export CFLAGS="$CFLAGS32"
|
|
88 |
export LDFLAGS="$LDFLAGS32"
|
|
89 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
90 |
export PYTHON=%{_bindir}/python
|
|
91 |
%endif
|
|
92 |
%endif
|
|
93 |
|
|
94 |
autoconf
|
|
95 |
automake -a -c -f
|
|
96 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
97 |
./configure --prefix=%{_prefix} \
|
|
98 |
--includedir=%{_includedir} \
|
|
99 |
--sysconfdir=%{_sysconfdir} \
|
|
100 |
--libdir=%{_libdir} \
|
|
101 |
--bindir=%{_bindir} \
|
|
102 |
--localstatedir=%{_localstatedir} \
|
|
103 |
--with-dbus-user=root \
|
|
104 |
--with-dbus-daemondir=%{_libdir} \
|
|
105 |
--mandir=%{_mandir} \
|
|
106 |
--datadir=%{_datadir} \
|
|
107 |
--disable-static
|
|
108 |
make
|
|
109 |
|
|
110 |
%install
|
|
111 |
%ifos solaris
|
|
112 |
%ifarch amd64 sparcv9
|
|
113 |
cd ../%{name}-%{version}-64
|
|
114 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
115 |
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
|
|
116 |
mv ${PYLIBDIR}/site-packages ${PYLIBDIR}/vendor-packages
|
|
117 |
mkdir -p ${PYLIBDIR}/vendor-packages/64
|
|
118 |
mv ${PYLIBDIR}/vendor-packages/*.so ${PYLIBDIR}/vendor-packages/64
|
|
119 |
rm -rf ${PYLIBDIR}/site-packages
|
|
120 |
cd ../%{name}-%{version}
|
|
121 |
%endif
|
|
122 |
%endif
|
|
123 |
|
|
124 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
125 |
|
|
126 |
# move to vendor-packages
|
|
127 |
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
|
|
128 |
[ ! -d ${PYLIBDIR}/vendor-packages ] && mkdir -p ${PYLIBDIR}/vendor-packages
|
|
129 |
(
|
|
130 |
cd ${PYLIBDIR}/site-packages
|
|
131 |
find . -print | cpio -pdm ${PYLIBDIR}/vendor-packages
|
|
132 |
)
|
|
133 |
rm -rf ${PYLIBDIR}/site-packages
|
|
134 |
|
|
135 |
|
|
136 |
# Delete precompiled py code (*.pyc). May not be compatibile with dest system.
|
|
137 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.pyc" -exec rm {} ';'
|
|
138 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.la" -exec rm {} ';'
|
|
139 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.a" -exec rm {} ';'
|
|
140 |
|
|
141 |
%clean
|
|
142 |
rm -rf $RPM_BUILD_ROOT
|
|
143 |
|
|
144 |
%files
|
|
145 |
%defattr(-, root, root)
|
|
146 |
%config %{_sysconfdir}/dbus-1/session.conf
|
|
147 |
%config %{_sysconfdir}/dbus-1/system.conf
|
|
148 |
%{_bindir}/*
|
|
149 |
%{_libdir}/libdbus*.so*
|
|
150 |
%{_datadir}/man/*
|
|
151 |
%{_datadir}/dbus-1/*
|
|
152 |
|
|
153 |
%files devel
|
|
154 |
%defattr(-, root, root)
|
|
155 |
%{_libdir}/*.so
|
|
156 |
%{_includedir}/dbus-1.0/*
|
|
157 |
%{_libdir}/dbus-1.0/*
|
|
158 |
%{_libdir}/pkgconfig/*
|
|
159 |
%{_libdir}/python?.?/vendor-packages/*
|
|
160 |
|
|
161 |
%changelog
|
|
162 |
* Sat Feb 25 2007 - [email protected]
|
|
163 |
- updated to include 64-bit build RFE: #6480511
|
|
164 |
|
|
165 |
* Wed Feb 14 2007 - [email protected]
|
|
166 |
- Bump to 0.80.2.
|
|
167 |
|
|
168 |
* Thu Jan 25 2007 - [email protected]
|
|
169 |
- Bump to 0.80.1. Use configure/make to build, not setup.py.
|
|
170 |
|
|
171 |
* Thu Nov 27 2006 - [email protected]
|
|
172 |
- Created.
|