%?mingw_package_header Summary: MinGW build of GLib bindings for D-Bus Name: mingw-dbus-glib Version: 0.100 Release: 4%{?dist} License: AFL and GPLv2+ URL: http://dbus.freedesktop.org/ Source: http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-%{version}.tar.gz # Allows --disable-abstract-sockets to also disable the check for them, which breaks # configure in cross-build environments. # # Upstream has already removed the check from their git Patch001: dbus-glib-0.100-disable-abstract-sockets.patch BuildArch: noarch BuildRequires: mingw32-dbus BuildRequires: mingw32-glib2 BuildRequires: mingw32-expat BuildRequires: mingw32-pkg-config BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-binutils BuildRequires: mingw64-dbus BuildRequires: mingw64-glib2 BuildRequires: mingw64-expat BuildRequires: mingw64-pkg-config BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-binutils BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: dbus-glib-devel %description D-Bus is a message bus system, a simple way for applications to talk to one another. D-Bus supplies both a system daemon and a per-user-log in-session daemon. Also, the message bus is built on top of a general one-to-one message passing framework, which can be used by any two apps to communicate directly (without going through the message bus daemon). # Win32 %package -n mingw32-dbus-glib Summary: MinGW build of GLib bindings for D-Bus %description -n mingw32-dbus-glib D-Bus is a message bus system, a simple way for applications to talk to one another. D-Bus supplies both a system daemon and a per-user-log in-session daemon. Also, the message bus is built on top of a general one-to-one message passing framework, which can be used by any two apps to communicate directly (without going through the message bus daemon). %package -n mingw32-dbus-glib-static Summary: MinGW build of GLib bindings for D-Bus static build Requires: mingw32-dbus-glib = %{version}-%{release} %description -n mingw32-dbus-glib-static Static version of the MinGW Windows D-Bus Message Bus System # Win64 %package -n mingw64-dbus-glib Summary: MinGW build of GLib bindings for D-Bus %description -n mingw64-dbus-glib D-Bus is a message bus system, a simple way for applications to talk to one another. D-Bus supplies both a system daemon and a per-user-log in-session daemon. Also, the message bus is built on top of a general one-to-one message passing framework, which can be used by any two apps to communicate directly (without going through the message bus daemon). %package -n mingw64-dbus-glib-static Summary: MinGW build of GLib bindings for D-Bus static build Requires: mingw64-dbus-glib = %{version}-%{release} %description -n mingw64-dbus-glib-static Static version of the MinGW Windows D-Bus Message Bus System %{?mingw_debug_package} %prep %setup -q -n dbus-glib-%{version} %patch001 -p1 -b .abstract iconv -f Latin1 -t UTF-8 -o ChangeLog.utf8 ChangeLog mv ChangeLog.utf8 ChangeLog %build autoreconf --install --force %mingw_configure --enable-static --enable-shared \ --with-dbus-binding-tool=`which dbus-binding-tool` \ --disable-bash-completion \ --disable-abstract-sockets %mingw_make %{?_smp_mflags} %install %mingw_make_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -delete rm -r ${RPM_BUILD_ROOT}%{mingw32_mandir}/man1/ # Duplicates native versions rm -r ${RPM_BUILD_ROOT}%{mingw64_mandir}/man1/ # Win32 %files -n mingw32-dbus-glib %doc COPYING README ChangeLog %{mingw32_bindir}/libdbus-glib-1-2.dll %{mingw32_includedir}/dbus-1.0/dbus/*.h %{mingw32_libdir}/libdbus-glib-1.dll.a %{mingw32_libdir}/pkgconfig/dbus-glib-1.pc %{mingw32_bindir}/dbus-binding-tool.exe %files -n mingw32-dbus-glib-static %{mingw32_libdir}/libdbus-glib-1.a # Win64 %files -n mingw64-dbus-glib %doc COPYING README ChangeLog %{mingw64_bindir}/libdbus-glib-1-2.dll %{mingw64_includedir}/dbus-1.0/dbus/*.h %{mingw64_libdir}/libdbus-glib-1.dll.a %{mingw64_libdir}/pkgconfig/dbus-glib-1.pc %{mingw64_bindir}/dbus-binding-tool.exe %files -n mingw64-dbus-glib-static %{mingw64_libdir}/libdbus-glib-1.a %changelog * Sat Jan 26 2013 Greg Hellings - 0.100-4 - Added patch comment - Removed resolved comments about License field - Added --install --force arguments to autoreconf to satisfy rawhide * Sat Jan 26 2013 Greg Hellings - 0.100-3 - Removed config cache files - Added patch to replace cache file functionality - Updated license to match native version - Updated Summary fields to match MinGW packaging guidelines * Tue Nov 20 2012 Greg Hellings - 0.100-2 - Updated to be more in line with packaging guidelines and practices * Wed Aug 22 2012 Greg Hellings - 0.100-1 - Initial import