b330f1b
%define thunarver 0.9.0
3b95062
3b95062
Name:           thunar-volman
b330f1b
Version:        0.2.0
3b95062
Release:        1%{?dist}
3b95062
Summary:        Automatic management of removable drives and media for the Thunar file manager
3b95062
3b95062
Group:          User Interface/Desktops
b330f1b
License:        GPLv2+
3b95062
URL:            http://foo-projects.org/~benny/projects/thunar-volman/
3b95062
Source0:        http://download.berlios.de/xfce-goodies/thunar-volman-%{version}.tar.bz2
3b95062
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3b95062
3b95062
BuildRequires:  Thunar-devel >= 0.5.1
3b95062
BuildRequires:  hal-devel >= 0.5.0
3b95062
BuildRequires:  dbus-glib-devel >= 0.34
3b95062
BuildRequires:  gettext
b330f1b
BuildRequires:  perl(XML::Parser)
b330f1b
BuildRequires:  desktop-file-utils
3b95062
Requires:       Thunar >= %{thunarver}
3b95062
3b95062
%description
3b95062
The Thunar Volume Manager is an extension for the Thunar file manager, which 
3b95062
enables automatic management of removable drives and media. For example, if 
3b95062
thunar-volman is installed and configured properly, and you plug in your 
3b95062
digital camera, it will automatically launch your preferred photo application 
3b95062
and import the new pictures from the camera into your photo collection.
3b95062
b330f1b
3b95062
%prep
3b95062
%setup -q
3b95062
3b95062
3b95062
%build
3b95062
%configure
3b95062
make %{?_smp_mflags}
3b95062
3b95062
3b95062
%install
3b95062
rm -rf $RPM_BUILD_ROOT
3b95062
make install DESTDIR=$RPM_BUILD_ROOT
3b95062
%find_lang %{name}
b330f1b
desktop-file-install --vendor fedora                            \
b330f1b
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
b330f1b
        --remove-category=DesktopSettings                       \
b330f1b
        --add-category=HardwareSettings                         \
b330f1b
        --add-only-show-in=XFCE                                 \
b330f1b
        --delete-original                                       \
b330f1b
        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}-settings.desktop
3b95062
3b95062
3b95062
%post
3b95062
touch --no-create %{_datadir}/icons/hicolor || :
3b95062
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
3b95062
3b95062
%postun
3b95062
touch --no-create %{_datadir}/icons/hicolor || :
3b95062
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
3b95062
3b95062
3b95062
%clean
3b95062
rm -rf $RPM_BUILD_ROOT
3b95062
3b95062
3b95062
%files -f %{name}.lang
3b95062
%defattr(-,root,root,-)
3b95062
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
3b95062
%{_bindir}/thunar-volman
3b95062
%{_datadir}/icons/hicolor/48x48/apps/tvm-*.png
3b95062
%{_datadir}/icons/hicolor/scalable/apps/tvm-*.svg
b330f1b
%{_libexecdir}/thunar-volman-settings
b330f1b
%{_datadir}/applications/fedora-thunar-volman-settings.desktop
3b95062
3b95062
3b95062
%changelog
b330f1b
* Mon Dec 03 2007 Christoph Wickert <fedora christoph-wickert de> - 0.2.0-1
b330f1b
- Update to 0.2.0 and Thunar 0.9.0
b330f1b
b330f1b
* Tue Aug 21 2007 Christoph Wickert <fedora christoph-wickert de> - 0.1.2-2
b330f1b
- Rebuild for BuildID feature
b330f1b
3b95062
* Sun Jan 21 2007 Christoph Wickert <fedora christoph-wickert de> - 0.1.2-1
3b95062
- Update to 0.1.2.
3b95062
3b95062
* Wed Jan 17 2007 Christoph Wickert <fedora christoph-wickert de> - 0.1.0-1
3b95062
- Initial packaging.