LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mingw64-glib2.spec of Package mingw64-glib2 (Project home:Ximi1970:Toolchains:MinGW:latest:win64)

#
# spec file for package mingw64-glib2
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw64-glib2
Version:        2.48.1
Release:        0
Summary:        MinGW Windows GLib2 library
License:        LGPL-2.0+
Group:          Development/Libraries/GNOME
Url:            http://www.gtk.org/
Source:         http://download.gnome.org/sources/glib/2.48/glib-%{version}.tar.xz
Source1:        %{name}-rpmlintrc
#This patch is needed by gnumeric
#XXX: shouldn't gnumeric use g_option_context_parse_strv (added in 2.40.0)?
Patch0:         glib-2.44.0-goption-disable-localization.patch
# Native version for glib-genmarshal
BuildRequires:  autoconf
BuildRequires:  automake
# Native version for msgfmt
BuildRequires:  gettext-runtime
BuildRequires:  glib2-devel >= 2.31.0
#!BuildIgnore: post-build-checks
BuildRequires:  gtk-doc
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-dbus-1-devel
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libffi-devel
BuildRequires:  mingw64-libintl-devel
BuildRequires:  mingw64-win_iconv-devel
BuildRequires:  mingw64-zlib-devel
BuildRequires:  python
BuildRequires:  python-xml
BuildRequires:  xz
Requires:       %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{_mingw64_package_header_debug}
BuildArch:      noarch

%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 -n mingw64-libglib-2_0-0
Summary:        General-Purpose Utility Library
License:        LGPL-2.0+
Group:          System/Libraries
# need the spawn helper programs
Requires:       %{name} >= %{version}

%description -n mingw64-libglib-2_0-0
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.

%package -n mingw64-libgmodule-2_0-0
Summary:        General-Purpose Utility Library -- Library for Modules
License:        LGPL-2.0+
Group:          System/Libraries

%description -n mingw64-libgmodule-2_0-0
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.

The libgmodule library provides a portable way to dynamically load
object files (commonly known as 'plug-ins').

%package -n mingw64-libgio-2_0-0
Summary:        General-Purpose Utility Library -- Library for VFS
License:        LGPL-2.0+
Group:          System/Libraries

%description -n mingw64-libgio-2_0-0
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.

GIO provides a modern, easy-to-use VFS API.

%package -n mingw64-libgthread-2_0-0
Summary:        General-Purpose Utility Library -- Library for Threads
License:        LGPL-2.0+
Group:          System/Libraries

%description -n mingw64-libgthread-2_0-0
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.

The libgthread library provides a portable way to write multi-threaded
software.

%package -n mingw64-libgobject-2_0-0
Summary:        General-Purpose Utility Library -- Object-Oriented Framework for C
License:        LGPL-2.0+
Group:          System/Libraries

%description -n mingw64-libgobject-2_0-0
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.

The GObject library provides an object-oriented framework for C.

%package tools
Summary:        MinGW Windows GLib2 library (tools)
License:        LGPL-2.1+
Group:          Development/Tools/Other

%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)
License:        LGPL-2.0+
Group:          Development/Libraries/C and C++

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

%_mingw64_debug_package

%lang_package

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

%patch0 -p1

%build
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --with-pcre=internal
make %{?_smp_mflags} || make

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

chmod -x %{buildroot}%{_mingw64_libdir}/*.def
rm -f %{buildroot}%{_mingw64_libdir}/charset.alias

%find_lang glib20

%files
%defattr(-,root,root)
%{_mingw64_bindir}/gspawn-*-helper-console.exe
%{_mingw64_bindir}/gspawn-*-helper.exe

%files -n mingw64-libgio-2_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgio-2.0-0.dll

%files -n mingw64-libglib-2_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libglib-2.0-0.dll

%files -n mingw64-libgmodule-2_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgmodule-2.0-0.dll

%files -n mingw64-libgobject-2_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgobject-2.0-0.dll

%files -n mingw64-libgthread-2_0-0
%defattr(-,root,root)
%{_mingw64_bindir}/libgthread-2.0-0.dll

%files lang -f glib20.lang
%defattr(-,root,root)

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

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

%changelog