File kdbg.spec of Package kdbg
#
# spec file for package kdbg
#
# Copyright (c) 2011 SUSE LINUX Products 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.0
Release: 1
License: GPLv2+
Summary: Graphical User Interface for GDB
Url: http://www.kdbg.org/
Group: Development/Tools/Debuggers
Source0: %{name}-%{version}.tar.bz2
Patch1: susepatches.diff
BuildRequires: fdupes
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
%patch1 -p1
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
%kde_post_install
cd ..
%find_lang %{name}
%fdupes -s %{buildroot}
%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-2.2.0 ReleaseNotes-2.2.1 ReleaseNotes-2.2.2 ReleaseNotes-2.5.0
%{_kde4_applicationsdir}/kdbg.desktop
%{_kde4_appsdir}/kdbg
%{_kde4_bindir}/kdbg
%config %{_kde4_configdir}/kdbgrc
%{_kde4_iconsdir}/hicolor/
%{_kde4_iconsdir}/locolor/
%{_kde4_iconsdir}/oxygen/
%changelog