3013c2b
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
1f485fb
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
dff16ea
dff16ea
%define dbus_glib_version 0.70
87dd782
%define dbus_version 0.90
dff16ea
dff16ea
Summary: D-Bus Python Bindings 
dff16ea
Name: dbus-python
4717e84
Version: 0.83.0
1ecb2a7
Release: 6%{?dist}
dff16ea
URL: http://www.freedesktop.org/software/dbus/
4b13329
Source0: http://dbus.freedesktop.org/releases/dbus-python/%{name}-%{version}.tar.gz
58eb63a
e05cf88
License: MIT
dff16ea
Group: System Environment/Libraries
e2d452e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 
87dd782
BuildRequires: dbus-devel >= %{dbus_version}
dff16ea
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
2d6ec8e
BuildRequires: python-devel
dff16ea
Marco Pesenti Gritti 9ccbc3d
Patch0: dbus-python-0.83.0-memleak.patch
Marco Pesenti Gritti 9ccbc3d
dff16ea
%description
dff16ea
dff16ea
D-Bus python bindings for use with python programs.   
dff16ea
58eb63a
%package devel
58eb63a
Summary: Libraries and headers for dbus-python
58eb63a
Group: Development/Libraries
58eb63a
Requires: %name = %{version}-%{release}
58eb63a
58eb63a
%description devel
58eb63a
58eb63a
Headers and static libraries for hooking up custom mainloops to the dbus python
58eb63a
bindings.
58eb63a
dff16ea
%prep
dff16ea
%setup -q
dff16ea
Marco Pesenti Gritti 9ccbc3d
%patch0 -p0 -b .memleak
Marco Pesenti Gritti 9ccbc3d
dff16ea
%build
58eb63a
%configure
58eb63a
58eb63a
make
dff16ea
58eb63a
#CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
dff16ea
dff16ea
%install
dff16ea
rm -rf %{buildroot}
dff16ea
58eb63a
make install DESTDIR=$RPM_BUILD_ROOT
58eb63a
58eb63a
#PKG_CONFIG_PATH=%{_libdir}/pkgconfig %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
58eb63a
58eb63a
rm -f $RPM_BUILD_ROOT/%{python_sitearch}/*.la
dff16ea
dff16ea
%clean
dff16ea
rm -rf %{buildroot}
dff16ea
dff16ea
%files
dff16ea
%defattr(-,root,root)
dff16ea
debecfb
%doc COPYING ChangeLog README NEWS TODO
debecfb
%doc doc/API_CHANGES.txt doc/HACKING.txt doc/tutorial.txt
debecfb
%exclude %{_datadir}/doc/dbus-python
58eb63a
1f485fb
%dir %{python_sitelib}/dbus
1f485fb
%dir %{python_sitelib}/dbus/mainloop
58eb63a
%{python_sitearch}/*.so
1f485fb
%{python_sitelib}/*.py*
1f485fb
%{python_sitelib}/dbus/*.py*
1f485fb
%{python_sitelib}/dbus/mainloop/*.py*
58eb63a
58eb63a
%files devel
58eb63a
%defattr(-,root,root)
58eb63a
58eb63a
%{_includedir}/dbus-1.0/dbus/dbus-python.h
58eb63a
%{_libdir}/pkgconfig/dbus-python.pc
dff16ea
dff16ea
%changelog
1ecb2a7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-6
1ecb2a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1ecb2a7
7ddfe3f
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.83.0-5
7ddfe3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7ddfe3f
e13a7da
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.83.0-4
e13a7da
- Rebuild for Python 2.6
e13a7da
Marco Pesenti Gritti 9ccbc3d
* Tue Sep 16 2008 Marco Pesenti Gritti - 0.83.0-3
Marco Pesenti Gritti 9ccbc3d
- Add patch for https://bugs.freedesktop.org/show_bug.cgi?id=17551 
Marco Pesenti Gritti 9ccbc3d
5618b81
* Tue Aug 05 2008  Huang Peng <phuang@redhat.com> - 0.83.0-2
4717e84
- Update to 0.83.0.
4717e84
e05cf88
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.82.4-3
e05cf88
- fix license tag
e05cf88
738f9b0
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.82.4-2
738f9b0
- Autorebuild for GCC 4.3
738f9b0
463291f
* Sun Jan 20 2008 Matthias Clasen <mclasen@redhat.com> - 0.82.4-1
463291f
- Update to 0.82.4
463291f
2755655
* Mon Oct 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.82.0-3
2755655
- Rebuild against new dbus-glib
2755655
a70a92b
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.82.0-2
a70a92b
- Rebuild for selinux ppc32 issue.
a70a92b
debecfb
* Fri Jun 22 2007 Matthias Clasen <mclasen@redhat.com> - 0.82.0-1
debecfb
- Update to 0.82.0
debecfb
- Put all docs in the usual place
debecfb
David Zeuthen a76f408
* Tue Apr 03 2007 David Zeuthen <davidz@redhat.com> - 0.80.2-3
David Zeuthen a76f408
- Rebuild
David Zeuthen a76f408
David Zeuthen a76f408
* Tue Apr 03 2007 David Zeuthen <davidz@redhat.com> - 0.80.2-2
David Zeuthen 50afc3e
- Don't examine args for functions declared METH_NOARGS (#235017)
David Zeuthen 50afc3e
a8876c7
* Tue Feb 13 2007 John (J5) Palmieri <johnp@redhat.com> - 0.80.2-1
a8876c7
- upgrade to 0.80.2 which fixes some memleaks
a8876c7
58eb63a
* Wed Jan 24 2007 John (J5) Palmieri <johnp@redhat.com> - 0.80.1-1
58eb63a
- upgrade to 0.80.1
58eb63a
- remove dependency on Pyrex and libxml2
58eb63a
- some API breakage, 
58eb63a
  please see http://dbus.freedesktop.org/doc/dbus-python/NEWS.html
58eb63a
  for notes on changes 
58eb63a
David Zeuthen ff5efe7
* Wed Jan  3 2007 David Zeuthen <davidz@redhat.com> - 0.70-9%{?dist}
David Zeuthen ff5efe7
- rebuild against new Pyrex
David Zeuthen ff5efe7
ac61323
* Wed Dec  6 2006 Jeremy Katz <katzj@redhat.com> - 0.70-8
ac61323
- rebuild against python 2.5
ac61323
9c8b7e2
* Tue Nov  7 2006 Matthias Clasen <mclasen@redhat.com> - 0.70-7
9c8b7e2
- Fix a typo in the spec file
9c8b7e2
acdcf7f
* Fri Aug 18 2006 Karsten Hopp <karsten@redhat.com> - 0.70-6
acdcf7f
- require libxml2-python for site-packages/dbus/introspect_parser.py
acdcf7f
a2c88bc
* Thu Jul 20 2006 Jesse Keating <jkeating@redhat.com> - 0.70-5
a2c88bc
- Remove unnecessary obsoletes
a2c88bc
3013c2b
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-4
3013c2b
- Try python_sitearch this time
3013c2b
87dd782
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-3
87dd782
- Add a BR on dbus-devel
87dd782
e2d452e
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-2
e2d452e
- Spec file cleanups
3d9400d
- Add PKG_CONFIG_PATH
e2d452e
dff16ea
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1
dff16ea
- Initial package import