9397
|
1 |
#
|
|
2 |
# spec file for package dbus-python
|
|
3 |
#
|
10572
|
4 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
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
|
10278
|
16 |
Version: 0.82.2
|
9397
|
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 |
|
|
50 |
%build
|
10278
|
51 |
aclocal $ACLOCAL_FLAGS -I ./m4
|
9397
|
52 |
autoconf
|
|
53 |
automake -a -c -f
|
11139
|
54 |
export CFLAGS="%optflags -D_REENTRANT"
|
10572
|
55 |
export LDFLAGS="%_ldflags"
|
9397
|
56 |
./configure --prefix=%{_prefix} \
|
|
57 |
--includedir=%{_includedir} \
|
|
58 |
--sysconfdir=%{_sysconfdir} \
|
|
59 |
--libdir=%{_libdir} \
|
|
60 |
--bindir=%{_bindir} \
|
|
61 |
--localstatedir=%{_localstatedir} \
|
|
62 |
--with-dbus-user=root \
|
10572
|
63 |
--with-dbus-daemondir=%{_basedir}/lib \
|
9397
|
64 |
--mandir=%{_mandir} \
|
|
65 |
--datadir=%{_datadir} \
|
|
66 |
--disable-static
|
|
67 |
make
|
|
68 |
|
|
69 |
%install
|
|
70 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
71 |
|
|
72 |
# move to vendor-packages
|
|
73 |
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}
|
|
74 |
[ ! -d ${PYLIBDIR}/vendor-packages ] && mkdir -p ${PYLIBDIR}/vendor-packages
|
|
75 |
(
|
|
76 |
cd ${PYLIBDIR}/site-packages
|
|
77 |
find . -print | cpio -pdm ${PYLIBDIR}/vendor-packages
|
|
78 |
)
|
|
79 |
rm -rf ${PYLIBDIR}/site-packages
|
|
80 |
|
|
81 |
|
|
82 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.la" -exec rm {} ';'
|
|
83 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.a" -exec rm {} ';'
|
|
84 |
|
|
85 |
%clean
|
|
86 |
rm -rf $RPM_BUILD_ROOT
|
|
87 |
|
|
88 |
%files
|
|
89 |
%defattr(-, root, root)
|
|
90 |
%config %{_sysconfdir}/dbus-1/session.conf
|
|
91 |
%config %{_sysconfdir}/dbus-1/system.conf
|
|
92 |
%{_bindir}/*
|
|
93 |
%{_libdir}/libdbus*.so*
|
|
94 |
%{_datadir}/man/*
|
|
95 |
%{_datadir}/dbus-1/*
|
|
96 |
|
|
97 |
%files devel
|
|
98 |
%defattr(-, root, root)
|
|
99 |
%{_libdir}/*.so
|
|
100 |
%{_includedir}/dbus-1.0/*
|
|
101 |
%{_libdir}/dbus-1.0/*
|
|
102 |
%{_libdir}/pkgconfig/*
|
|
103 |
%{_libdir}/python?.?/vendor-packages/*
|
|
104 |
|
|
105 |
%changelog
|
11139
|
106 |
* Wed Nov 7 2007 - [email protected]
|
|
107 |
- Add -D_REENTRANT. It was removed from SUNW spec file on Sep 28.
|
|
108 |
See bugster 6615221
|
10635
|
109 |
* Wed Oct 10 2007 - [email protected]
|
|
110 |
- Don't delete *.pyc files - they are needed.
|
10572
|
111 |
* Fri Sep 28 2007 - [email protected]
|
|
112 |
- convert to new style multi-ISA build
|
10278
|
113 |
* Mon Aug 06 2007 - [email protected]
|
|
114 |
- Bump to 0.82.2 add "-I ./m4" to aclocal calls.
|
9650
|
115 |
* Sun Apr 1 2007 - [email protected]
|
|
116 |
- add missing aclocal calls
|
9565
|
117 |
* Wed Mar 15 2007 - [email protected]
|
|
118 |
- Removed CC64 and CC32. They are not needed anymore
|
9397
|
119 |
* Sat Feb 25 2007 - [email protected]
|
|
120 |
- updated to include 64-bit build RFE: #6480511
|
|
121 |
* Wed Feb 14 2007 - [email protected]
|
|
122 |
- Bump to 0.80.2.
|
|
123 |
* Thu Jan 25 2007 - [email protected]
|
|
124 |
- Bump to 0.80.1. Use configure/make to build, not setup.py.
|
|
125 |
* Thu Nov 27 2006 - [email protected]
|
|
126 |
- Created.
|