[mingw-dbus-glib] Initial import (#851677)

Greg Hellings greghellings at fedoraproject.org
Sun Jan 27 21:50:25 UTC 2013


commit 78e10391bd3c46fc26f32dfeb1b355c274f7c495
Author: Greg Hellings <greg.hellings at gmail.com>
Date:   Sun Jan 27 15:47:15 2013 -0600

    Initial import (#851677)

 .gitignore                                     |    1 +
 dbus-glib-0.100-disable-abstract-sockets.patch |   26 ++++
 mingw-dbus-glib.spec                           |  159 ++++++++++++++++++++++++
 sources                                        |    1 +
 4 files changed, 187 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a79eff5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dbus-glib-0.100.tar.gz
diff --git a/dbus-glib-0.100-disable-abstract-sockets.patch b/dbus-glib-0.100-disable-abstract-sockets.patch
new file mode 100644
index 0000000..149c868
--- /dev/null
+++ b/dbus-glib-0.100-disable-abstract-sockets.patch
@@ -0,0 +1,26 @@
+diff --git a/configure.ac b/configure.ac
+index 8ea59e3..4cfbfc2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -249,6 +249,10 @@ fi
+ 
+ #### Abstract sockets
+ 
++if test x$enable_abstract_sockets = xno; then
++   ac_cv_have_abstract_sockets=no;
++fi
++
+ AC_LANG_PUSH(C)
+ AC_CACHE_CHECK([abstract socket namespace],
+ 		ac_cv_have_abstract_sockets,
+@@ -299,10 +303,6 @@ if test x$enable_abstract_sockets = xyes; then
+     fi
+ fi
+ 
+-if test x$enable_abstract_sockets = xno; then
+-   ac_cv_have_abstract_sockets=no;
+-fi
+-
+ if test x$ac_cv_have_abstract_sockets = xyes ; then
+    DBUS_PATH_OR_ABSTRACT=abstract
+    AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
diff --git a/mingw-dbus-glib.spec b/mingw-dbus-glib.spec
new file mode 100644
index 0000000..0f2baf1
--- /dev/null
+++ b/mingw-dbus-glib.spec
@@ -0,0 +1,159 @@
+%?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 <greg.hellings at gmail.com> - 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 <greg.hellings at gmail.com> - 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 <greg.hellings at gmail.com> - 0.100-2
+- Updated to be more in line with packaging guidelines and practices
+
+* Wed Aug 22 2012 Greg Hellings <greg.hellings at gmail.com> - 0.100-1
+- Initial import
diff --git a/sources b/sources
index e69de29..3dc25cb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d33959a9c0c6a158f5ac6d640316e89e  dbus-glib-0.100.tar.gz


More information about the scm-commits mailing list