File pcmanfm.spec of Package pcmanfm

#
# spec file for package pcmanfm
#
# 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/
#

# norootforbuild


Name:           pcmanfm
Summary:        The next generation LXDE file manager
Version:        0.9.9_rc3
Release:        0.<RELEASE2>
License:        GPLv2
Group:          Productivity/File utilities
Url:            http://www.lxde.org/
Source0:        %name-0.9.9.tar.bz2
Source1:        %name-rpmlintrc
Patch0:         %name-0.9.9-fix-no_return_in_non_void.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf automake desktop-file-utils gcc gcc-c++
BuildRequires:  fdupes gtk2-devel intltool menu-cache-devel
BuildRequires:  make pkg-config update-desktop-files
BuildRequires:  libfm-devel >=  0.1.16
Requires:       libfm
# needed for trash
Requires:       gvfs gvfs-backends
# needed to switch to root
Requires:       xdg-utils
# needed to mount devices
Requires:       polkit-gnome
Recommends:     %name-lang
# Please remove when openSUSE 11.3 will no more be maintained
Conflicts:      pcmanfm-legacy
Obsoletes:      pcmanfm2 < %version
Provides:       pcmanfm2 >= %version

%description
An extremly fast, lightweight, yet feature-rich
file manager with tabbed browsing. It's also the
LXDE default file manager. This is a complete
rewrite of the old pcmanfm 0.5.x series


%lang_package
%prep
%setup -q -n %name-0.9.9
%patch0 -p1

%build
%configure --enable-debug
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall
%suse_update_desktop_file %name Application System Utility GTK FileManager
%fdupes -s %{buildroot}
%find_lang %name

%clean
%__rm -rf %buildroot

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files
%defattr(-,root,root)
%_bindir/%name
%dir %_datadir/%name
%dir %_datadir/%name/ui
%_datadir/%name/ui/*.ui
%_datadir/applications/%name.desktop
%dir %_sysconfdir/xdg/pcmanfm
%dir %_sysconfdir/xdg/pcmanfm/default
%config %_sysconfdir/xdg/pcmanfm/default/pcmanfm.conf

%files lang -f %name.lang

%changelog
openSUSE Build Service is sponsored by