[mingw-glib2/f17] Update to 2.32.4
by Kalev Lember
commit 666b537fae22c47e4b5b73f8eeb180827614a314
Author: Kalev Lember <kalevlember(a)gmail.com>
Date: Sun Jul 15 23:37:26 2012 +0300
Update to 2.32.4
0001-win32-fix-build-after-bug-674452.patch | 25 +++++++++++++++++++++++++
mingw-glib2.spec | 15 +++++++++++----
sources | 2 +-
3 files changed, 37 insertions(+), 5 deletions(-)
---
diff --git a/0001-win32-fix-build-after-bug-674452.patch b/0001-win32-fix-build-after-bug-674452.patch
new file mode 100644
index 0000000..dc35820
--- /dev/null
+++ b/0001-win32-fix-build-after-bug-674452.patch
@@ -0,0 +1,25 @@
+From af3b1674cd65e1d650fb82bc93483391b99feb50 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau(a)gmail.com>
+Date: Tue, 3 Jul 2012 20:04:05 +0200
+Subject: [PATCH] win32: fix build after bug 674452
+
+---
+ gio/gcontenttype.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
+index dc48411..b91835e 100644
+--- a/gio/gcontenttype.c
++++ b/gio/gcontenttype.c
+@@ -332,7 +332,7 @@ g_content_type_guess (const gchar *filename,
+
+ /* our test suite and potentially other code used -1 in the past, which is
+ * not documented and not allowed; guard against that */
+- g_return_val_if_fail (data_size != (gsize) -1, g_strdup (XDG_MIME_TYPE_UNKNOWN));
++ g_return_val_if_fail (data_size != (gsize) -1, g_strdup ("*"));
+
+ if (filename)
+ {
+--
+1.7.10.4
+
diff --git a/mingw-glib2.spec b/mingw-glib2.spec
index ee2b5fb..06cb2f5 100644
--- a/mingw-glib2.spec
+++ b/mingw-glib2.spec
@@ -1,8 +1,8 @@
%?mingw_package_header
Name: mingw-glib2
-Version: 2.32.2
-Release: 2%{?dist}
+Version: 2.32.4
+Release: 1%{?dist}
Summary: MinGW Windows GLib2 library
License: LGPLv2+
@@ -37,6 +37,8 @@ BuildRequires: glib2-devel >= 2.31.20
# https://bugzilla.gnome.org/show_bug.cgi?id=675516
Patch0: 0001-Don-t-start-a-DBus-server-when-built-as-static-lib.patch
+# Backported build fix from git master
+Patch1: 0001-win32-fix-build-after-bug-674452.patch
%description
@@ -79,6 +81,7 @@ Static version of the MinGW Windows GLib2 library.
%prep
%setup -q -n glib-%{version}
%patch0 -p1
+%patch1 -p1 -b .content_type
%build
@@ -137,8 +140,8 @@ rm -rf $RPM_BUILD_ROOT%{mingw64_mandir}
rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/gtk-doc
# Bash-completion files aren't interesting for mingw
-rm -rf $RPM_BUILD_ROOT%{mingw32_sysconfdir}/bash_completion.d
-rm -rf $RPM_BUILD_ROOT%{mingw64_sysconfdir}/bash_completion.d
+rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/bash-completion
+rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/bash-completion
# The .def files are also of no use to other binaries
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/*.def
@@ -257,6 +260,10 @@ find $RPM_BUILD_ROOT -name "*.la" -delete
%changelog
+* Sun Jul 15 2012 Kalev Lember <kalevlember(a)gmail.com> - 2.32.4-1
+- Update to 2.32.4
+- Backport a build fix from from git master
+
* Sat May 05 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.32.2-2
- Fix compile failure while building static library (GNOME BZ #675516)
diff --git a/sources b/sources
index 7f05da0..6c6a0fe 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5bfdb6197afb90e4dbc7b1bb98f0eae0 glib-2.32.2.tar.xz
+bf84fefd9c1a5b5a7a38736f4ddd674a glib-2.32.4.tar.xz
11 years, 9 months
[mingw-pthreads] Added -static subpackage
by Erik van Pienbroek
commit 0751587b99193ffbe329c0194647dff8773d1a27
Author: Erik van Pienbroek <epienbro(a)fedoraproject.org>
Date: Mon Jul 9 20:54:57 2012 +0200
Added -static subpackage
mingw-pthreads.spec | 58 +++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 47 insertions(+), 11 deletions(-)
---
diff --git a/mingw-pthreads.spec b/mingw-pthreads.spec
index 3fb7307..aa64935 100644
--- a/mingw-pthreads.spec
+++ b/mingw-pthreads.spec
@@ -1,7 +1,4 @@
-%?mingw_package_header
-
-%global mingw_build_win32 1
-%global mingw_build_win64 1
+%{?mingw_package_header}
# The tests take ages to run and require Wine.
%global run_tests 0
@@ -9,7 +6,7 @@
Name: mingw-pthreads
Version: 2.8.0
-Release: 20.%{prerelease_date}cvs%{?dist}
+Release: 21.%{prerelease_date}cvs%{?dist}
Summary: MinGW pthread library
License: LGPLv2+
Group: Development/Libraries
@@ -25,8 +22,8 @@ Patch0: mingw32-pthreads-2.8.0-20110511-use-wine-for-tests.patch
Patch1: mingw32-pthreads-2.8.0-20110511-no-failing-tests.patch
Patch2: mingw32-pthreads-flags.patch
-BuildRequires: mingw32-filesystem >= 82
-BuildRequires: mingw64-filesystem >= 82
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw64-filesystem >= 95
BuildRequires: mingw32-gcc
BuildRequires: mingw64-gcc
BuildRequires: mingw32-gcc-c++
@@ -54,6 +51,7 @@ Win32 does not, and is unlikely to ever, support pthreads
natively. This project seeks to provide a freely available and
high-quality solution to this problem.
+# Win32
%package -n mingw32-pthreads
Summary: MinGW pthread library for the win32 target
@@ -75,6 +73,15 @@ Win32 does not, and is unlikely to ever, support pthreads
natively. This project seeks to provide a freely available and
high-quality solution to this problem.
+%package -n mingw32-pthreads-static
+Summary: Static version of the MinGW Windows pthreads library
+Requires: mingw32-pthreads = %{version}-%{release}
+Group: Development/Libraries
+
+%description -n mingw32-pthreads-static
+Static version of the MinGW Windows pthreads library.
+
+# Win64
%package -n mingw64-pthreads
Summary: MinGW pthread library for the win64 target
@@ -96,6 +103,14 @@ Win32 does not, and is unlikely to ever, support pthreads
natively. This project seeks to provide a freely available and
high-quality solution to this problem.
+%package -n mingw64-pthreads-static
+Summary: Static version of the MinGW Windows pthreads library
+Requires: mingw64-pthreads = %{version}-%{release}
+Group: Development/Libraries
+
+%description -n mingw64-pthreads-static
+Static version of the MinGW Windows pthreads library.
+
%?mingw_debug_package
@@ -131,6 +146,10 @@ make clean
make CROSS=%{mingw32_host}- GC-inlined
make clean
make CROSS=%{mingw32_host}- GCE-inlined
+mv libpthreadGC2.a libpthreadGC2.dll.a
+mv libpthreadGCE2.a libpthreadGCE2.dll.a
+make clean
+make CROSS=%{mingw32_host}- GC-static
popd
pushd build_win64
@@ -138,6 +157,10 @@ make clean
make CROSS=%{mingw64_host}- GC-inlined
make clean
make CROSS=%{mingw64_host}- GCE-inlined
+mv libpthreadGC2.a libpthreadGC2.dll.a
+mv libpthreadGCE2.a libpthreadGCE2.dll.a
+make clean
+make CROSS=%{mingw64_host}- GC-static
popd
@@ -188,7 +211,9 @@ install -m 0644 build_win64/semaphore.h $RPM_BUILD_ROOT%{mingw64_includedir}
# Create a symlink from libpthreadGC2.a to libpthread.a because of BZ #498616
ln -s libpthreadGC2.a $RPM_BUILD_ROOT%{mingw32_libdir}/libpthread.a
+ln -s libpthreadGC2.dll.a $RPM_BUILD_ROOT%{mingw32_libdir}/libpthread.dll.a
ln -s libpthreadGC2.a $RPM_BUILD_ROOT%{mingw64_libdir}/libpthread.a
+ln -s libpthreadGC2.dll.a $RPM_BUILD_ROOT%{mingw64_libdir}/libpthread.dll.a
%files -n mingw32-pthreads
@@ -196,23 +221,34 @@ ln -s libpthreadGC2.a $RPM_BUILD_ROOT%{mingw64_libdir}/libpthread.a
%doc FAQ MAINTAINERS NEWS PROGRESS README README.NONPORTABLE TODO
%{mingw32_bindir}/pthreadGC2.dll
%{mingw32_bindir}/pthreadGCE2.dll
+%{mingw32_libdir}/libpthread.dll.a
+%{mingw32_libdir}/libpthreadGC2.dll.a
+%{mingw32_libdir}/libpthreadGCE2.dll.a
+%{mingw32_includedir}/*.h
+
+%files -n mingw32-pthreads-static
%{mingw32_libdir}/libpthread.a
%{mingw32_libdir}/libpthreadGC2.a
-%{mingw32_libdir}/libpthreadGCE2.a
-%{mingw32_includedir}/*.h
%files -n mingw64-pthreads
%doc ANNOUNCE BUGS ChangeLog CONTRIBUTORS COPYING COPYING.LIB
%doc FAQ MAINTAINERS NEWS PROGRESS README README.NONPORTABLE TODO
%{mingw64_bindir}/pthreadGC2.dll
%{mingw64_bindir}/pthreadGCE2.dll
+%{mingw64_libdir}/libpthread.dll.a
+%{mingw64_libdir}/libpthreadGC2.dll.a
+%{mingw64_libdir}/libpthreadGCE2.dll.a
+%{mingw64_includedir}/*.h
+
+%files -n mingw64-pthreads-static
%{mingw64_libdir}/libpthread.a
%{mingw64_libdir}/libpthreadGC2.a
-%{mingw64_libdir}/libpthreadGCE2.a
-%{mingw64_includedir}/*.h
%changelog
+* Mon Jul 9 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.8.0-21.20110511cvs
+- Added -static subpackage
+
* Fri Mar 9 2012 Erik van Pienbroek <epienbro(a)fedoraproject.org> - 2.8.0-20.20110511cvs
- Fix upgrade path when upgrading from the testing repo to F17
11 years, 9 months