File thunar-volman.spec of Package thunar-volman
#
# spec file for package thunar-volman
#
# 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: thunar-volman
Version: 0.6.0
Release: 7
License: GPLv2+
Summary: Thunar Volume Manager
Url: http://goodies.xfce.org/projects/thunar-plugins/thunar-volman
Group: System/GUI/XFCE
Source0: http://archive.xfce.org/src/apps/thunar-volman/0.6/%{name}-%{version}.tar.bz2
%if 0%{?suse_version} > 1200
Source1: thunar-volman.xml
%endif
# PATCH-FIX-OPENSUSE thunar-volman-brp-desktop-friendly-icon.patch gber@opensuse.org -- brp-desktop insists on icons being included with the package
Patch0: thunar-volman-brp-desktop-friendly-icon.patch
BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(exo-1)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: update-desktop-files
BuildRequires: gnome-icon-theme
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Thunar Volume Manager is an extension for the Thunar file manager,
which enables automatic management of removable drives and media. For
example, if thunar-volman is installed and configured properly, and you
plug in your digital camera, it will automatically launch your
preferred photo application and import the new pictures from the camera
into your photo collection.
%if 0%{?suse_version} > 1200
%package branding-upstream
License: GPLv2+
Summary: Upstream Branding of thunar-volman
Supplements: packageand(%{name}:branding-upstream)
Provides: %{name}-branding = %{version}
Conflicts: otherproviders(%{name}-branding)
#BRAND: xfce4.xml: Determines a whether to automatically mount hotpluggable
#BRAND: drives and removable median and whether to open what applications
#BRAND: automatically.
BuildArch: noarch
%description branding-upstream
This package provides the upstream look and feel for the Thunar Volume Manager.
%endif
%lang_package
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
%install
%make_install
for size in 8x8 16x16 22x22 24x24 32x32 48x48 scalable; do
for format in png svg; do
if test -f %{_datadir}/icons/gnome/${size}/devices/drive-removable-media.${format}; then
install -D -p -m 644 \
%{_datadir}/icons/gnome/${size}/devices/drive-removable-media.${format} \
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps/tvm-settings.${format}
break
fi
done
done
%if 0%{?suse_version} > 1200
install -D -p -m 644 %{SOURCE1} \
%{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml
%endif
%suse_update_desktop_file thunar-volman-settings Settings DesktopSettings
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-,root,root)
%{_bindir}/thunar-volman
%{_bindir}/thunar-volman-settings
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*
%files lang -f %{name}.lang
%if 0%{?suse_version} > 1200
%files branding-upstream
%defattr(-,root,root)
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml
%endif
%changelog