6b4d0d4
%define gettext_package dbus
6b4d0d4
6b4d0d4
%define expat_version           1.95.5
6b4d0d4
%define glib2_version           2.2.0
6b4d0d4
%define gtk2_version 2.4.0
6b4d0d4
%define dbus_version 0.90
6b4d0d4
6b4d0d4
Summary: GLib bindings for D-Bus
6b4d0d4
Name: dbus-glib
50d77c4
Version: 0.74
David Zeuthen 036dffd
Release: 6%{?dist}
6b4d0d4
URL: http://www.freedesktop.org/software/dbus/
df3a0eb
Source0: http://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
39103d0
Source1: dbus-bus-introspect.xml
76823a5
Patch0: broken-xml.patch
295f362
Patch1: dbus-glib-proxy-signals-once.patch
a37deac
# https://bugs.freedesktop.org/show_bug.cgi?id=14429
ab01ef0
Patch2: dbus-glib-0.73-ignore-namespaces-and-children.patch
David Zeuthen 036dffd
Patch3: dbus-glib-0.74-set-default-timeout-for-proxy.patch
David Zeuthen 036dffd
Patch4: dbus-glib-0.74-export-getall.patch
6b4d0d4
License: AFL/GPL
6b4d0d4
Group: System Environment/Libraries
c39b4d8
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6b4d0d4
Requires: chkconfig >= 1.3.26
6b4d0d4
BuildRequires: libtool
6b4d0d4
BuildRequires: dbus-devel >= %{dbus_version}
6b4d0d4
BuildRequires: expat-devel >= %{expat_version}
6b4d0d4
BuildRequires: libxml2-devel
6b4d0d4
BuildRequires: glib2-devel >= %{glib2_version}
6b4d0d4
BuildRequires: gettext
6b4d0d4
BuildRequires: autoconf
6b4d0d4
6b4d0d4
6b4d0d4
%description
6b4d0d4
6b4d0d4
D-Bus add-on library to integrate the standard D-Bus library with
6b4d0d4
the GLib thread abstraction and main loop.
6b4d0d4
6b4d0d4
%package devel
6b4d0d4
Summary: Libraries and headers for the D-Bus GLib bindings
6b4d0d4
Group: Development/Libraries
6b4d0d4
Requires: %name = %{version}-%{release}
6b4d0d4
Requires: glib2-devel 
b85e18b
Requires: dbus-devel 
b85e18b
Requires: pkgconfig
6b4d0d4
Obsoletes: dbus-devel < 0.90
6b4d0d4
6b4d0d4
%description devel
6b4d0d4
6b4d0d4
Headers and static libraries for the D-Bus GLib bindings 
6b4d0d4
6b4d0d4
%if 0
6b4d0d4
%package gtk
6b4d0d4
Summary: GTK based tools
6b4d0d4
Group: Development/Tools 
6b4d0d4
Requires: %name = %{version}-%{release}
6b4d0d4
Requires: gtk2 >= %{gtk_version}
6b4d0d4
%description gtk
6b4d0d4
6b4d0d4
D-Bus tools written using the gtk+ GUI libaries
6b4d0d4
6b4d0d4
%endif
6b4d0d4
6b4d0d4
%prep
6b4d0d4
%setup -q
76823a5
%patch0 -p1 -b .broken-xml
2f0a903
%patch1 -p1 -b .proxy-signals-once
b9f2cca
%patch2 -p1 -b .ignore-namespaces
David Zeuthen 036dffd
%patch3 -p1 -b .set-default-timeout
David Zeuthen 036dffd
%patch4 -p1 -b .export-getall
David Zeuthen b3f1660
6b4d0d4
%build
6b4d0d4
39103d0
%configure --disable-tests \
39103d0
	--enable-verbose-mode=yes \
39103d0
	--enable-asserts=yes \
5f718a2
	--disable-gtk-doc \
39103d0
	--with-introspect-xml=%{SOURCE1}
