File gnome-commander.spec of Package gnome-commander
#
# spec file for package gnome-commander (Version 1.2.8.2)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: gnome-commander
BuildRequires: docbook_4 fdupes gcc-c++ gnome-doc-utils-devel intltool
BuildRequires: libgnomeui-devel libxslt perl-XML-Parser scrollkeeper
BuildRequires: translation-update-upstream update-desktop-files
Version: 1.2.8.2
Release: 1
Url: http://www.nongnu.org/gcmd/
Group: Productivity/File utilities
License: GPL v2 or later
Summary: Nice and Fast File Manager for the GNOME Desktop
Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/1.1/%{name}-%{version}.tar.bz2
Requires: %{name}-lang = %{version}
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
translation-update-upstream
%build
# gnome-commander-1.2.1: breaks strict-aliasing: plugin_manager.c: 57, 81
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: C/gnome-commander.xml:*: parser error : Entity '*' not defined
%configure\
--disable-static\
--disable-scrollkeeper
%__make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT/%{_libdir}/gnome-commander/*.*a
rm $RPM_BUILD_ROOT/%{_libdir}/gnome-commander/plugins/*.*a
%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}
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_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