glib2/glib2.spec

423 lines
13 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:40:42 -04:00
Name: glib2
2024-02-05 03:03:36 +00:00
Version: 2.78.3
Release: 8
2019-09-30 10:40:42 -04:00
Summary: The core library that forms the basis for projects such as GTK+ and GNOME
License: LGPLv2+
2023-02-03 15:40:54 +08:00
URL: https://www.gtk.org
2024-02-05 03:03:36 +00:00
Source0: https://download.gnome.org/sources/glib/2.78/glib-%{version}.tar.xz
2022-09-05 08:06:39 +00:00
2024-02-05 03:03:36 +00:00
Patch1: gspawn-eperm.patch
Patch2: backport-gmessages-fix-dropping-irrelevant-log-domains.patch
Patch3: backport-gutils-Fix-an-unlikely-minor-leak-in-g_build_user_data_dir.patch
2024-10-24 16:48:52 +08:00
Patch4: gio-fix-filesystem-type-ext-err.patch
Patch6001: backport-CVE-2024-34397.patch
Patch6002: backport-gdbusconnection-Allow-name-owners-to-have-the-syntax-of-a-well-known-name.patch
2024-09-09 17:24:47 +08:00
Patch6003: backport-gdbusmessage-Clean-the-cached-arg0-when-setting-the-message-body.patch
Patch6004: backport-gsocketclient-Fix-a-use-after-free-in-g_socket_client_connected_callback.patch
Patch6005: backport-gcontextspecificgroup-Wait-until-stop_func-is-done.patch
Patch6006: backport-gresources-fix-memory-leak-from-libelf.patch
2024-10-25 18:14:40 +08:00
Patch6007: Correct-translation-information.patch
Patch6008: backport-CVE-2024-52533.patch
Patch6009: backport-CVE-2025-4056.patch
Patch6010: backport-CVE-2025-3360.patch
Patch6011: backport-CVE-2025-4373.patch
2022-02-19 10:20:25 +08:00
BuildRequires: chrpath gcc gcc-c++ gettext perl-interpreter
2020-01-09 15:28:42 +08:00
BUildRequires: glibc-devel libattr-devel libselinux-devel meson
BuildRequires: systemtap-sdt-devel pkgconfig(libelf) pkgconfig(libffi)
2023-01-13 01:53:57 +00:00
BuildRequires: pkgconfig(libpcre2-8) pkgconfig(mount) pkgconfig(zlib)
2022-02-19 10:20:25 +08:00
BuildRequires: python3-devel
%ifnarch i686
2023-02-03 15:40:54 +08:00
BuildRequires: desktop-file-utils shared-mime-info gtk-doc
2022-02-19 10:20:25 +08:00
%endif
2020-01-09 15:28:42 +08:00
2023-02-03 15:40:54 +08:00
Provides: %{name}-fam = %{version}-%{release}
Obsoletes: %{name}-fam < %{version}-%{release}
2019-09-30 10:40:42 -04:00
2022-06-02 15:36:36 +08:00
Recommends: shared-mime-info
2020-01-09 15:28:42 +08:00
Conflicts: gcr < 3.28.1
2023-02-03 15:40:54 +08:00
Provides: bundled(gnulib)
Provides: bundled(gvdb)
Provides: bundled(libcharset)
Provides: bundled(xdgmime)
2022-06-02 15:36:36 +08:00
2019-09-30 10:40:42 -04:00
%description
GLib is a bundle of three (formerly five) low-level system libraries
written in C and developed mainly by GNOME. GLib's code was separated
from GTK, so it can be used by software other than GNOME and has been
developed in parallel ever since.
2020-01-09 15:28:42 +08:00
%package devel
2023-02-03 15:40:54 +08:00
Summary: Development files for the GLib library
2020-01-09 15:28:42 +08:00
Requires: %{name} = %{version}-%{release}
2021-11-08 20:15:58 +08:00
Requires: gdb-headless
2020-01-09 15:28:42 +08:00
%description devel
2023-02-03 15:40:54 +08:00
Development files for the GLib library.
%package static
Summary: glib static
2023-01-13 01:53:57 +00:00
Requires: pcre2-static
Requires: %{name}-devel = %{version}-%{release}
2020-01-09 15:28:42 +08:00
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static < %{version}-%{release}
%description static
The %{name}-static subpackage contains libraries for %{name}.
%package tests
Summary: Tests for the glib2 package
Requires: %{name}-devel = %{version}-%{release}
Provides: %{name}-tests = %{version}-%{release}
2020-01-09 15:28:42 +08:00
Obsoletes: %{name}-tests < %{version}-%{release}
2019-09-30 10:40:42 -04:00
%description tests
The glib2-tests package contains tests that can be used to verify
the functionality of the installed package.
2019-09-30 10:40:42 -04:00
2022-02-19 10:20:25 +08:00
%ifnarch i686
2020-01-09 15:28:42 +08:00
%package help
Summary: help document for the glib2 package
Buildarch: noarch
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
2019-09-30 10:40:42 -04:00
2020-01-09 15:28:42 +08:00
%description help
2019-09-30 10:40:42 -04:00
help document for the glib2 package.
2022-02-19 10:20:25 +08:00
%endif
2019-09-30 10:40:42 -04:00
%prep
%autosetup -n glib-%{version} -p1
%build
2023-02-03 15:40:54 +08:00
%meson --default-library=both -Ddtrace=true \
2022-02-19 10:20:25 +08:00
%ifnarch i686
2022-03-02 14:43:15 +08:00
-Dman=true -Dgtk_doc=true \
2022-02-19 10:20:25 +08:00
%else
2024-02-05 03:03:36 +00:00
-Dman=false -Dgtk_doc=false \
2022-02-19 10:20:25 +08:00
%endif
-Dsystemtap=true -Dinstalled_tests=true \
2024-02-05 03:03:36 +00:00
-Dglib_debug=disabled -Dsysprof=disabled
2019-09-30 10:40:42 -04:00
2020-01-09 15:28:42 +08:00
%meson_build
2022-06-02 15:36:36 +08:00
find . -name *.dtrace-temp.c -exec rm -f {} \;
2019-09-30 10:40:42 -04:00
%install
2020-01-09 15:28:42 +08:00
%meson_install
2022-06-02 15:36:36 +08:00
%global py_reproducible_pyc_path %{buildroot}%{_datadir}
2020-01-09 15:28:42 +08:00
touch -r gio/gdbus-2.0/codegen/config.py.in %{buildroot}%{_datadir}/glib-2.0/codegen/*.py
chrpath --delete %{buildroot}%{_libdir}/*.so
export PYTHONHASHSEED=0
%py_byte_compile %{__python3} %{buildroot}%{_datadir}
2022-06-02 15:36:36 +08: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
mkdir -p %{buildroot}%{_libdir}/gio/modules
2020-01-09 15:28:42 +08:00
touch %{buildroot}%{_libdir}/gio/modules/giomodule.cache
2021-11-08 20:15:58 +08:00
# remove pycache
rm -rf %{buildroot}/%{_datadir}/gdb/auto-load/%{_libdir}/__pycache__
rm -rf %{buildroot}/%{_datadir}/glib-2.0/codegen/__pycache__
rm -rf %{buildroot}/%{_datadir}/glib-2.0/gdb/__pycache__
2022-03-25 11:10:04 +08:00
# remove rpath
chrpath -d %{buildroot}%{_libexecdir}/installed-tests/glib/gdbus-peer
2019-09-30 10:40:42 -04:00
%find_lang glib20
%transfiletriggerin -- %{_libdir}/gio/modules
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
%transfiletriggerpostun -- %{_libdir}/gio/modules
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || :
%transfiletriggerin -- %{_datadir}/glib-2.0/schemas
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%transfiletriggerpostun -- %{_datadir}/glib-2.0/schemas
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%files -f glib20.lang
2019-12-26 15:27:57 +08:00
%defattr(-,root,root)
2023-02-03 15:40:54 +08:00
%doc NEWS
%license LICENSES/LGPL-2.1-or-later.txt
2019-09-30 10:40:42 -04:00
%{_libdir}/*.so.*
2020-01-09 15:28:42 +08:00
%dir %{_libdir}/gio
%ghost %{_libdir}/gio/modules/giomodule.cache
%dir %{_datadir}/glib-2.0
%dir %{_datadir}/bash-completion
2019-09-30 10:40:42 -04:00
%{_datadir}/bash-completion/completions/gapplication
%{_datadir}/bash-completion/completions/gdbus
%{_datadir}/bash-completion/completions/gio
%{_datadir}/bash-completion/completions/gsettings
2020-01-09 15:28:42 +08:00
2019-09-30 10:40:42 -04:00
%{_bindir}/gio
%{_bindir}/gio-querymodules*
%{_bindir}/glib-compile-schemas
%{_bindir}/gsettings
%{_bindir}/gdbus
%{_bindir}/gapplication
%files devel
%{_libdir}/lib*.so
%{_libdir}/glib-2.0
2020-01-09 15:28:42 +08:00
%{_libdir}/pkgconfig/*
2019-09-30 10:40:42 -04:00
%{_includedir}/*
2020-01-09 15:28:42 +08:00
2023-02-03 15:40:54 +08:00
%{_libexecdir}/gio-launch-desktop
2019-09-30 10:40:42 -04:00
%{_datadir}/aclocal/*
%{_datadir}/glib-2.0/*
%{_datadir}/bash-completion/completions/gresource
2021-11-08 20:15:58 +08:00
%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py
2020-01-09 15:28:42 +08:00
%{_datadir}/gettext/
%{_datadir}/systemtap/
2019-09-30 10:40:42 -04:00
%{_bindir}/glib-genmarshal
%{_bindir}/glib-gettextize
%{_bindir}/glib-mkenums
%{_bindir}/gobject-query
%{_bindir}/gtester
%{_bindir}/gdbus-codegen
%{_bindir}/glib-compile-resources
%{_bindir}/gresource
%attr (0755, root, root) %{_bindir}/gtester-report
%files static
%{_libdir}/*.a
%files tests
%{_libexecdir}/installed-tests
%exclude %{_libexecdir}/installed-tests/glib/cert-tests
%exclude %{_libexecdir}/installed-tests/glib/tls-certificate
%{_datadir}/installed-tests
%exclude %{_datadir}/installed-tests/glib/tls-certificate.test
2022-02-19 10:20:25 +08:00
%ifnarch i686
2019-09-30 10:40:42 -04:00
%files help
2019-12-26 15:27:57 +08:00
%defattr(-,root,root)
2019-09-30 10:40:42 -04:00
%{_mandir}/man1/*
%doc %{_datadir}/gtk-doc/html/*
2022-02-19 10:20:25 +08:00
%endif
2019-09-30 10:40:42 -04:00
%changelog
* Sat May 10 2025 Funda Wang <fundawang@yeah.net> - 2.78.3-8
- fix CVE-2025-3360, CVE-2025-4373
- fix symlink of COYPING
2025-05-07 03:21:13 +00:00
* Wed May 7 2025 hanhuihui <hanhuihui5@huawei.com> - 2.78.3-7
- fix CVE-2025-4056
* Tue Nov 12 2024 liningjie <liningjie@xfusion.com> - 2.78.3-6
- Fix CVE-2024-52533
2024-10-25 18:14:40 +08:00
* Fri Oct 25 2024 GuoCe <guoce@kylinos.cn> - 2.78.3-5
- Correct translation information
2024-10-24 16:48:52 +08:00
* Thu Oct 24 2024 litenglong <litenglong@kylinos.cn> - 2.78.3-4
- fix filesystem type ext err
2024-09-09 17:24:47 +08:00
* Mon Sep 9 2024 zhangzikang <zhangzikang@kylinos.cn> - 2.78.3-3
- backport patch:
backport-gdbusmessage-Clean-the-cached-arg0-when-setting-the-message-body.patch
backport-gsocketclient-Fix-a-use-after-free-in-g_socket_client_connected_callback.patch
backport-gcontextspecificgroup-Wait-until-stop_func-is-done.patch
backport-gresources-fix-memory-leak-from-libelf.patch
* Tue Jun 18 2024 hanhuihui <hanhuihui5@huawei.com> - 2.78.3-2
- fix CVE-2024-34397
2024-02-05 03:03:36 +00:00
* Mon Feb 5 2024 hanhuihui <hanhuihui5@huawei.com> - 2.78.3-1
- Update to 2.78.3
* Thu Jan 11 2024 hanhuihui <hanhuihui5@huawei.com> - 2.76.4-3
- fix pcre2 error , memory leak and log domains error
2023-08-19 19:54:48 +08:00
* Sat Aug 19 2023 hanhuihui <hanhuihui5@huawei.com> - 2.76.4-2
- fix group comment management
2023-07-24 17:14:21 +08:00
* Mon Jul 24 2023 dillon chen <dillon.chen@gmail.com> - 2.76.4-1
- Update to 2.76.4
* Sat Jul 15 2023 hanhuihui <hanhuihui5@huawei.com> - 2.74.4-3
- Align G_FILE_MEASURE_APPARENT_SIZE behaviour with du from GNU coreutils
* Tue Mar 14 2023 hanhuihui <hanhuihui5@huawei.com> - 2.74.4-2
- fix a use-after-free of a GDBusMethodInvocation
2023-02-03 15:40:54 +08:00
* Mon Jan 2 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 2.74.4-1
- Update to 2.74.1
2023-01-13 01:53:57 +00:00
* Tue Jan 10 2023 hanhuihui <hanhuihui5@huawei.com> - 2.72.2-7
- adjust pcre2 requires
2022-12-27 02:17:24 +00:00
* Tue Dec 27 2022 hanhuihui <hanhuihui5@huawei.com> - 2.72.2-6
- fix some pcre2 error
* Wed Nov 9 2022 hanhuihui <hanhuihui5@huawei.com> - 2.72.2-5
- separate the test and static package from devel package
2022-10-15 16:53:10 +08:00
* Sat Oct 15 2022 hanhuihui <hanhuihui5@huawei.com> - 2.72.2-4
- backport some patches from community
2022-09-05 08:06:39 +00:00
* Mon Sep 5 2022 hanhuihui <hanhuihui5@huawei.com> - 2.72.2-3
- replace pcre1 with pcre2
2022-06-18 15:58:04 +08:00
* Sat Jun 18 2022 zhujunhao <zhujunhao11@huawei.com> - 2.72.2-2
- remove gnutls require
2022-06-08 17:31:25 +08:00
* Mon Jun 6 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.72.2-1
- Update to 2.72.2
* Thu Jun 2 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 2.72.0-1
2022-06-02 15:36:36 +08:00
- Update to 2.72.0
2022-04-28 15:46:40 +08:00
* Thu Apr 28 2022 yanan <yanan@huawei.com> - 2.68.1-12
- Type:bugfix
- DESC:fix issues found by svace static code analyzer
fix segfault,memory leak,EOF,arguments leak
* Wed Apr 6 2022 hanhui <hanhui15@h-partners.com> - 2.68.1-11
- DESC:fix gfileenumerator/gdbusobjectmanagerservice/gdbusauth of memory leak
2022-03-25 11:10:04 +08:00
* Fri Mar 11 2022 weijin deng <weijin.deng@turbolinux.com.cn> - 2.68.1-10
- Type:bugfix
- DESC:solve glib2 enable "glib2_debug" option causes gnome-calendar reopen
coredumped in gtk3's _gtk_widget_get_toplevel()
2022-03-25 11:10:04 +08:00
* Wed Mar 9 2022 yangcheng<yangcheng87@h-partners.com> - 2.68.1-9
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:remove gdbus-peer rpath compile option
2022-03-02 14:43:15 +08:00
* Wed Mar 2 2022 hanhui<hanhui15@h-partners.com> - 2.68.1-8
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:custom installation depend on sysprof
2022-02-19 10:20:25 +08:00
* Sat Feb 19 2022 wangkerong<wangkerong@h-partners.com> - 2.68.1-7
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add i686 optionsfix build failure on i686
* Sun Nov 14 2021 fengtao<fengtao40@huawei.com> - 2.68.1-6
2021-11-08 20:15:58 +08:00
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add require gdb-headless for devel
2021-09-14 16:13:39 +08:00
* Tue Sep 14 2021 yangcheng<yangcheng87@huawei.com> - 2.68.1-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Drop dependebcy on gamin
2021-09-07 11:44:28 +08:00
* Tue Sep 7 2021 fengtao<fengtao40@huawei.com> - 2.68.1-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:enable all tests
2021-08-14 09:46:09 +08:00
* Sat Aug 14 2021 liuyumeng<liuyumeng5@huawei.com> - 2.68.1-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix a memory leak
2021-08-10 16:51:53 +08:00
* Tue Aug 10 2021 liuyumeng<liuyumeng5@huawei.com> - 2.68.1-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix the third parameter of clise-range
* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.68.1-1
- Upgrade to 2.68.1 because gnome-builder and more new gnome applications
need function g_memdup2 which needs glib2 ≥2.67.3 to instead of g_memdup
* Wed May 19 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.66.8-1
- Upgrade to 2.66.8
- Update Version, Release
- Delete patch files, delete gio-launch-desktop(not exist in 2.66.8)
- Correct date, make it match weekday
2021-04-13 14:24:45 +08:00
* Tue Apr 13 2021 hanhui<hanhui15@huawei.com> - 2.62.5-5
- Type:cve
- Id:CVE-2021-28153
- SUG:NA
- DESC:fix CVE-2021-28153
2021-03-06 14:09:50 +08:00
* Sat Mar 6 2021 hanhui<hanhui15@huawei.com> - 2.62.5-4
- Type:cve
- Id:CVE-2021-27219
- SUG:NA
- DESC:fix CVE-2021-27219
2021-03-01 17:28:42 +08:00
* Mon Mar 1 2021 jinzhimin<jinzhimin2@huawei.com> - 2.62.5-3
- Type:cve
- Id:CVE-2021-27218
- SUG:NA
- DESC:fix CVE-2021-27218
2021-02-27 11:44:30 +08:00
* Sat Feb 27 2021 zhujunhao<zhujunhao8@huawei.com> - 2.62.5-2
- Type:cve
- Id:CVE-2020-35457
- SUG:NA
- DESC:fix CVE-2020-35457
* Tue Jul 21 2020 hanhui<hanhui15@huawei.com> - 2.62.5-1
2020-07-21 16:13:14 +08:00
- Update to 2.62.5
* Mon Mar 2 2020 hexiujun<hexiujun1@huawei.com> - 2.62.1-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix accidentally delete temp file within dtrace
* Fri Feb 28 2020 zhangrui <zhangrui182@huawei.com> - 2.62.1-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:remove dist in spec
* Mon Feb 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.62.1-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:exclude some unnecessary files
2020-01-09 15:28:42 +08:00
* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.62.1-1
- update to 2.62.1
2019-12-26 15:27:57 +08:00
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.58.1-6
- change the path of files
2019-12-25 15:46:38 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.58.1-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Fix a leaking GRemoteActionGroup member
2019-12-13 15:17:48 +08:00
* Sat Nov 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.58.1-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add the libxslt in buildrequires
2019-09-30 10:40:42 -04:00
* Wed Sep 25 2019 huzunhao<huzunhao2@huawei.com> - 2.58.1-3
- Type:cves
- ID:CVE-2019-12450 CVE-2019-13012
- SUG:restart
- DESC:fix CVE-2019-12450 CVE-2019-13012
* Thu Sep 19 2019 Lijin Yang <yanglijin@huawei.com> - 2.58.1-2
2022-03-02 14:43:15 +08:00
- Package init