2019-09-30 10:40:42 -04:00
|
|
|
Name: glib2
|
2020-07-21 16:13:14 +08:00
|
|
|
Version: 2.62.5
|
2021-03-01 17:28:42 +08:00
|
|
|
Release: 3
|
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+
|
|
|
|
|
URL: http://www.gtk.org
|
2020-01-09 15:28:42 +08:00
|
|
|
Source0: http://download.gnome.org/sources/glib/2.62/glib-%{version}.tar.xz
|
|
|
|
|
|
2020-07-21 16:13:14 +08:00
|
|
|
Patch9001: fix-accidentally-delete-temp-file-within-dtrace.patch
|
2021-02-27 11:44:30 +08:00
|
|
|
Patch6000: backport-CVE-2020-35457.patch
|
2021-03-01 17:28:42 +08:00
|
|
|
Patch6001: backport-CVE-2021-27218.patch
|
2020-07-21 16:13:14 +08:00
|
|
|
|
2020-01-09 15:28:42 +08:00
|
|
|
BuildRequires: chrpath gcc gcc-c++ gettext gtk-doc perl-interpreter
|
|
|
|
|
BUildRequires: glibc-devel libattr-devel libselinux-devel meson
|
|
|
|
|
BuildRequires: systemtap-sdt-devel pkgconfig(libelf) pkgconfig(libffi)
|
|
|
|
|
BuildRequires: pkgconfig(libpcre) pkgconfig(mount) pkgconfig(zlib)
|
|
|
|
|
BuildRequires: python3-devel gamin-devel
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-fam = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-fam < %{version}-%{release}
|
2019-09-30 10:40:42 -04:00
|
|
|
|
|
|
|
|
Recommends: shared-mime-info
|
|
|
|
|
|
2020-01-09 15:28:42 +08:00
|
|
|
Conflicts: gcr < 3.28.1
|
|
|
|
|
|
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
|
|
|
|
|
Summary: Development and test files for the GLib library
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-tests = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-static < %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-tests < %{version}-%{release}
|
2019-09-30 10:40:42 -04:00
|
|
|
|
2020-01-09 15:28:42 +08:00
|
|
|
%description devel
|
2019-09-30 10:40:42 -04:00
|
|
|
Development and test files for the GLib library.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n glib-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
rm glib/pcre/*.[ch]
|
2020-01-09 15:28:42 +08:00
|
|
|
%meson --default-library=both -Dman=true -Ddtrace=true \
|
|
|
|
|
-Dsystemtap=true -Dgtk_doc=true -Dfam=true -Dinstalled_tests=true
|
2019-09-30 10:40:42 -04:00
|
|
|
|
2020-01-09 15:28:42 +08:00
|
|
|
%meson_build
|
2019-09-30 10:40:42 -04:00
|
|
|
|
2020-07-21 16:13:14 +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
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
|
|
mv %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-%{__isa_bits}
|
|
|
|
|
touch %{buildroot}%{_libdir}/gio/modules/giomodule.cache
|
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)
|
|
|
|
|
%doc AUTHORS NEWS README
|
|
|
|
|
%license COPYING
|
2019-09-30 10:40:42 -04:00
|
|
|
%{_libdir}/*.so.*
|
2020-01-09 15:28:42 +08:00
|
|
|
%{_libdir}/gio/modules/libgiofam.so
|
|
|
|
|
%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-launch-desktop
|
|
|
|
|
%{_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/*
|
|
|
|
|
%{_libdir}/*.a
|
2019-09-30 10:40:42 -04:00
|
|
|
%{_includedir}/*
|
2020-01-09 15:28:42 +08:00
|
|
|
%{_libexecdir}/installed-tests
|
2020-07-21 16:13:14 +08:00
|
|
|
%exclude %{_libexecdir}/installed-tests/glib/cert-tests
|
|
|
|
|
%exclude %{_libexecdir}/installed-tests/glib/tls-certificate
|
2020-01-09 15:28:42 +08:00
|
|
|
|
2019-09-30 10:40:42 -04:00
|
|
|
%{_datadir}/aclocal/*
|
|
|
|
|
%{_datadir}/glib-2.0/*
|
|
|
|
|
%{_datadir}/bash-completion/completions/gresource
|
2020-01-09 15:28:42 +08:00
|
|
|
%{_datadir}/gdb/
|
|
|
|
|
%{_datadir}/gettext/
|
|
|
|
|
%{_datadir}/systemtap/
|
|
|
|
|
%{_datadir}/installed-tests
|
2020-07-21 16:13:14 +08:00
|
|
|
%exclude %{_datadir}/installed-tests/glib/tls-certificate.test
|
2020-01-09 15:28:42 +08:00
|
|
|
|
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 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/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|
|
|
|
|
|
2020-07-21 16:13:14 +08:00
|
|
|
* Thu Jul 21 2020 hanhui<hanhui15@huawei.com> - 2.62.5-1
|
|
|
|
|
- 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
|
|
|
|
|
- Package init
|