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) 2015 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.14.0
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.14/%{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-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

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

%lang_package
%prep
%setup -q
%patch0 -p1
translation-update-upstream

%build
python setup.py build

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

%clean
rm -rf %{buildroot}

%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
%defattr(-,root,root,-)
%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}
%{python_sitelib}/meld/
%{python_sitelib}/meld*egg-info*

%files lang -f %{name}.lang

%changelog