File gnome-commander.spec of Package gnome-commander

#
# spec file for package gnome-commander
#
# 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:           gnome-commander
Version:        1.2.8.10
Release:        2
License:        GPLv2+
Summary:        Nice and Fast File Manager for the GNOME Desktop
Url:            http://www.nongnu.org/gcmd/
Group:          Productivity/File utilities
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.1/%{name}-%{version}.tar.bz2
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
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
translation-update-upstream

%build
# FIXME: C/gnome-commander.xml:*: parser error : Entity '*' not defined
%configure\
	--disable-static\
	--disable-scrollkeeper
%__make %{?jobs:-j%jobs}

%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