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) 2013 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/

Name:           meld
Version:        1.7.3
Release:        0
Summary:        Visual diff and merge tool
License:        GPL-2.0+
Group:          Development/Tools/Other
Url:            http://meld.sourceforge.net/
Source:         http://download.gnome.org/sources/meld/1.7/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE meld-1.3.0-scrollkeeper.patch prusnak@suse.cz -- don't use env
Patch1:         %{name}-1.3.0-env.patch
BuildRequires:  fdupes
# Needed for highcolor macros
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  scrollkeeper
# Needed for shared-mime-info macros
BuildRequires:  shared-mime-info
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
%if 0%{?suse_version} <= 1210
# Only needed for openSUSE <= 12.1; later it is pulled in by rpm-build.
BuildRequires:  xz
# needed for VCS diffs
Requires:       patch
Requires:       python-gconf
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

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 meld IDE
%fdupes %{buildroot}%{_datadir}

rm -rf %{buildroot}

%icon_theme_cache_post HighContrast

%icon_theme_cache_postun HighContrast

%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