author | yippi |
Thu, 05 Aug 2010 11:47:22 +0000 | |
changeset 19973 | f05dadadf325 |
parent 18269 | 5218a1567988 |
child 21076 | 0d3e92c3dae0 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package dbus-python |
|
3 |
# |
|
19973 | 4 |
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner yippi |
9397 | 9 |
# bugdb: bugzilla.freedesktop.org |
10 |
# |
|
18269 | 11 |
%{?!pythonver:%define pythonver 2.6} |
9397 | 12 |
|
17842 | 13 |
%define OSR 4092:0.60 |
14 |
||
9397 | 15 |
Name: dbus-python |
14571 | 16 |
License: MIT |
17864 | 17 |
Vendor: freedesktop.org |
9397 | 18 |
Group: System/Libraries |
17559 | 19 |
Version: 0.83.1 |
9397 | 20 |
Release: 1 |
21 |
Distribution: Java Desktop System |
|
22 |
Summary: Python bindings for D-Bus |
|
23 |
Source: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz |
|
24 |
URL: http://www.freedesktop.org/wiki/Software_2fdbus |
|
25 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
26 |
Docdir: %{_defaultdocdir}/doc |
|
27 |
Autoreqprov: on |
|
28 |
Prereq: /sbin/ldconfig |
|
29 |
||
30 |
BuildRequires: glib2-devel >= %glib2_version |
|
31 |
BuildRequires: libxml2-devel >= %libxml2_version |
|
32 |
BuildRequires: python-devel >= %{pythonver} |
|
33 |
Requires: glib2 >= %glib2_version |
|
34 |
Requires: libxml2 >= %libxml2_version |
|
35 |
Requires: python >= %{pythonver} |
|
36 |
||
37 |
%description |
|
38 |
Python bindings for D-Bus. |
|
39 |
||
40 |
%package devel |
|
41 |
Summary: Simple IPC library based on messages |
|
42 |
Group: Development/Libraries |
|
43 |
Requires: %{name} = %{version} |
|
44 |
||
45 |
%description devel |
|
46 |
Python bindings for D-Bus. |
|
47 |
||
48 |
%prep |
|
49 |
%setup -q |
|
50 |
||
51 |
%build |
|
15324 | 52 |
export PYTHON=/usr/bin/python%{pythonver} |
15444 | 53 |
export PYTHON_VERSION=%{pythonver} |
10278 | 54 |
aclocal $ACLOCAL_FLAGS -I ./m4 |
9397 | 55 |
autoconf |
56 |
automake -a -c -f |
|
15444 | 57 |
export CFLAGS="%optflags -D_REENTRANT" |
10572 | 58 |
export LDFLAGS="%_ldflags" |
9397 | 59 |
./configure --prefix=%{_prefix} \ |
60 |
--includedir=%{_includedir} \ |
|
61 |
--sysconfdir=%{_sysconfdir} \ |
|
62 |
--libdir=%{_libdir} \ |
|
63 |
--bindir=%{_bindir} \ |
|
64 |
--localstatedir=%{_localstatedir} \ |
|
65 |
--with-dbus-user=root \ |
|
10572 | 66 |
--with-dbus-daemondir=%{_basedir}/lib \ |
9397 | 67 |
--mandir=%{_mandir} \ |
68 |
--datadir=%{_datadir} \ |
|
69 |
--disable-static |
|
70 |
make |
|
71 |
||
72 |
%install |
|
73 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
74 |
||
16741 | 75 |
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.pyo" -exec rm -f {} ';' |
76 |
||
9397 | 77 |
# move to vendor-packages |
78 |
PYLIBDIR=$RPM_BUILD_ROOT%{_libdir}/python%{pythonver} |
|
79 |
[ ! -d ${PYLIBDIR}/vendor-packages ] && mkdir -p ${PYLIBDIR}/vendor-packages |
|
80 |
( |
|
81 |
cd ${PYLIBDIR}/site-packages |
|
82 |
find . -print | cpio -pdm ${PYLIBDIR}/vendor-packages |
|
83 |
) |
|
84 |
rm -rf ${PYLIBDIR}/site-packages |
|
85 |
||
86 |
||
87 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.la" -exec rm {} ';' |
|
88 |
find $RPM_BUILD_ROOT%{_prefix} -type f -name "*.a" -exec rm {} ';' |
|
89 |
||
90 |
%clean |
|
91 |
rm -rf $RPM_BUILD_ROOT |
|
92 |
||
93 |
%files |
|
94 |
%defattr(-, root, root) |
|
95 |
%config %{_sysconfdir}/dbus-1/session.conf |
|
96 |
%config %{_sysconfdir}/dbus-1/system.conf |
|
97 |
%{_bindir}/* |
|
98 |
%{_libdir}/libdbus*.so* |
|
99 |
%{_datadir}/man/* |
|
100 |
%{_datadir}/dbus-1/* |
|
101 |
||
102 |
%files devel |
|
103 |
%defattr(-, root, root) |
|
104 |
%{_libdir}/*.so |
|
105 |
%{_includedir}/dbus-1.0/* |
|
106 |
%{_libdir}/dbus-1.0/* |
|
107 |
%{_libdir}/pkgconfig/* |
|
108 |
%{_libdir}/python?.?/vendor-packages/* |
|
109 |
||
110 |
%changelog |
|
17559 | 111 |
* Fri Feb 19 2010 - Brian Cameron <[email protected]> |
112 |
- Bump to 0.83.1. |
|
16741 | 113 |
* Tue Oct 13 2009 - Brian Cameron <[email protected]> |
114 |
- Do not install .pyo files. |
|
15444 | 115 |
* Thu Mar 19 2009 - [email protected] |
116 |
- Remove patch dbus-python-01-fix-wrong-python25-includes.diff and instead |
|
117 |
set PYTHON_VERSION, which also ensures that the right python includes are |
|
118 |
used. |
|
15324 | 119 |
* Thu Mar 05 2009 - [email protected] |
120 |
- Made it possible to build both Python 2.4 and 2.6 bindings. |
|
13591
4d67b5a15d6f
* patches/dbuspython-01-fix-wrong-python25-includes.diff: Remove Python header check.
pale
parents:
12918
diff
changeset
|
121 |
* Mon Aug 15 2008 - [email protected] |
4d67b5a15d6f
* patches/dbuspython-01-fix-wrong-python25-includes.diff: Remove Python header check.
pale
parents:
12918
diff
changeset
|
122 |
- Remove method to find python headers by means of python-config from |
4d67b5a15d6f
* patches/dbuspython-01-fix-wrong-python25-includes.diff: Remove Python header check.
pale
parents:
12918
diff
changeset
|
123 |
configure (Patch1) and add -I/usr/python2.4 to CFLAGS. |
12918 | 124 |
* Thu Jul 24 2008 - [email protected] |
125 |
- bump to 0.83.0. |
|
11307 | 126 |
* Mon Dec 10 2007 - [email protected] |
127 |
- Bump to 0.82.4. |
|
11160 | 128 |
* Wed Nov 07 2007 - [email protected] |
129 |
- Add -D_REENTRANT to CFLAGS. It was removed from SUNW spec file on Sep 28. |
|
11139 | 130 |
See bugster 6615221 |
10635 | 131 |
* Wed Oct 10 2007 - [email protected] |
132 |
- Don't delete *.pyc files - they are needed. |
|
10572 | 133 |
* Fri Sep 28 2007 - [email protected] |
134 |
- convert to new style multi-ISA build |
|
10278 | 135 |
* Mon Aug 06 2007 - [email protected] |
136 |
- Bump to 0.82.2 add "-I ./m4" to aclocal calls. |
|
9650 | 137 |
* Sun Apr 1 2007 - [email protected] |
138 |
- add missing aclocal calls |
|
9565 | 139 |
* Wed Mar 15 2007 - [email protected] |
140 |
- Removed CC64 and CC32. They are not needed anymore |
|
9397 | 141 |
* Sat Feb 25 2007 - [email protected] |
142 |
- updated to include 64-bit build RFE: #6480511 |
|
143 |
* Wed Feb 14 2007 - [email protected] |
|
144 |
- Bump to 0.80.2. |
|
145 |
* Thu Jan 25 2007 - [email protected] |
|
146 |
- Bump to 0.80.1. Use configure/make to build, not setup.py. |
|
147 |
* Thu Nov 27 2006 - [email protected] |
|
148 |
- Created. |