kdiff3/kdiff3.spec

101 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kdiff3 (Version 0.9.95)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: kdiff3
BuildRequires: kdebase4-workspace-devel libkonq-devel
%if %suse_version < 1010
BuildRequires: update-desktop-files
%endif
%if %suse_version > 1020
BuildRequires: fdupes
%endif
License: GPLv2+
Url: http://kdiff3.sourceforge.net/
Group: Development/Tools/Version Control
Summary: Feature-Rich Code Comparison Utility
Version: 0.9.95
Release: 10
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
%kde4_runtime_requires
Requires: %{name}-lang = %{version}
%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
Authors:
--------
Joachim Eibl <joachim.eibl@gmx.de>
%lang_package
%prep
%setup -q
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%makeinstall
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 desktop_extragear-utils_kdiff3 %{name}.lang
rm $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/*/kdiff3/common
%files
%defattr(-,root,root)
%doc COPYING
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES
%endif
/usr/bin/kdiff3
%_kde4_modules/libkdiff3part.so
%_kde4_modules/libkdiff3plugin.so
%_datadir/applications/kde4/kdiff3.desktop
%_datadir/icons/hicolor/*/apps/kdiff3.png
%_datadir/icons/locolor/*/apps/kdiff3.png
%_datadir/kde4/apps/kdiff3/kdiff3_shell.rc
%_datadir/kde4/apps/kdiff3/kdiff3_part.rc
%_datadir/kde4/services/kdiff3part.desktop
%_datadir/kde4/services/kdiff3_plugin.desktop
%_datadir/kde4/apps/kdiff3
%files lang -f %name.lang
%changelog