File gnome-commander.spec of Package gnome-commander

#
# spec file for package gnome-commander
#
# 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:           gnome-commander
Version:        1.2.8.15
Release:        0
Summary:        Nice and Fast File Manager for the GNOME Desktop
License:        GPL-2.0+
Group:          Productivity/File utilities
Url:            http://www.nongnu.org/gcmd/
Source:         http://download.gnome.org/sources/gnome-commander/1.2/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM gnome-commander-gcc47.patch dimstar@opensuse.org -- Fix build with gcc 4.7. Taken from git, commit a8cf386.
Patch0:         gnome-commander-gcc47.patch
# PATCH-FIX-UPSTREAM gnome-commander-poppler020.patch bgo#676303 dimstar@opensuse.org -- Fix build with poppler 0.20.
Patch1:         gnome-commander-poppler020.patch
# PATCH-FIX-UPSTREAM gnome-commander-libgsf.patch bgo#696227 dimstar@opensuse.org -- Fix build with libgsf 1.14.26.
Patch2:         gnome-commander-libgsf.patch
# PATCH-FIX-UPSTREAM gnome-commander-glib236.patch dimstar@opensuse.org -- Fix build with glib 2.36, patch inspired by git.
Patch3:         gnome-commander-glib236.patch
BuildRequires:  chmlib-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  libexiv2-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libgsf-devel
BuildRequires:  libpoppler-devel
# Needed by patch1
BuildRequires:  libtool
BuildRequires:  libxslt
BuildRequires:  python-devel
BuildRequires:  taglib-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
# For xdg-su
Recommends:     xdg-utils
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNOME Commander is a nice and fast file manager for the GNOME desktop.
In addition to basic file manager functions, the program is also an FTP
client and can browse SMB networks.

%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
translation-update-upstream

%build
# Needed by patch1
autoreconf -fi
# FIXME: C/gnome-commander.xml:*: parser error : Entity '*' not defined
%configure\
	--disable-static\
	--disable-scrollkeeper
%__make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete -print
%suse_update_desktop_file gnome-commander
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%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}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/gnome-commander
%{_libdir}/gnome-commander
%doc %{_mandir}/man1/gnome-commander.1.gz

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by