2023-09-16 19:37:14 +00:00
|
|
|
Name: glib2
|
2024-07-10 16:28:32 +00:00
|
|
|
Version: 2.80.4
|
2023-09-16 19:37:14 +00:00
|
|
|
Release: %autorelease
|
|
|
|
Summary: A library of handy utility functions
|
2016-09-13 07:46:00 +00:00
|
|
|
|
2023-09-16 19:37:14 +00:00
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
URL: https://www.gtk.org
|
2024-04-18 18:59:08 +00:00
|
|
|
Source: https://download.gnome.org/sources/glib/2.80/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
|
2023-09-16 19:37:14 +00:00
|
|
|
Patch: gnutls-hmac.patch
|
2020-11-10 22:52:14 +00:00
|
|
|
|
2023-09-16 19:37:14 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: systemtap-sdt-devel
|
2024-01-10 22:57:33 +00:00
|
|
|
BuildRequires: pkgconfig(gi-docgen)
|
2023-09-16 19:37:14 +00:00
|
|
|
BuildRequires: pkgconfig(libelf)
|
|
|
|
BuildRequires: pkgconfig(libffi)
|
|
|
|
BuildRequires: pkgconfig(libpcre2-8)
|
|
|
|
BuildRequires: pkgconfig(mount)
|
|
|
|
BuildRequires: pkgconfig(sysprof-capture-4)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
BuildRequires: python3-devel
|
2024-01-10 22:57:33 +00:00
|
|
|
BuildRequires: /usr/bin/g-ir-scanner
|
2023-09-16 19:37:14 +00:00
|
|
|
BuildRequires: /usr/bin/marshalparser
|
2024-01-10 22:57:33 +00:00
|
|
|
BuildRequires: /usr/bin/rst2man
|
2009-09-23 20:16:27 +00:00
|
|
|
|
2024-04-30 18:24:42 +00:00
|
|
|
# Dependencies for tests
|
|
|
|
BuildRequires: shared-mime-info
|
|
|
|
BuildRequires: /usr/bin/dbus-daemon
|
|
|
|
BuildRequires: /usr/bin/update-desktop-database
|
|
|
|
|
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.
|
2024-07-10 16:17:52 +00:00
|
|
|
BuildRequires: gnutls
|
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
|
|
|
|
|
2024-04-18 19:06:12 +00:00
|
|
|
Provides: bundled(cmph)
|
|
|
|
Provides: bundled(dirent)
|
|
|
|
Provides: bundled(gnulib)
|
2021-05-05 13:37:39 +00:00
|
|
|
Provides: bundled(gvdb)
|
|
|
|
Provides: bundled(libcharset)
|
|
|
|
Provides: bundled(xdgmime)
|
|
|
|
|
2024-01-10 22:57:33 +00:00
|
|
|
# glib typelib files moved from gobject-introspection to glib2 in F40
|
|
|
|
Conflicts: gobject-introspection < 1.79.1
|
|
|
|
|
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
|
|
|
|
|
|
|
%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}
|
2024-01-15 20:20:27 +00:00
|
|
|
# Required by gdbus-codegen
|
|
|
|
Requires: python3-packaging
|
2024-01-10 22:57:33 +00:00
|
|
|
# glib gir files moved from gobject-introspection-devel to glib2-devel in F40
|
|
|
|
Conflicts: gobject-introspection-devel < 1.79.1
|
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
|
2024-01-10 23:42:12 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2012-10-10 12:09:39 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
2024-04-30 18:24:42 +00:00
|
|
|
%check
|
|
|
|
%meson_test
|
|
|
|
|
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*
|
2024-01-10 22:57:33 +00:00
|
|
|
%{_libdir}/libgirepository-2.0.so.0*
|
|
|
|
%dir %{_libdir}/girepository-1.0
|
|
|
|
%{_libdir}/girepository-1.0/GIRepository-3.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/GLib-2.0.typelib
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_libdir}/girepository-1.0/GLibUnix-2.0.typelib
|
2024-01-10 22:57:33 +00:00
|
|
|
%{_libdir}/girepository-1.0/GModule-2.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/GObject-2.0.typelib
|
|
|
|
%{_libdir}/girepository-1.0/Gio-2.0.typelib
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_libdir}/girepository-1.0/GioUnix-2.0.typelib
|
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
|
2022-08-26 18:50:54 +00:00
|
|
|
%{_libexecdir}/gio-launch-desktop
|
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/*
|
2023-08-31 11:00:15 +00:00
|
|
|
%{_datadir}/glib-2.0/dtds
|
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
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_bindir}/gi-compile-repository
|
|
|
|
%{_bindir}/gi-decompile-typelib
|
|
|
|
%{_bindir}/gi-inspect-typelib
|
2010-03-10 05:31:02 +00:00
|
|
|
%{_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*
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_mandir}/man1/gi-compile-repository.1*
|
|
|
|
%{_mandir}/man1/gi-decompile-typelib.1*
|
|
|
|
%{_mandir}/man1/gi-inspect-typelib.1*
|
2015-02-18 17:27:59 +00:00
|
|
|
%{_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/
|
2024-01-10 22:57:33 +00:00
|
|
|
%dir %{_datadir}/gir-1.0
|
|
|
|
%{_datadir}/gir-1.0/GIRepository-3.0.gir
|
|
|
|
%{_datadir}/gir-1.0/GLib-2.0.gir
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_datadir}/gir-1.0/GLibUnix-2.0.gir
|
2024-01-10 22:57:33 +00:00
|
|
|
%{_datadir}/gir-1.0/GModule-2.0.gir
|
|
|
|
%{_datadir}/gir-1.0/GObject-2.0.gir
|
|
|
|
%{_datadir}/gir-1.0/Gio-2.0.gir
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_datadir}/gir-1.0/GioUnix-2.0.gir
|
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
|
2024-05-09 19:32:20 +00:00
|
|
|
%{_datadir}/doc/gio-2.0/
|
|
|
|
%{_datadir}/doc/gio-unix-2.0/
|
|
|
|
%{_datadir}/doc/girepository-2.0/
|
2024-01-10 22:57:33 +00:00
|
|
|
%{_datadir}/doc/glib-2.0/
|
2024-05-09 19:32:20 +00:00
|
|
|
%{_datadir}/doc/glib-unix-2.0/
|
|
|
|
%{_datadir}/doc/gmodule-2.0/
|
|
|
|
%{_datadir}/doc/gobject-2.0/
|
2012-10-10 12:09:39 +00:00
|
|
|
|
2013-12-22 20:58:19 +00:00
|
|
|
%files static
|
|
|
|
%{_libdir}/libgio-2.0.a
|
2024-04-18 18:59:08 +00:00
|
|
|
%{_libdir}/libgirepository-2.0.a
|
2013-12-22 20:58:19 +00:00
|
|
|
%{_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
|