diff --git a/libreoffice.changes b/libreoffice.changes index a30af84..6462b0f 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 1 10:40:30 UTC 2016 - tchvatal@suse.com + +- Install also gdb pretty printers + ------------------------------------------------------------------- Fri Apr 1 10:30:39 UTC 2016 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index 1a52f86..ab6cdff 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -512,14 +512,29 @@ Summary: Support for creating LibreOffice dialogs in glade License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause and GPL-2.0+ and LPPL-1.3c and LGPL-2.1+ and LGPL-3.0 and MPL-1.1 and MIT and SUSE-Public-Domain and W3C Group: Productivity/Office/Suite Requires: %{name} = %{version} -%if %{with noarch_subpkgs} -BuildArch: noarch -%endif +%if %{with noarch_subpkgs} +BuildArch: noarch +%endif %description glade %{name}-glade contains a catalog of LibreOffice-specific widgets for glade and ui-previewer tool to check the visual appearance of dialogs. +%package gdb-pretty-printers +Summary: Additional support for debugging with gdb +License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause and GPL-2.0+ and LPPL-1.3c and LGPL-2.1+ and LGPL-3.0 and MPL-1.1 and MIT and SUSE-Public-Domain and W3C +Group: Productivity/Office/Suite +Requires: %{python_type}-six +Requires: gdb +Requires: libreoffice = %{version} +Supplements: libreoffice-debuginfo = %{version} +%if %{with noarch_subpkgs} +BuildArch: noarch +%endif + +%description gdb-pretty-printers +This package provides gdb pretty printers for package %{name}. + %package base Summary: LibreOffice Base License: LGPL-3.0 @@ -1463,6 +1478,10 @@ ln -sr %{buildroot}%{_datadir}/glade/catalogs/libreoffice-catalog.xml %{buildroo grep -v '%{_libdir}/%{name}/share/glade/libreoffice-catalog.xml' file-lists/common_list.txt > tmplist mv tmplist file-lists/common_list.txt +# install gdb pretty printers +export DESTDIR=%{buildroot} +./solenv/bin/install-gdb-printers -a %{_datadir}/gdb/auto-load%{_libdir}/%{name} -c -i %{_libdir}/%{name} -p %{_datadir}/libreoffice/gdb + # We have ton of duped files so run over it %fdupes %{buildroot}%{_prefix} @@ -1643,6 +1662,11 @@ test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null | %dir %{_datadir}/glade3/catalogs %{_datadir}/glade3/catalogs/libreoffice-catalog.xml +%files gdb-pretty-printers +%defattr(-,root,root) +%{_datadir}/gdb/auto-load/%{_libdir}/%{name} +%{_datadir}/libreoffice/gdb + %files -f file-lists/base_list.txt base %defattr(-,root,root)