2022-06-21 21:01:43 +00:00
|
|
|
Name: glib2
|
2022-07-14 13:11:18 +00:00
|
|
|
Version: 2.73.2
|
2021-07-12 20:42:05 +00:00
|
|
|
Release: %autorelease
|
2016-09-13 07:46:00 +00:00
|
|
|
Summary: A library of handy utility functions
|
|
|
|
|
2007-08-02 20:22:45 +00:00
|
|
|
License: LGPLv2+
|
2022-06-21 21:01:43 +00:00
|
|
|
URL: https://www.gtk.org
|
2022-04-14 15:07:59 +00:00
|
|
|
Source0: https://download.gnome.org/sources/glib/2.72/glib-%{version}.tar.xz
|
2020-04-28 06:20:28 +00:00
|
|
|
|
2021-06-17 15:45:30 +00:00
|
|
|
# Required for RHEL core crypto components policy. Good for Fedora too.
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1630260
|
2020-11-10 22:52:14 +00:00
|
|
|
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
|
2020-11-11 15:45:07 +00:00
|
|
|
Patch0: gnutls-hmac.patch
|
2020-11-10 22:52:14 +00:00
|
|
|
|
2021-02-19 18:38:31 +00:00
|
|
|
# Add patches to move applications into systemd scopes in compliance with
|
|
|
|
# https://systemd.io/DESKTOP_ENVIRONMENTS/
|
|
|
|
# Proposed upstream at https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1596
|
2021-06-17 15:45:30 +00:00
|
|
|
Patch1: gdesktopappinfo.patch
|
2021-02-19 18:38:31 +00:00
|
|
|
|
2022-07-26 21:00:37 +00:00
|
|
|
# Backported from upstream to fix GRegex on s390x
|
|
|
|
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2840
|
|
|
|
Patch2: 2840.patch
|
2022-07-27 10:36:23 +00:00
|
|
|
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2838
|
|
|
|
Patch3: 2838.patch
|
2022-07-26 21:00:37 +00:00
|
|
|
|
2022-08-15 12:50:44 +00:00
|
|
|
# Backported from upstream
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2109145
|
|
|
|
Patch4: 0001-gmain-close-pidfd-when-finalizing-GChildWatchSource.patch
|
|
|
|
|
2019-01-03 12:30:11 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
2004-09-09 05:18:52 +00:00
|
|
|
BuildRequires: gettext
|
2019-01-03 12:57:37 +00:00
|
|
|
BuildRequires: gtk-doc
|
2017-08-07 20:45:26 +00:00
|
|
|
BuildRequires: perl-interpreter
|
2008-01-08 14:00:58 +00:00
|
|
|
# for sys/inotify.h
|
|
|
|
BuildRequires: glibc-devel
|
2017-03-01 12:39:52 +00:00
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: libselinux-devel
|
2019-01-03 12:57:37 +00:00
|
|
|
BuildRequires: meson
|
2010-08-02 22:03:50 +00:00
|
|
|
# for sys/sdt.h
|
|
|
|
BuildRequires: systemtap-sdt-devel
|
2017-03-01 12:39:52 +00:00
|
|
|
BuildRequires: pkgconfig(libelf)
|
|
|
|
BuildRequires: pkgconfig(libffi)
|
2022-07-14 13:11:18 +00:00
|
|
|
BuildRequires: pkgconfig(libpcre2-8)
|
2017-03-01 12:39:52 +00:00
|
|
|
BuildRequires: pkgconfig(mount)
|
2021-02-24 10:22:20 +00:00
|
|
|
BuildRequires: pkgconfig(sysprof-capture-4)
|
2017-03-01 12:39:52 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2015-11-27 18:17:55 +00:00
|
|
|
BuildRequires: python3-devel
|
2021-10-05 20:39:54 +00:00
|
|
|
BuildRequires: /usr/bin/marshalparser
|
2009-09-23 20:16:27 +00:00
|
|
|
|
2021-06-17 15:45:30 +00:00
|
|
|
# For gnutls-hmac.patch. We now dlopen libgnutls.so.30 so that we can build a
|
|
|
|
# static glib2 without depending on a static build of GnuTLS as well. This will
|
|
|
|
# ensure we notice if the GnuTLS soname bumps, so that we can update our patch.
|
2021-06-17 15:59:07 +00:00
|
|
|
%if 0%{?__isa_bits} == 64
|
2021-06-17 15:45:30 +00:00
|
|
|
Requires: libgnutls.so.30()(64bit)
|
|
|
|
%else
|
2021-06-17 20:55:12 +00:00
|
|
|
Requires: libgnutls.so.30
|
2021-06-17 15:45:30 +00:00
|
|
|
%endif
|
|
|
|
|
2021-01-22 13:23:38 +00:00
|
|
|
# Remove gamin dependency
|
|
|
|
Obsoletes: glib2-fam < 2.67.1-3
|
|
|
|
|
2021-05-05 13:37:39 +00:00
|
|
|
Provides: bundled(gnulib)
|
|
|
|
Provides: bundled(gvdb)
|
|
|
|
Provides: bundled(libcharset)
|
|
|
|
Provides: bundled(xdgmime)
|
|
|
|
|
2009-03-12 13:41:37 +00:00
|
|
|
%description
|
2010-03-28 04:32:39 +00:00
|
|
|
GLib is the low-level core library that forms the basis for projects
|
|
|
|
such as GTK+ and GNOME. It provides data structure handling for C,
|
|
|
|
portability wrappers, and interfaces for such runtime functionality
|
|
|
|
as an event loop, threads, dynamic loading, and an object system.
|
2004-09-09 05:16:47 +00:00
|
|
|
|
2011-01-22 15:20:04 +00:00
|
|
|
|
2004-09-09 05:16:47 +00:00
|
|
|
%package devel
|
2007-02-03 18:39:01 +00:00
|
|
|
Summary: A library of handy utility functions
|
2013-05-28 23:34:23 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2004-09-09 05:16:47 +00:00
|
|
|
|
|
|
|
%description devel
|
2010-03-28 04:32:39 +00:00
|
|
|
The glib2-devel package includes the header files for the GLib library.
|
2004-09-09 05:16:47 +00:00
|
|
|
|
2012-10-10 12:09:39 +00:00
|
|
|
%package doc
|
|
|
|
Summary: A library of handy utility functions
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The glib2-doc package includes documentation for the GLib library.
|
|
|
|
|
2013-12-22 20:58:19 +00:00
|
|
|
%package static
|
|
|
|
Summary: glib static
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
2022-07-26 08:03:18 +00:00
|
|
|
Requires: pcre2-static
|
|
|
|
Requires: sysprof-capture-static
|
2013-12-22 20:58:19 +00:00
|
|
|
|
|
|
|
%description static
|
|
|
|
The %{name}-static subpackage contains static libraries for %{name}.
|
|
|
|
|
2013-05-28 23:34:23 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for the glib2 package
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
The glib2-tests package contains tests that can be used to verify
|
|
|
|
the functionality of the installed glib2 package.
|
|
|
|
|
2004-09-09 05:17:06 +00:00
|
|
|
%prep
|
2017-08-07 20:45:26 +00:00
|
|
|
%autosetup -n glib-%{version} -p1
|
2013-06-20 17:48:48 +00:00
|
|
|
|
2008-09-18 01:09:53 +00:00
|
|
|
%build
|
2019-01-03 12:57:37 +00:00
|
|
|
%meson \
|
|
|
|
-Dman=true \
|
|
|
|
-Ddtrace=true \
|
|
|
|
-Dsystemtap=true \
|
2021-02-24 10:22:20 +00:00
|
|
|
-Dsysprof=enabled \
|
2021-03-08 08:36:55 +00:00
|
|
|
-Dglib_debug=disabled \
|
2019-01-03 12:57:37 +00:00
|
|
|
-Dgtk_doc=true \
|
2020-11-11 15:45:07 +00:00
|
|
|
-Dinstalled_tests=true \
|
|
|
|
-Dgnutls=true \
|
|
|
|
--default-library=both \
|
|
|
|
%{nil}
|
2019-01-03 12:57:37 +00:00
|
|
|
|
|
|
|
%meson_build
|
2006-11-20 05:31:21 +00:00
|
|
|
|
2004-09-09 05:17:06 +00:00
|
|
|
%install
|
2019-01-03 12:57:37 +00:00
|
|
|
%meson_install
|
2021-10-05 20:39:54 +00:00
|
|
|
|
|
|
|
# We need reproducible .pyc files across architectures to support multilib installations
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2008912
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
|
|
|
|
%global py_reproducible_pyc_path %{buildroot}%{_datadir}
|
|
|
|
|
|
|
|
# Since this is a generated .py file, set it to a known timestamp
|
|
|
|
# because the source timestamp is baked into the .pyc file
|
2019-03-06 13:54:06 +00:00
|
|
|
# Also copy the timestamp for other .py files, because meson doesn't
|
|
|
|
# do this, see https://github.com/mesonbuild/meson/issues/5027.
|
2019-06-11 08:06:50 +00:00
|
|
|
touch -r gio/gdbus-2.0/codegen/config.py.in %{buildroot}%{_datadir}/glib-2.0/codegen/*.py
|
2021-10-05 20:39:54 +00:00
|
|
|
|
2019-03-06 13:54:06 +00:00
|
|
|
# Perform byte compilation manually to avoid issues with
|
|
|
|
# irreproducibility of the default invalidation mode, see
|
2019-03-13 09:12:53 +00:00
|
|
|
# https://www.python.org/dev/peps/pep-0552/ and
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1686078
|
2021-10-05 20:39:54 +00:00
|
|
|
%py_byte_compile %{python3} %{buildroot}%{_datadir}
|
2019-03-06 13:54:06 +00:00
|
|
|
|
2020-06-22 10:12:39 +00:00
|
|
|
mv %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-%{__isa_bits}
|
|
|
|
sed -i -e "/^gio_querymodules=/s/gio-querymodules/gio-querymodules-%{__isa_bits}/" %{buildroot}%{_libdir}/pkgconfig/gio-2.0.pc
|
2010-04-19 23:59:51 +00:00
|
|
|
|
2020-12-04 12:33:13 +00:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/gio/modules
|
2019-06-11 08:06:50 +00:00
|
|
|
touch %{buildroot}%{_libdir}/gio/modules/giomodule.cache
|
2011-06-09 06:12:37 +00:00
|
|
|
|
2004-09-09 05:17:06 +00:00
|
|
|
%find_lang glib20
|
|
|
|
|
2015-08-14 15:55:58 +00:00
|
|
|
%transfiletriggerin -- %{_libdir}/gio/modules
|
2017-03-20 10:06:22 +00:00
|
|
|
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
|
2010-01-25 21:48:08 +00:00
|
|
|
|
2015-08-14 15:55:58 +00:00
|
|
|
%transfiletriggerpostun -- %{_libdir}/gio/modules
|
2017-03-20 10:06:22 +00:00
|
|
|
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
|
2004-09-09 05:17:06 +00:00
|
|
|
|
2015-08-14 15:55:58 +00:00
|
|
|
%transfiletriggerin -- %{_datadir}/glib-2.0/schemas
|
2017-03-20 10:06:22 +00:00
|
|
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
2015-08-14 15:55:58 +00:00
|
|
|
|
|
|
|
%transfiletriggerpostun -- %{_datadir}/glib-2.0/schemas
|
2017-03-20 10:06:22 +00:00
|
|
|
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
2004-09-09 05:17:06 +00:00
|
|
|
|
|
|
|
%files -f glib20.lang
|
2022-06-21 21:01:43 +00:00
|
|
|
%license LICENSES/LGPL-2.1-or-later.txt
|
|
|
|
%doc NEWS README.md
|
2022-07-18 19:45:10 +00:00
|
|
|
%{_libdir}/libglib-2.0.so.0*
|
|
|
|
%{_libdir}/libgthread-2.0.so.0*
|
|
|
|
%{_libdir}/libgmodule-2.0.so.0*
|
|
|
|
%{_libdir}/libgobject-2.0.so.0*
|
|
|
|
%{_libdir}/libgio-2.0.so.0*
|
2012-06-26 04:49:47 +00:00
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
2013-10-29 08:40:11 +00:00
|
|
|
%{_datadir}/bash-completion/completions/gapplication
|
2018-09-05 14:36:53 +00:00
|
|
|
%{_datadir}/bash-completion/completions/gdbus
|
2018-08-02 09:13:04 +00:00
|
|
|
%{_datadir}/bash-completion/completions/gio
|
2018-09-05 14:36:53 +00:00
|
|
|
%{_datadir}/bash-completion/completions/gsettings
|
2010-05-15 03:05:10 +00:00
|
|
|
%dir %{_datadir}/glib-2.0
|
|
|
|
%dir %{_datadir}/glib-2.0/schemas
|
2008-06-17 03:38:55 +00:00
|
|
|
%dir %{_libdir}/gio
|
|
|
|
%dir %{_libdir}/gio/modules
|
2011-06-09 06:12:37 +00:00
|
|
|
%ghost %{_libdir}/gio/modules/giomodule.cache
|
2016-07-17 19:30:58 +00:00
|
|
|
%{_bindir}/gio
|
2010-01-25 21:48:08 +00:00
|
|
|
%{_bindir}/gio-querymodules*
|
2010-04-24 01:13:47 +00:00
|
|
|
%{_bindir}/glib-compile-schemas
|
2010-04-23 11:02:50 +00:00
|
|
|
%{_bindir}/gsettings
|
2010-05-15 02:51:25 +00:00
|
|
|
%{_bindir}/gdbus
|
2013-10-29 08:40:11 +00:00
|
|
|
%{_bindir}/gapplication
|
2016-07-17 19:30:58 +00:00
|
|
|
%{_mandir}/man1/gio.1*
|
2015-02-18 17:27:59 +00:00
|
|
|
%{_mandir}/man1/gio-querymodules.1*
|
|
|
|
%{_mandir}/man1/glib-compile-schemas.1*
|
|
|
|
%{_mandir}/man1/gsettings.1*
|
|
|
|
%{_mandir}/man1/gdbus.1*
|
|
|
|
%{_mandir}/man1/gapplication.1*
|
2004-09-09 05:17:06 +00:00
|
|
|
|
|
|
|
%files devel
|
2007-02-10 04:56:34 +00:00
|
|
|
%{_libdir}/lib*.so
|
2006-05-25 14:21:04 +00:00
|
|
|
%{_libdir}/glib-2.0
|
2004-09-09 05:17:06 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_datadir}/aclocal/*
|
|
|
|
%{_libdir}/pkgconfig/*
|
2010-05-15 03:13:50 +00:00
|
|
|
%{_datadir}/glib-2.0/gdb
|
2010-05-17 19:14:51 +00:00
|
|
|
%{_datadir}/glib-2.0/gettext
|
2010-04-19 23:27:40 +00:00
|
|
|
%{_datadir}/glib-2.0/schemas/gschema.dtd
|
2017-02-13 13:14:22 +00:00
|
|
|
%{_datadir}/glib-2.0/valgrind/glib.supp
|
2012-06-26 05:02:20 +00:00
|
|
|
%{_datadir}/bash-completion/completions/gresource
|
2010-03-10 05:31:02 +00:00
|
|
|
%{_bindir}/glib-genmarshal
|
|
|
|
%{_bindir}/glib-gettextize
|
|
|
|
%{_bindir}/glib-mkenums
|
|
|
|
%{_bindir}/gobject-query
|
|
|
|
%{_bindir}/gtester
|
2011-05-06 12:17:50 +00:00
|
|
|
%{_bindir}/gdbus-codegen
|
2012-01-17 04:39:46 +00:00
|
|
|
%{_bindir}/glib-compile-resources
|
2012-02-06 23:24:22 +00:00
|
|
|
%{_bindir}/gresource
|
2012-10-10 12:09:39 +00:00
|
|
|
%{_datadir}/glib-2.0/codegen
|
2010-03-10 05:31:02 +00:00
|
|
|
%attr (0755, root, root) %{_bindir}/gtester-report
|
2015-02-18 17:27:59 +00:00
|
|
|
%{_mandir}/man1/glib-genmarshal.1*
|
|
|
|
%{_mandir}/man1/glib-gettextize.1*
|
|
|
|
%{_mandir}/man1/glib-mkenums.1*
|
|
|
|
%{_mandir}/man1/gobject-query.1*
|
|
|
|
%{_mandir}/man1/gtester-report.1*
|
|
|
|
%{_mandir}/man1/gtester.1*
|
|
|
|
%{_mandir}/man1/gdbus-codegen.1*
|
|
|
|
%{_mandir}/man1/glib-compile-resources.1*
|
|
|
|
%{_mandir}/man1/gresource.1*
|
2016-08-18 06:42:40 +00:00
|
|
|
%{_datadir}/gdb/
|
2016-01-19 11:50:02 +00:00
|
|
|
%{_datadir}/gettext/
|
2016-08-18 06:42:40 +00:00
|
|
|
%{_datadir}/systemtap/
|
2009-09-23 01:26:50 +00:00
|
|
|
|
2012-10-10 12:09:39 +00:00
|
|
|
%files doc
|
2021-02-04 20:30:48 +00:00
|
|
|
%{_datadir}/gtk-doc/
|
2012-10-10 12:09:39 +00:00
|
|
|
|
2013-12-22 20:58:19 +00:00
|
|
|
%files static
|
|
|
|
%{_libdir}/libgio-2.0.a
|
|
|
|
%{_libdir}/libglib-2.0.a
|
|
|
|
%{_libdir}/libgmodule-2.0.a
|
|
|
|
%{_libdir}/libgobject-2.0.a
|
|
|
|
%{_libdir}/libgthread-2.0.a
|
|
|
|
|
2013-05-28 23:34:23 +00:00
|
|
|
%files tests
|
2013-06-20 10:52:35 +00:00
|
|
|
%{_libexecdir}/installed-tests
|
2013-05-28 23:34:23 +00:00
|
|
|
%{_datadir}/installed-tests
|
|
|
|
|
2004-09-09 05:16:47 +00:00
|
|
|
%changelog
|
2021-07-12 20:42:05 +00:00
|
|
|
%autochangelog
|