LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File meld.spec of Package meld (Project GNOME:Apps)

# spec file for package meld
# 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:           meld
Version:        3.16.4
Release:        0
Summary:        Visual diff and merge tool
License:        GPL-2.0+
Group:          Development/Tools/Other
Url:            http://meldmerge.org/
Source:         http://download.gnome.org/sources/meld/3.16/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE meld-nodocs.patch dimstar@opensuse.org -- We do not want COPYING and NEWS installed like this
Patch0:         meld-nodocs.patch
BuildRequires:  fdupes
# Needed for glib2_gsettings_schema macros
BuildRequires:  glib2-devel
# Needed for typelib() Requires
BuildRequires:  gobject-introspection-devel
# Needed for highcolor macros
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  itstool
BuildRequires:  libxml2-tools
BuildRequires:  python
# Needed for shared-mime-info macros
BuildRequires:  shared-mime-info
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
# needed for VCS diffs
Requires:       patch
Requires:       python-gconf
Requires:       python-gobject-Gdk
Requires:       python-gtk >= 2.8.0
Recommends:     %{name}-lang
Recommends:     python-gtksourceview
# Suggest various vcs that meld can handle
Suggests:       bzr
Suggests:       cvs
Suggests:       git-core
Suggests:       mercurial
Suggests:       monotone
Suggests:       subversion
# Not in Factory, but still in OBS
Suggests:       darcs
Suggests:       fossil
Suggests:       tla
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
%patch0 -p1

python setup.py build

python setup.py \
    --no-update-icon-cache \
    --no-compile-schemas \
    install --root %{buildroot} --prefix %{_prefix}
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file meld IDE
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

%icon_theme_cache_post HighContrast

%icon_theme_cache_postun HighContrast

%dir %{_datadir}/appdata/

%files lang -f %{name}.lang