File kdiff3.spec of Package kdiff3

#
# spec file for package kdiff3
#
# Copyright (c) 2013 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:           kdiff3
Version:        0.9.98
Release:        0
Summary:        Feature-Rich Code Comparison Utility
License:        GPL-2.0+
Group:          Development/Tools/Version Control
Url:            http://kdiff3.sourceforge.net/
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  libkde4-devel
BuildRequires:  libkonq-devel
Recommends:     %{name}-lang = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
KDiff3 is a program that:

* Compares or merges two or three text input files or directories

* Shows the differences line-by-line and character-by-character

* Provides an automatic merge facility and an integrated editor for
   comfortably solving merge conflicts

* Supports KIO on KDE (allows accessing ftp, sftp, fish, smb, etc.)

* Has an intuitive graphical user interface

%lang_package
%prep
%setup -q

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  pushd build
  make DESTDIR=%{buildroot} install
  popd
  %suse_update_desktop_file -r kdiff3 Qt KDE Utility TextEditor X-KDE-Utilities-File
  %kde_post_install
  %find_lang %{name} %{name}.lang
  %find_lang kdiff3plugin %{name}.lang
  %find_lang kdiff3fileitemactionplugin %{name}.lang
  rm %{buildroot}%{_kde4_htmldir}/*/kdiff3/common
  %fdupes -s %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%{_kde4_applicationsdir}/kdiff3.desktop
%{_kde4_appsdir}/kdiff3/
%{_kde4_appsdir}/kdiff3part/
%{_kde4_bindir}/kdiff3
%{_kde4_iconsdir}/??color/*/apps/kdiff3.png
%{_kde4_modulesdir}/kdiff3fileitemaction.so
%{_kde4_servicesdir}/kdiff3part.desktop
%{_kde4_servicesdir}/kdiff3fileitemaction.desktop

%files lang -f %{name}.lang

%changelog