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) 2017 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.18.0
Release:        0
Summary:        Visual diff and merge tool
License:        GPL-2.0+
Group:          Development/Tools/Other
Url:            http://meldmerge.org/
Source:         https://download.gnome.org/sources/meld/3.18/%{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:  python3 >= 3.3
# Needed for shared-mime-info macros
BuildRequires:  shared-mime-info
%if !0%{?is_opensuse}
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
# needed for VCS diffs
Requires:       patch
Requires:       python3-gobject-Gdk
Recommends:     %{name}-lang
# 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
BuildArch:      noarch

Meld is a visual diff and merge tool. Two or three files can be
compared and be edited in place. (The diffs update dynamically). Two
or three directories can be compared and file comparisons be launched.
The working copy directory from version control systems such as CVS,
Subversion, Bazaar-ng and Mercurial can be browsed and viewed.

%setup -q
%patch0 -p1
%if !0%{?is_opensuse}

python3 setup.py build

python3 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}

%icon_theme_cache_post HighContrast

%icon_theme_cache_postun HighContrast

%dir %{_datadir}/appdata/

%files lang -f %{name}.lang