File mingw32-glib2.spec of Package mingw32-glib2

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-glib2
Version:        2.34.1
Release:        0
Summary:        MinGW Windows GLib2 library

License:        LGPLv2+
Group:          Development/Libraries
Url:            http://www.gtk.org/
Source:         http://download.gnome.org/sources/glib/2.34/glib-%{version}.tar.xz
Source1:        %{name}-rpmlintrc
#This patch is needed by gnumeric
Patch0:         glib-goption-disable-localization.patch


BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-win_iconv-devel
BuildRequires:  mingw32-libintl-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  mingw32-dbus-1-devel
BuildRequires:  mingw32-libffi-devel
BuildRequires:  gtk-doc
# Native version for msgfmt
BuildRequires:  gettext-runtime
# Native version for glib-genmarshal
BuildRequires:  glib2-devel >= 2.31.0
BuildRequires:  python python-xml
BuildRequires:  xz
BuildRequires:  autoconf automake libtool
Requires:       %{name}-lang = %{version}

%description
GLib provides the core application building blocks for libraries and applications written in C. It provides the core
object system used in GNOME, the main loop implementation, and a large set of utility functions for strings and common
data structures.


%package tools
License:        LGPLv2.1+
Summary:        MinGW Windows GLib2 library (tools)
Group:          Development/Libraries/C and C++

%description tools
GLib provides the core application building blocks for libraries and applications written in C. It provides the core
object system used in GNOME, the main loop implementation, and a large set of utility functions for strings and common
data structures.


%package devel
Summary:        MinGW Windows GLib2 library (development tools)
Group:          Development/Libraries

%description devel
Development files needed for building applications against the GLib library.


%{_mingw32_debug_package}

%lang_package

%prep
%setup -q -n glib-%{version}

%patch0 -p0 -b .delocalize


%build
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure}
make %{?_smp_mflags} || make


%install
make DESTDIR=$RPM_BUILD_ROOT install

chmod -x $RPM_BUILD_ROOT%{_mingw32_libdir}/*.def
rm -f $RPM_BUILD_ROOT%{_mingw32_libdir}/charset.alias

%find_lang glib20


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/gspawn-*-helper-console.exe
%{_mingw32_bindir}/gspawn-*-helper.exe
%{_mingw32_bindir}/libgio-2.0-0.dll
%{_mingw32_bindir}/libglib-2.0-0.dll
%{_mingw32_bindir}/libgmodule-2.0-0.dll
%{_mingw32_bindir}/libgobject-2.0-0.dll
%{_mingw32_bindir}/libgthread-2.0-0.dll

%files lang -f glib20.lang

%files tools
%defattr(-,root,root)
%{_mingw32_datadir}/bash-completion/completions/gdbus
%{_mingw32_datadir}/bash-completion/completions/gresource
%{_mingw32_datadir}/bash-completion/completions/gsettings
%{_mingw32_bindir}/gdbus.exe
%{_mingw32_bindir}/gio-querymodules.exe
%{_mingw32_bindir}/glib-compile-schemas.exe
%{_mingw32_bindir}/glib-compile-resources.exe
%{_mingw32_bindir}/gresource.exe
%{_mingw32_bindir}/gsettings.exe
%{_mingw32_mandir}/man1/gdbus.1*
%{_mingw32_mandir}/man1/gio-querymodules.1*
%{_mingw32_mandir}/man1/glib-compile-schemas.1*
%{_mingw32_mandir}/man1/glib-compile-resources.1*
%{_mingw32_mandir}/man1/gresource.1*
%{_mingw32_mandir}/man1/gsettings.1*

%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/glib-genmarshal.exe
%{_mingw32_bindir}/glib-gettextize
%{_mingw32_bindir}/glib-mkenums
%{_mingw32_bindir}/gobject-query.exe
%{_mingw32_bindir}/gdbus-codegen
%{_mingw32_includedir}/glib-2.0/
%{_mingw32_includedir}/gio-win32-2.0/
%{_mingw32_libdir}/gio-2.0.def
%{_mingw32_libdir}/glib-2.0.def
%{_mingw32_libdir}/glib-2.0/
%{_mingw32_libdir}/gdbus-2.0/codegen/
%{_mingw32_libdir}/gmodule-2.0.def
%{_mingw32_libdir}/gobject-2.0.def
%{_mingw32_libdir}/gthread-2.0.def
%{_mingw32_libdir}/libgio-2.0.dll.a
%{_mingw32_libdir}/libglib-2.0.dll.a
%{_mingw32_libdir}/libgmodule-2.0.dll.a
%{_mingw32_libdir}/libgobject-2.0.dll.a
%{_mingw32_libdir}/libgthread-2.0.dll.a
%{_mingw32_libdir}/pkgconfig/gio-2.0.pc
%{_mingw32_libdir}/pkgconfig/gio-windows-2.0.pc
%{_mingw32_libdir}/pkgconfig/glib-2.0.pc
%{_mingw32_libdir}/pkgconfig/gmodule-2.0.pc
%{_mingw32_libdir}/pkgconfig/gmodule-export-2.0.pc
%{_mingw32_libdir}/pkgconfig/gmodule-no-export-2.0.pc
%{_mingw32_libdir}/pkgconfig/gobject-2.0.pc
%{_mingw32_libdir}/pkgconfig/gthread-2.0.pc
%{_mingw32_datadir}/aclocal/glib-2.0.m4
%{_mingw32_datadir}/aclocal/glib-gettext.m4
%{_mingw32_datadir}/aclocal/gsettings.m4
%{_mingw32_datadir}/glib-2.0/
%{_mingw32_datadir}/gtk-doc/html/gio/
%{_mingw32_datadir}/gtk-doc/html/glib/
%{_mingw32_datadir}/gtk-doc/html/gobject/
%{_mingw32_datadir}/gdb/auto-load/
%{_mingw32_mandir}/man1/glib-genmarshal.1*
%{_mingw32_mandir}/man1/glib-gettextize.1*
%{_mingw32_mandir}/man1/glib-mkenums.1*
%{_mingw32_mandir}/man1/gobject-query.1*
%{_mingw32_mandir}/man1/gtester-report.1*
%{_mingw32_mandir}/man1/gtester.1*
%{_mingw32_mandir}/man1/gdbus-codegen.1.gz

%changelog
openSUSE Build Service is sponsored by