%global __strip %{_mingw32_strip} %global __objdump %{_mingw32_objdump} %define __debug_install_post %{_mingw32_debug_install_post} Name: mingw-dbus-glib Version: 0.92 Release: 1%{?dist} Summary: MinGW Windows GLib bindings for D-Bus License: AFL or GPLv2+ Group: Development/Libraries URL: http://www.freedesktop.org/wiki/Software/dbus Source0: http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-%{version}.tar.gz BuildArch: noarch BuildRequires: mingw32-filesystem >= 68 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: mingw32-dbus BuildRequires: mingw32-expat BuildRequires: mingw32-glib2 BuildRequires: mingw32-libxml2 BuildRequires: gettext BuildRequires: /usr/bin/dbus-binding-tool BuildRequires: /usr/bin/glib-genmarshal %description D-Bus add-on library to integrate the standard D-Bus library with the GLib thread abstraction and main loop. This package contains the MinGW Windows cross compiled dbus-glib library. %package -n mingw32-dbus-glib Summary: MinGW Windows GLib bindings for D-Bus %description -n mingw32-dbus-glib D-Bus add-on library to integrate the standard D-Bus library with the GLib thread abstraction and main loop. This package contains the MinGW Windows cross compiled dbus-glib library. %{?_mingw32_debug_package} %prep %setup -q -n dbus-glib-%{version} %build echo "ac_cv_have_abstract_sockets=no" >>%{_mingw32_cache} %{_mingw32_configure} \ --disable-static \ --disable-bash-completion \ --with-dbus-binding-tool=/usr/bin/dbus-binding-tool make %{?_smp_mflags} V=1 %install make install DESTDIR=$RPM_BUILD_ROOT # Remove documentation and man pages rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir} %files -n mingw32-dbus-glib %doc COPYING %{_mingw32_bindir}/dbus-binding-tool.exe %{_mingw32_bindir}/libdbus-glib-1-2.dll %{_mingw32_includedir}/dbus-1.0/ %{_mingw32_libdir}/libdbus-glib-1.dll.a %{_mingw32_libdir}/libdbus-glib-1.la %{_mingw32_libdir}/pkgconfig/dbus-glib-1.pc %changelog * Mon Aug 01 2011 Kalev Lember - 0.92-1 - Initial RPM release