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
%endif
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

%description
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.

%lang_package
%prep
%setup -q
%patch0 -p1
%if !0%{?is_opensuse}
translation-update-upstream
%endif

%build
python3 setup.py build

%install
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}

%post
%desktop_database_post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%icon_theme_cache_post HighContrast
%mime_database_post

%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%icon_theme_cache_postun HighContrast
%mime_database_postun

%files
%doc COPYING NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}/
%dir %{_datadir}/appdata/
%{_datadir}/appdata/meld.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.meld.gschema.xml
%{_datadir}/help/C/meld/
%{_datadir}/icons/hicolor/*/*/%{name}*
%{_datadir}/icons/HighContrast/
%{_datadir}/mime/packages/meld.xml
%{_mandir}/man1/meld.1%{?ext_man}
%{python3_sitelib}/meld/
%{python3_sitelib}/meld*egg-info*

%files lang -f %{name}.lang

%changelog