File meld.spec of Package meld

#
# spec file for package meld
#
# Copyright (c) 2011 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.5.0
Release:        2
License:        GPLv2+
Summary:        Visual diff and merge tool
Url:            http://meld.sourceforge.net/
Group:          Development/Tools/Other
Source:         http://ftp.gnome.org/pub/gnome/sources/meld/1.3/%{name}-%{version}.tar.bz2
# 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
# For directory ownership
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  scrollkeeper
BuildRequires:  python
BuildRequires:  update-desktop-files
# needed for VCS diffs
Requires:       patch
# For gconf bindings
Requires:       python-gnome >= 2.6.0
Requires:       python-gtk >= 2.8.0
Recommends:     %{name}-lang
Recommends:     python-gtksourceview
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
%patch1

%build
make prefix=%{_prefix} libdir=%{_datadir}

%install
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 -G "Diff Viewer" meld IDE
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS
%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
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by