File meld.spec of Package meld

# spec file for package meld
# 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

Name:           meld
Version:        1.5.0
Release:        2
License:        GPLv2+
Summary:        Visual diff and merge tool
Group:          Development/Tools/Other
# PATCH-FIX-OPENSUSE meld-1.3.0-scrollkeeper.patch -- don't use env
Patch1:         %{name}-1.3.0-env.patch
BuildRequires:  fdupes
# For directory ownership
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  scrollkeeper
BuildRequires:  python
BuildRequires:  update-desktop-files
# needed for VCS diffs
Requires:       patch
# For gconf bindings
Requires:       python-gnome >= 2.6.0
Requires:       python-gtk >= 2.8.0
Recommends:     %{name}-lang
Recommends:     python-gtksourceview
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Meld is a visual diff and merge tool. You can compare two or three
files and edit them in place (diffs update dynamically). You can
compare two or three folders and launch file comparisons. You can
browse and view a working copy from popular version control systems
such such as CVS, Subversion, Bazaar-ng and Mercurial.

%setup -q

make prefix=%{_prefix} libdir=%{_datadir}

make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_datadir} install
# Remove scrollkeeper files
rm -rf %{buildroot}%{_prefix}%{_localstatedir}/lib/scrollkeeper
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -G "Diff Viewer" meld IDE
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf

%files lang -f %{name}.lang