add require gdb-headless for devel

This commit is contained in:
t_feng 2021-11-08 20:15:58 +08:00
parent 16c289132e
commit 1bdf551614

View File

@ -1,6 +1,6 @@
Name: glib2
Version: 2.68.1
Release: 5
Release: 6
Summary: The core library that forms the basis for projects such as GTK+ and GNOME
License: LGPLv2+
URL: http://www.gtk.org
@ -32,6 +32,7 @@ developed in parallel ever since.
%package devel
Summary: Development and test files for the GLib library
Requires: %{name} = %{version}-%{release}
Requires: gdb-headless
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-tests = %{version}-%{release}
@ -76,6 +77,12 @@ export PYTHONHASHSEED=0
mv %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-%{__isa_bits}
mkdir -p %{buildroot}%{_libdir}/gio/modules/
touch %{buildroot}%{_libdir}/gio/modules/giomodule.cache
# 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__
%find_lang glib20
%transfiletriggerin -- %{_libdir}/gio/modules
@ -125,7 +132,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/aclocal/*
%{_datadir}/glib-2.0/*
%{_datadir}/bash-completion/completions/gresource
%{_datadir}/gdb/
%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py
%{_datadir}/gettext/
%{_datadir}/systemtap/
%{_datadir}/installed-tests
@ -147,6 +154,13 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%doc %{_datadir}/gtk-doc/html/*
%changelog
* Mon Nov 14 2021 fengtao<fengtao40@huawei.com> - 2.68.1-6
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add require gdb-headless for devel
* Tue Sep 14 2021 yangcheng<yangcheng87@huawei.com> - 2.68.1-5
- Type:bugfix
- Id:NA