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) 2018 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.19.0
Release:        0
Summary:        Visual diff and merge tool
License:        GPL-2.0-or-later
Group:          Development/Tools/Other
URL:            http://meldmerge.org/
Source:         http://download.gnome.org/sources/meld/3.19/%{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 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
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
# needed for VCS diffs
Requires:       patch
Requires:       python3-cairo
Requires:       python3-gobject-Gdk
Recommends:     %{name}-lang
# Suggest various vcs that meld can handle
Suggests:       bzr
Suggests:       cvs
Suggests:       fossil
Suggests:       git
Suggests:       mercurial
Suggests:       subversion
# Not in Factory, but still in OBS
Suggests:       darcs
Suggests:       monotone
Suggests:       tla
BuildArch:      noarch
%if 0%{?suse_version} < 1330
# Needed for shared-mime-info macros
BuildRequires:  shared-mime-info

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

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}

%if 0%{?suse_version} < 1330
%icon_theme_cache_post HighContrast

%icon_theme_cache_postun HighContrast

%license COPYING
%doc NEWS
%dir %{_datadir}/metainfo/
%doc %{_datadir}/help/C/meld/

%files lang -f %{name}.lang