File kdbg.spec of Package kdbg

#
# spec file for package kdbg
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           kdbg
Version:        2.5.5
Release:        0
Summary:        Graphical User Interface for GDB
License:        GPL-2.0+
Group:          Development/Tools/Debuggers
Url:            http://www.kdbg.org/
Source0:        %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-build-with-cmake-3_4_3.diff -- Include files containing the functions used by the build system
Patch0:         fix-build-with-cmake-3_4_3.diff
Patch1:         susepatches.diff
BuildRequires:  fdupes
%if 0%{?suse_version} >= 1310
BuildRequires:  libpng-tools
%endif
BuildRequires:  libkde4-devel
Requires:       gdb
Recommends:     %{name}-lang = %{version}
Suggests:       %{name}-doc = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
KDbg is a graphical user interface for GDB, the GNU debugger. It
provides an intuitive interface for setting breakpoints, inspecting
variables, and stepping through code.

%package doc
Summary:        Documentation for %{name}
Group:          Development/Tools/Debuggers
Requires:       %{name} = %{version}

%description doc
This package provides the documentation for %{name}

%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install

  %find_lang %{name}
  %if 0%{?suse_version} >= 1310
  %png_fix_dir %{buildroot}/%{_datadir}/icons/hicolor/22x22/actions/
  %endif
  %fdupes -s %{buildroot}

  # remove oxygen/debug-run.png, already included in oxygen-icon-theme
  rm %{buildroot}%{_kde4_iconsdir}/oxygen/*/actions/debug-run.png

%files lang -f %{name}.lang
%defattr(-,root,root)
%exclude %{_kde4_htmldir}/en/kdbg
%exclude %{_kde4_htmldir}/de/kdbg
%exclude %{_kde4_htmldir}/ru/kdbg

%files doc
%defattr(-,root,root)
%doc %lang(en) %{_kde4_htmldir}/en/kdbg
%doc %lang(de) %{_kde4_htmldir}/de/kdbg
%doc %lang(ru) %{_kde4_htmldir}/ru/kdbg

%files
%defattr(-,root,root)
%doc COPYING BUGS ChangeLog-pre-2.2.0 TODO README ReleaseNotes-*
%{_kde4_applicationsdir}/kdbg.desktop
%{_kde4_appsdir}/kdbg
%{_kde4_bindir}/kdbg
%{_kde4_configdir}/kdbgrc
%{_kde4_iconsdir}/hicolor/
%{_kde4_iconsdir}/locolor/
%{_kde4_iconsdir}/oxygen/

%changelog
openSUSE Build Service is sponsored by