6b4d0d4
c39b4d8
#build with checks for right now but disable checks for final release
c39b4d8
#%configure  --disable-tests --disable-verbose-mode --disable-asserts
6b4d0d4
make
6b4d0d4
6b4d0d4
%install
6b4d0d4
rm -rf %{buildroot}
6b4d0d4
6b4d0d4
make install DESTDIR=$RPM_BUILD_ROOT
6b4d0d4
6b4d0d4
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
6b4d0d4
6b4d0d4
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
6b4d0d4
6b4d0d4
%clean
6b4d0d4
rm -rf %{buildroot}
6b4d0d4
6b4d0d4
b6619a2
%post -p /sbin/ldconfig
6b4d0d4
b6619a2
%postun -p /sbin/ldconfig
6b4d0d4
6b4d0d4
%files
6b4d0d4
%defattr(-,root,root)
6b4d0d4
6b4d0d4
%doc COPYING ChangeLog NEWS
6b4d0d4
6b4d0d4
%{_libdir}/*glib*.so.*
6b4d0d4
%{_bindir}/dbus-binding-tool
6b4d0d4
6b4d0d4
%files devel
6b4d0d4
%defattr(-,root,root)
6b4d0d4
6b4d0d4
%{_libdir}/lib*.so
6b4d0d4
%{_libdir}/pkgconfig/dbus-glib-1.pc
6b4d0d4
%{_includedir}/*
39103d0
%{_datadir}/gtk-doc/html/dbus-glib
6b4d0d4
6b4d0d4
%if 0
6b4d0d4
%files gtk
6b4d0d4
%defattr(-,root,root)
6b4d0d4
6b4d0d4
%{_bindir}/dbus-viewer
6b4d0d4
6b4d0d4
%endif
6b4d0d4
6b4d0d4
%changelog
David Zeuthen 036dffd
* Fri Apr  4 2008 David Zeuthen <davidz@redhat.com> - 0.74-6
David Zeuthen 036dffd
- Add another upstreamed patch for setting the default timeout
David Zeuthen 036dffd
  on a proxy
David Zeuthen 036dffd
David Zeuthen ae1890d
* Fri Apr  4 2008 David Zeuthen <davidz@redhat.com> - 0.74-5
David Zeuthen ae1890d
- Add an already upstreamed patch to export the GetAll() method on
David Zeuthen ae1890d
  the org.freedesktop.DBus.Properties interface
David Zeuthen ae1890d
ab01ef0
* Wed Mar 19 2008 Dan Williams <dcbw@redhat.com> - 0.74-4
ab01ef0
- Ignore children of namespaced nodes too
ab01ef0
b9f2cca
* Tue Feb 12 2008 Dan Williams <dcbw@redhat.com> - 0.74-3
b9f2cca
- Ignore namespaces in introspection XML
b9f2cca
2f0a903
* Sun Nov 18 2007 Dan Williams <dcbw@redhat.com> - 0.74-2
2f0a903
- Actually apply the patch for fdo #12505
2f0a903
50d77c4
* Mon Oct 22 2007 Ray Strode <rstrode@redhat.com> - 0.74-1
50d77c4
- Update to 0.74
50d77c4
295f362
* Mon Sep 24 2007 Dan Williams <dcbw@redhat.com> - 0.73-4
295f362
- Dispatch NameOwnerChanged signals to proxies only once (fdo #12505)
295f362
57165b0
* Sat Sep 15 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-3
57165b0
- Rebuild against new expat
57165b0
76823a5
* Wed Aug  1 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-2
76823a5
- Fix a bug in introspection support (#248150)
76823a5
39103d0
* Wed Apr  4 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-1
39103d0
- Update to 0.73 (#233631)
39103d0
- Drop upstreamed patches
39103d0
e9afde2
* Tue Dec 19 2006 John (J5) Palmieri <johnp@redhat.com> - 0.71-4
e9afde2
- Add dbus-glib-0.70-use-default-threads.patch
e9afde2
- Partial fix to #219257
e9afde2
David Zeuthen b3f1660
* Wed Nov 29 2006 David Zeuthen <davidz@redhat.com> - 0.71-3%{?dist}
David Zeuthen b3f1660
- Add dbus-glib-0.70-fix-info-leak.patch
David Zeuthen b3f1660
- Resolves: #216034
David Zeuthen b3f1660
b85e18b
* Sun Nov  5 2006 Matthias Clasen <mclasen@redhat.com> - 0.71-2
b85e18b
- Fix up Requires for the -devel package
b85e18b
c16e52c
* Mon Oct 23 2006 Matthias Clasen <mclasen@redhat.com> - 0.71-1
c16e52c
- Update to 0.71
c16e52c
953cc5b
* Thu Jul 20 2006 Jesse Keating <jkeating@redhat.com> - 0.70-4
953cc5b
- remove improper obsoletes
953cc5b
cf20d37
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-3
cf20d37
- Pregenerate the xml introspect file so you don't need dbus running during
cf20d37
  the build 
cf20d37
c39b4d8
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-2
c39b4d8
- Spec file cleanups
c39b4d8
6b4d0d4
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1
6b4d0d4
- Initial dbus-glib package