1Name: glib2 2Version: 2.68.1 3Release: 10 4Summary: The core library that forms the basis for projects such as GTK+ and GNOME 5License: LGPLv2+ 6URL: http://www.gtk.org 7Source0: http://download.gnome.org/sources/glib/2.68/glib-%{version}.tar.xz 8 9Patch6000: backport-correctly-use-3-parameters-for-clise-range.patch 10Patch6001: backport-fix-a-memory-leak.patch 11Patch6002: backport-gfileenumerator-fix-leak-in-error-path.patch 12Patch6003: backport-gdbusobjectmanagerservice-fix-leak-in-error-path.patch 13Patch6004: backport-gdbusauth-fix-error-leak.patch 14Patch6005: backport-gapplication-fix-arguments-leak-in-error-path.patch 15Patch6006: backport-gsocks5proxy-Handle-EOF-when-reading-from-a-stream.patch 16Patch6007: backport-application-Unset-the-registered-state-after-shutting-down.patch 17Patch6008: backport-gdtlsconnection-Fix-a-check-for-a-vfunc-being-implemented.patch 18Patch6009: backport-gthread-posix-Free-a-memory-leak-on-error-path.patch 19Patch6010: backport-gutils-Avoid-segfault-in-g_get_user_database_entry.patch 20Patch6011: backport-glocalfileinfo-Fix-atime-mtime-mix.patch 21Patch6012: backport-gopenuriportal-Fix-GVariantBuilder-and-string-leakage.patch 22Patch6013: backport-gproxyaddressenumerator-Fix-string-leakage-on-an-invalid-input.patch 23Patch6014: backport-gsocks5proxy-Fix-buffer-overflow-on-a-really-long-domain-name.patch 24Patch6015: backport-gvariant-Fix-memory-leak-on-a-TYPE-CHECK-failure.patch 25Patch6016: backport-gvariant-Fix-pointers-being-dereferenced-despite-NULL-checks.patch 26Patch6017: backport-gtype-Fix-pointer-being-dereferenced-despite-NULL-check.patch 27Patch6018: backport-add-OOM-handling-in-mimemagic.patch 28Patch6019: backport-garray-buffer-overflow-fix.patch 29Patch6020: backport-gdbusconnection-Move-ExportedSubtree-definition.patch 30Patch6021: backport-gdbusconnection-Add-some-ownership-annotations.patch 31Patch6022: backport-gdbusconnection-Make-ExportedInterface-ExportedSubtree-refcounted.patch 32Patch6023: backport-gdbusconnection-Fix-race-between-method-calls-and-object-unregistration.patch 33Patch6024: backport-gdbusconnection-Fix-race-between-subtree-method-call-and-unregistration.patch 34Patch6025: backport-Add-D-Bus-object-subtree-unregistration-tests.patch 35Patch6026: backport-gutf8-add-string-length-check.patch 36Patch6027: backport-garray-Fix-integer-overflows-in-element-capacity-calculations.patch 37Patch6028: backport-gdbusmessage-Disallow-zero-length-elements-in-arrays.patch 38Patch6029: backport-gvariant-serialiser-Prevent-unbounded-recursion.patch 39Patch6030: backport-gutils-Fix-g_find_program_in_path-to-return-an-absolute-path.patch 40Patch6031: backport-Fix-memory-leak-in-gdbusauthmechanismsha1.patch 41Patch6032: backport-gprintf-Fix-a-memory-leak-with-an-invalid-format.patch 42Patch6033: backport-tests-Add-some-tests-for-g_vasprintf-invalid-format-strings.patch 43Patch6034: backport-tests-Add-some-tests-for-g_string_append_vprintf.patch 44Patch6035: backport-gdbusmethodinvocation-Fix-a-leak-on-an-early-return-path.patch 45Patch6036: backport-gdbusmethodinvocation-Fix-dead-code-for-type-checking-GetAll.patch 46Patch6037: backport-gdbusmethodinvocation-Drop-redundant-quote-from-warning.patch 47Patch6038: backport-tests-Add-unit-tests-for-GDBusMethodInvocation.patch 48Patch6039: backport-gtestdbus-Print-the-dbus-address-on-a-specific-FD-intead-of-stdout.patch 49Patch6040: backport-gopenuriportal-Fix-a-use-after-free-on-an-error-path.patch 50Patch6041: backport-gio-tool-Fix-a-minor-memory-leak.patch 51Patch6042: backport-gsocketclient-Fix-still-reachable-references-to-cancellables.patch 52Patch6043: backport-gunixmounts-Add-cache-to-g_unix_mount_points_get.patch 53Patch6044: backport-Add-lock-in-_g_get_unix_mount_points-around-fsent-functions.patch 54Patch6045: backport-g_get_unix_mount_points-reduce-syscalls-inside-loop.patch 55Patch6046: backport-xdgmime-fix-double-free.patch 56Patch6047: backport-Implement-GFileIface.set_display_name-for-resource-files.patch 57Patch6048: backport-tests-dbus-appinfo-Add-test-case-for-flatpak-opening-an-invalid-file.patch 58Patch6049: backport-documentportal-Fix-small-leak-in-add_documents-with-empty-URI-list.patch 59Patch6050: backport-gio-tests-gdbus-proxy-threads-Unref-GVariant-s-that-we-own.patch 60Patch6051: backport-gio-tests-gdbus-peer-Unref-cached-property-GVariant-value.patch 61Patch6052: backport-gdesktopappinfo-Unref-the-GDBus-call-results.patch 62Patch6053: backport-Handling-collision-between-standard-i-o-file-descriptors-and-newly-created-ones.patch 63Patch6054: backport-glocalfileoutputstream-Do-not-double-close-an-fd-on-unlink-error.patch 64Patch6055: backport-tests-Make-the-642026-test-take-100x-less-time.patch 65Patch6056: backport-gmessages-Add-missing-trailing-newline-in-fallback-log-hander.patch 66Patch6057: backport-Revert-Handling-collision-between-standard-i-o-filedescriptors-and-newly-created-ones.patch 67patch6058: backport-gdbusinterfaceskeleton-Fix-a-use-after-free-of-a-GDBusMethodInvocation.patch 68patch6059: backport-CVE-2023-24593_CVE-2023-25180-1.patch 69patch6060: backport-CVE-2023-24593_CVE-2023-25180-2.patch 70patch9000: backport-lib-openharmony-glib.patch 71 72BuildRequires: chrpath gcc gcc-c++ gettext perl-interpreter 73BUildRequires: glibc-devel libattr-devel libselinux-devel meson 74BuildRequires: systemtap-sdt-devel pkgconfig(libelf) pkgconfig(libffi) 75BuildRequires: pkgconfig(libpcre) pkgconfig(mount) pkgconfig(zlib) 76BuildRequires: python3-devel 77%ifnarch i686 78BuildRequires: desktop-file-utils shared-mime-info gtk-doc 79%if %{?openEuler:1}0 80BuildRequires: pkgconfig(sysprof-capture-4) 81%endif 82%endif 83 84Provides: %{name}-fam = %{version}-%{release} 85Obsoletes: %{name}-fam < %{version}-%{release} 86 87Recommends: shared-mime-info 88 89Conflicts: gcr < 3.28.1 90 91%description 92GLib is a bundle of three (formerly five) low-level system libraries 93written in C and developed mainly by GNOME. GLib's code was separated 94from GTK, so it can be used by software other than GNOME and has been 95developed in parallel ever since. 96 97%package devel 98Summary: Development and test files for the GLib library 99Requires: %{name} = %{version}-%{release} 100Requires: gdb-headless 101 102Provides: %{name}-static = %{version}-%{release} 103Provides: %{name}-tests = %{version}-%{release} 104Obsoletes: %{name}-static < %{version}-%{release} 105Obsoletes: %{name}-tests < %{version}-%{release} 106 107%description devel 108Development and test files for the GLib library. 109 110%ifnarch i686 111%package help 112Summary: help document for the glib2 package 113Buildarch: noarch 114Provides: %{name}-doc = %{version}-%{release} 115Obsoletes: %{name}-doc < %{version}-%{release} 116 117%description help 118help document for the glib2 package. 119%endif 120 121%prep 122%autosetup -n glib-%{version} -p1 123 124%build 125rm glib/pcre/*.[ch] 126%meson --default-library=both -Ddtrace=true \ 127%ifnarch i686 128%if %{?openEuler:1}0 129 -Dsysprof=enabled \ 130%endif 131 -Dman=true -Dgtk_doc=true \ 132%else 133 -Dsysprof=disabled -Dman=false -Dgtk_doc=false \ 134%endif 135 -Dsystemtap=true -Dinstalled_tests=true \ 136 -Dglib_debug=disabled 137 138%meson_build 139 140find . -name *.dtrace-temp.c -exec rm -f {} \; 141 142%check 143%meson_test 144 145%install 146%meson_install 147touch -r gio/gdbus-2.0/codegen/config.py.in %{buildroot}%{_datadir}/glib-2.0/codegen/*.py 148chrpath --delete %{buildroot}%{_libdir}/*.so 149 150export PYTHONHASHSEED=0 151%py_byte_compile %{__python3} %{buildroot}%{_datadir} 152 153mv %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-%{__isa_bits} 154mkdir -p %{buildroot}%{_libdir}/gio/modules/ 155touch %{buildroot}%{_libdir}/gio/modules/giomodule.cache 156 157# remove pycache 158rm -rf %{buildroot}/%{_datadir}/gdb/auto-load/%{_libdir}/__pycache__ 159rm -rf %{buildroot}/%{_datadir}/glib-2.0/codegen/__pycache__ 160rm -rf %{buildroot}/%{_datadir}/glib-2.0/gdb/__pycache__ 161 162# remove rpath 163chrpath -d %{buildroot}%{_libexecdir}/installed-tests/glib/gdbus-peer 164 165%find_lang glib20 166 167%transfiletriggerin -- %{_libdir}/gio/modules 168gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || : 169 170%transfiletriggerpostun -- %{_libdir}/gio/modules 171gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules &> /dev/null || : 172 173%transfiletriggerin -- %{_datadir}/glib-2.0/schemas 174glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : 175 176%transfiletriggerpostun -- %{_datadir}/glib-2.0/schemas 177glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : 178 179%files -f glib20.lang 180%defattr(-,root,root) 181%doc AUTHORS NEWS README 182%license COPYING 183%{_libdir}/*.so.* 184%dir %{_libdir}/gio 185%ghost %{_libdir}/gio/modules/giomodule.cache 186 187%dir %{_datadir}/glib-2.0 188%dir %{_datadir}/bash-completion 189%{_datadir}/bash-completion/completions/gapplication 190%{_datadir}/bash-completion/completions/gdbus 191%{_datadir}/bash-completion/completions/gio 192%{_datadir}/bash-completion/completions/gsettings 193 194%{_bindir}/gio 195%{_bindir}/gio-querymodules* 196%{_bindir}/glib-compile-schemas 197%{_bindir}/gsettings 198%{_bindir}/gdbus 199%{_bindir}/gapplication 200 201%files devel 202%{_libdir}/lib*.so 203%{_libdir}/glib-2.0 204%{_libdir}/pkgconfig/* 205%{_libdir}/*.a 206%{_includedir}/* 207%{_libexecdir}/installed-tests 208%exclude %{_libexecdir}/installed-tests/glib/cert-tests 209%exclude %{_libexecdir}/installed-tests/glib/tls-certificate 210 211%{_datadir}/aclocal/* 212%{_datadir}/glib-2.0/* 213%{_datadir}/bash-completion/completions/gresource 214%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py 215%{_datadir}/gettext/ 216%{_datadir}/systemtap/ 217%{_datadir}/installed-tests 218%exclude %{_datadir}/installed-tests/glib/tls-certificate.test 219 220%{_bindir}/glib-genmarshal 221%{_bindir}/glib-gettextize 222%{_bindir}/glib-mkenums 223%{_bindir}/gobject-query 224%{_bindir}/gtester 225%{_bindir}/gdbus-codegen 226%{_bindir}/glib-compile-resources 227%{_bindir}/gresource 228%attr (0755, root, root) %{_bindir}/gtester-report 229 230%ifnarch i686 231%files help 232%defattr(-,root,root) 233%{_mandir}/man1/* 234%doc %{_datadir}/gtk-doc/html/* 235%endif 236 237%changelog 238* Fri Mar 11 2022 weijin deng <weijin.deng@turbolinux.com.cn> - 2.68.1-10 239- Type:bugfix 240- DESC:solve glib2 enable "glib2_debug" option causes gnome-calendar reopen 241 coredumped in gtk3's _gtk_widget_get_toplevel() 242 243* Wed Mar 9 2022 yangcheng<yangcheng87@h-partners.com> - 2.68.1-9 244- Type:bugfix 245- Id:NA 246- SUG:NA 247- DESC:remove gdbus-peer rpath compile option 248 249* Wed Mar 2 2022 hanhui<hanhui15@h-partners.com> - 2.68.1-8 250- Type:bugfix 251- Id:NA 252- SUG:NA 253- DESC:custom installation depend on sysprof 254 255* Sat Feb 19 2022 wangkerong<wangkerong@h-partners.com> - 2.68.1-7 256- Type:bugfix 257- Id:NA 258- SUG:NA 259- DESC:add i686 options,fix build failure on i686 260 261* Sun Nov 14 2021 fengtao<fengtao40@huawei.com> - 2.68.1-6 262- Type:bugfix 263- Id:NA 264- SUG:NA 265- DESC:add require gdb-headless for devel 266 267 268* Tue Sep 14 2021 yangcheng<yangcheng87@huawei.com> - 2.68.1-5 269- Type:bugfix 270- Id:NA 271- SUG:NA 272- DESC:Drop dependebcy on gamin 273 274* Tue Sep 7 2021 fengtao<fengtao40@huawei.com> - 2.68.1-4 275- Type:bugfix 276- Id:NA 277- SUG:NA 278- DESC:enable all tests 279 280* Sat Aug 14 2021 liuyumeng<liuyumeng5@huawei.com> - 2.68.1-3 281- Type:bugfix 282- Id:NA 283- SUG:NA 284- DESC:fix a memory leak 285 286* Tue Aug 10 2021 liuyumeng<liuyumeng5@huawei.com> - 2.68.1-2 287- Type:bugfix 288- Id:NA 289- SUG:NA 290- DESC:fix the third parameter of clise-range 291 292* Wed Jun 30 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.68.1-1 293- Upgrade to 2.68.1 because gnome-builder and more new gnome applications 294 need function g_memdup2 which needs glib2 ≥2.67.3 to instead of g_memdup 295 296* Wed May 19 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 2.66.8-1 297- Upgrade to 2.66.8 298- Update Version, Release 299- Delete patch files, delete gio-launch-desktop(not exist in 2.66.8) 300- Correct date, make it match weekday 301 302* Tue Apr 13 2021 hanhui<hanhui15@huawei.com> - 2.62.5-5 303- Type:cve 304- Id:CVE-2021-28153 305- SUG:NA 306- DESC:fix CVE-2021-28153 307 308* Sat Mar 6 2021 hanhui<hanhui15@huawei.com> - 2.62.5-4 309- Type:cve 310- Id:CVE-2021-27219 311- SUG:NA 312- DESC:fix CVE-2021-27219 313 314* Mon Mar 1 2021 jinzhimin<jinzhimin2@huawei.com> - 2.62.5-3 315- Type:cve 316- Id:CVE-2021-27218 317- SUG:NA 318- DESC:fix CVE-2021-27218 319 320* Sat Feb 27 2021 zhujunhao<zhujunhao8@huawei.com> - 2.62.5-2 321- Type:cve 322- Id:CVE-2020-35457 323- SUG:NA 324- DESC:fix CVE-2020-35457 325 326* Tue Jul 21 2020 hanhui<hanhui15@huawei.com> - 2.62.5-1 327- Update to 2.62.5 328 329* Mon Mar 2 2020 hexiujun<hexiujun1@huawei.com> - 2.62.1-4 330- Type:bugfix 331- Id:NA 332- SUG:NA 333- DESC:fix accidentally delete temp file within dtrace 334 335* Fri Feb 28 2020 zhangrui <zhangrui182@huawei.com> - 2.62.1-3 336- Type:bugfix 337- Id:NA 338- SUG:NA 339- DESC:remove dist in spec 340 341* Mon Feb 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.62.1-2 342- Type:bugfix 343- Id:NA 344- SUG:NA 345- DESC:exclude some unnecessary files 346 347* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.62.1-1 348- update to 2.62.1 349 350* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.58.1-6 351- change the path of files 352 353* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.58.1-5 354- Type:bugfix 355- Id:NA 356- SUG:NA 357- DESC:Fix a leaking GRemoteActionGroup member 358 359* Sat Nov 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.58.1-4 360- Type:bugfix 361- Id:NA 362- SUG:NA 363- DESC:add the libxslt in buildrequires 364 365* Wed Sep 25 2019 huzunhao<huzunhao2@huawei.com> - 2.58.1-3 366- Type:cves 367- ID:CVE-2019-12450 CVE-2019-13012 368- SUG:restart 369- DESC:fix CVE-2019-12450 CVE-2019-13012 370 371* Thu Sep 19 2019 Lijin Yang <yanglijin@huawei.com> - 2.58.1-2 372- Package init 373