File pcmanfm.spec of Package pcmanfm

#
# spec file for package pcmanfm
#
# Copyright (c) 2012 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:           pcmanfm
Summary:        The next generation LXDE file manager
Version:        0.9.10
Release:        9
License:        GPL-2.0+
Group:          Productivity/File utilities
Url:            http://www.lxde.org/
Source0:        %{name}-%{version}.tar.gz
Source1:        %name-rpmlintrc
# PATCH-FIX-UPSTREAM pcmanfm-0.9.10-libm.patch gber@opensuse.org -- Link against libm
Patch0:         pcmanfm-0.9.10-libm.patch
Patch1:         pcmanfm-0.9.10-automake-1.12.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  libtool
BuildRequires:  intltool
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libfm) >= 0.1.15
BuildRequires:  pkgconfig(libmenu-cache)
BuildRequires:  update-desktop-files
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
Requires:       libfm
# needed for trash
Requires:       gvfs
Requires:       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
# remove after 0.9.11 is released
Obsoletes:      pcmanfm = 0.9.10_rc4

%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.10
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure --enable-debug
%__make %{?_smp_mflags}

%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