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