File pcmanfm.spec of Package pcmanfm

#
# spec file for package pcmanfm (Version 0.9.3beta+git20100324)
#
# Copyright (c) 2010 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.3beta+git20100324
Release:        1
License:        GPLv2
Group:          Productivity/File utilities
Url:            http://www.lxde.org/
Source0:        %name.tar.bz2
Source1:        %name-rpmlintrc
# PATCH-FIX-OPENSUSE pcmanfm-rename-to-pcmanfm.patch andrea@opensuse.org -- pcmanfm2 will change his name back to pcmanfm on upstream code
# only when stable release will be ready, we can't wait, that may happen after 11.3 GM is out.
Patch0:         %name-rename-to-pcmanfm.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf automake desktop-file-utils gcc gcc-c++
BuildRequires:  fdupes gtk2-devel intltool make menu-cache-devel pkg-config
BuildRequires:  libfm-devel update-desktop-files
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

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
%patch0 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./autogen.sh
%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

%files
%defattr(-,root,root)
%_bindir/%name
%dir %_datadir/%name
%dir %_datadir/%name/ui
%_datadir/%name/ui/*.ui
%_datadir/applications/%name.desktop

%files lang -f %name.lang

%changelog
openSUSE Build Service is sponsored by