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
6b4d0d4
Version: 0.70
6b4d0d4
Release: 1 
6b4d0d4
URL: http://www.freedesktop.org/software/dbus/
6b4d0d4
Source0: %{name}-%{version}.tar.gz
6b4d0d4
Patch0: dbus-glib-0.70-fix-includes.patch
6b4d0d4
License: AFL/GPL
6b4d0d4
Group: System Environment/Libraries
6b4d0d4
BuildRoot: %{_tmppath}/%{name}-root
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: gtk2-devel  >= %{gtk_version}
6b4d0d4
BuildRequires: gettext
6b4d0d4
BuildRequires: autoconf
6b4d0d4
6b4d0d4
Obsoletes: dbus-glib < 0.90
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 
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
6b4d0d4
%patch0 -p1 -b .fix-includes
6b4d0d4
6b4d0d4
autoreconf -i -f
6b4d0d4
6b4d0d4
%build
6b4d0d4
6b4d0d4
%configure --disable-tests --enable-verbose-mode=yes --enable-asserts=yes
6b4d0d4
make
6b4d0d4
6b4d0d4
#build with checks for right now
6b4d0d4
exit 0
6b4d0d4
6b4d0d4
%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
6b4d0d4
%post 
6b4d0d4
/sbin/ldconfig
6b4d0d4
6b4d0d4
%postun 
6b4d0d4
/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}/*
6b4d0d4
6b4d0d4
%if 0
6b4d0d4
%files gtk
6b4d0d4
%defattr(-,root,root)
6b4d0d4
6b4d0d4
%{_bindir}/dbus-viewer
6b4d0d4
6b4d0d4
%endif
6b4d0d4
6b4d0d4
%changelog
6b4d0d4
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1
6b4d0d4
- Initial dbus-glib package