| |
@@ -8,8 +8,8 @@
|
| |
%global __python %{__python3}
|
| |
|
| |
Name: mingw-glib2
|
| |
- Version: 2.58.3
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 2.61.2
|
| |
+ Release: 1%{?dist}
|
| |
Summary: MinGW Windows GLib2 library
|
| |
|
| |
License: LGPLv2+
|
| |
@@ -20,7 +20,11 @@
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
- BuildRequires: mingw32-filesystem >= 95
|
| |
+ BuildRequires: meson
|
| |
+ BuildRequires: gcc
|
| |
+ BuildRequires: gcc-c++
|
| |
+
|
| |
+ BuildRequires: mingw32-filesystem >= 107
|
| |
BuildRequires: mingw32-gcc
|
| |
BuildRequires: mingw32-binutils
|
| |
BuildRequires: mingw32-win-iconv
|
| |
@@ -29,7 +33,7 @@
|
| |
BuildRequires: mingw32-pcre
|
| |
BuildRequires: mingw32-zlib
|
| |
|
| |
- BuildRequires: mingw64-filesystem >= 95
|
| |
+ BuildRequires: mingw64-filesystem >= 107
|
| |
BuildRequires: mingw64-gcc
|
| |
BuildRequires: mingw64-binutils
|
| |
BuildRequires: mingw64-win-iconv
|
| |
@@ -43,10 +47,6 @@
|
| |
# Native version required for glib-genmarshal
|
| |
BuildRequires: glib2-devel >= 2.45.3
|
| |
BuildRequires: python3-devel
|
| |
- # glib starting from 2.57.2 does not ship autoconf scripts anymore
|
| |
- BuildRequires: autoconf
|
| |
- BuildRequires: automake
|
| |
- BuildRequires: libtool
|
| |
|
| |
# https://bugzilla.gnome.org/show_bug.cgi?id=674214
|
| |
Patch1: 0001-Use-CreateFile-on-Win32-to-make-sure-g_unlink-always.patch
|
| |
@@ -102,25 +102,13 @@
|
| |
%prep
|
| |
%setup -q -n glib-%{version}
|
| |
%patch1 -p1
|
| |
- %patch5 -p1
|
| |
+ #%patch5 -p1
|
| |
|
| |
%build
|
| |
- NOCONFIGURE=1 ./autogen.sh
|
| |
- #GLib can't build static and shared libraries in one go, so we build GLib twice
|
| |
- MINGW_BUILDDIR_SUFFIX=_static %mingw_configure --with-python=%{__python3} --disable-shared --enable-static
|
| |
- MINGW_BUILDDIR_SUFFIX=_shared %mingw_configure --with-python=%{__python3} --disable-static
|
| |
-
|
| |
- MINGW_BUILDDIR_SUFFIX=_static %mingw_make %{?_smp_mflags} V=1
|
| |
- MINGW_BUILDDIR_SUFFIX=_shared %mingw_make %{?_smp_mflags} V=1
|
| |
-
|
| |
+ %mingw_meson --default-library=both
|
| |
|
| |
%install
|
| |
- MINGW_BUILDDIR_SUFFIX=_static %mingw_make install DESTDIR=$RPM_BUILD_ROOT/build_static
|
| |
- MINGW_BUILDDIR_SUFFIX=_shared %mingw_make install DESTDIR=$RPM_BUILD_ROOT
|
| |
-
|
| |
- # Move the static libraries to the right location
|
| |
- mv $RPM_BUILD_ROOT/build_static%{mingw32_libdir}/*.a $RPM_BUILD_ROOT%{mingw32_libdir}
|
| |
- mv $RPM_BUILD_ROOT/build_static%{mingw64_libdir}/*.a $RPM_BUILD_ROOT%{mingw64_libdir}
|
| |
+ %mingw_ninja_install
|
| |
|
| |
# There's a small difference in the file glibconfig.h between the
|
| |
# shared and the static build:
|
| |
@@ -144,8 +132,6 @@
|
| |
# and -DGOBJECT_STATIC_COMPILATION to their CFLAGS to avoid compile failures
|
| |
|
| |
# Drop the folder which was temporary used for installing the static bits
|
| |
- rm -rf $RPM_BUILD_ROOT/build_static
|
| |
-
|
| |
rm -f $RPM_BUILD_ROOT/%{mingw32_libdir}/charset.alias
|
| |
rm -f $RPM_BUILD_ROOT/%{mingw64_libdir}/charset.alias
|
| |
|
| |
@@ -187,7 +173,6 @@
|
| |
%{mingw32_bindir}/gdbus.exe
|
| |
%{mingw32_bindir}/gio.exe
|
| |
%{mingw32_bindir}/gio-querymodules.exe
|
| |
- %{mingw32_bindir}/gio-launch-desktop.exe
|
| |
%{mingw32_bindir}/glib-compile-resources.exe
|
| |
%{mingw32_bindir}/glib-compile-schemas.exe
|
| |
%{mingw32_bindir}/glib-genmarshal
|
| |
@@ -198,6 +183,7 @@
|
| |
%{mingw32_bindir}/gsettings.exe
|
| |
%{mingw32_bindir}/gspawn-win32-helper-console.exe
|
| |
%{mingw32_bindir}/gspawn-win32-helper.exe
|
| |
+ %{mingw32_bindir}/gtester-report
|
| |
%{mingw32_bindir}/libgio-2.0-0.dll
|
| |
%{mingw32_bindir}/libglib-2.0-0.dll
|
| |
%{mingw32_bindir}/libgmodule-2.0-0.dll
|
| |
@@ -206,8 +192,6 @@
|
| |
%{mingw32_includedir}/glib-2.0/
|
| |
%{mingw32_includedir}/gio-win32-2.0/
|
| |
%{mingw32_libdir}/glib-2.0/
|
| |
- %dir %{mingw32_libdir}/gio/
|
| |
- %dir %{mingw32_libdir}/gio/modules/
|
| |
%{mingw32_libdir}/libgio-2.0.dll.a
|
| |
%{mingw32_libdir}/libglib-2.0.dll.a
|
| |
%{mingw32_libdir}/libgmodule-2.0.dll.a
|
| |
@@ -240,7 +224,6 @@
|
| |
%{mingw64_bindir}/gdbus.exe
|
| |
%{mingw64_bindir}/gio.exe
|
| |
%{mingw64_bindir}/gio-querymodules.exe
|
| |
- %{mingw64_bindir}/gio-launch-desktop.exe
|
| |
%{mingw64_bindir}/glib-compile-resources.exe
|
| |
%{mingw64_bindir}/glib-compile-schemas.exe
|
| |
%{mingw64_bindir}/glib-genmarshal
|
| |
@@ -251,6 +234,7 @@
|
| |
%{mingw64_bindir}/gsettings.exe
|
| |
%{mingw64_bindir}/gspawn-win64-helper-console.exe
|
| |
%{mingw64_bindir}/gspawn-win64-helper.exe
|
| |
+ %{mingw64_bindir}/gtester-report
|
| |
%{mingw64_bindir}/libgio-2.0-0.dll
|
| |
%{mingw64_bindir}/libglib-2.0-0.dll
|
| |
%{mingw64_bindir}/libgmodule-2.0-0.dll
|
| |
@@ -259,8 +243,6 @@
|
| |
%{mingw64_includedir}/glib-2.0/
|
| |
%{mingw64_includedir}/gio-win32-2.0/
|
| |
%{mingw64_libdir}/glib-2.0/
|
| |
- %dir %{mingw64_libdir}/gio/
|
| |
- %dir %{mingw64_libdir}/gio/modules/
|
| |
%{mingw64_libdir}/libgio-2.0.dll.a
|
| |
%{mingw64_libdir}/libglib-2.0.dll.a
|
| |
%{mingw64_libdir}/libgmodule-2.0.dll.a
|
| |
@@ -289,6 +271,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Aug 15 2019 Fabiano Fidêncio <fidencio@redhat.com> - 2.61.2-1
|
| |
+ - Update to 2.61.2
|
| |
+
|
| |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.58.3-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
|
| |
Please, take a careful look on whether the patches are still needed.
Anyways, I've updated them so they'd apply cleanly on 2.61.2, switched to use meson.
Both local and scratch build passed: http://koji.fedoraproject.org/koji/taskinfo?taskID=37057553