File thunar-plugins.spec of Package thunar-plugins

#
# spec file for package thunar-plugins (Version 0.9.0)
#
# Copyright (c) 2008 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
# nodebuginfo


Name:           thunar-plugins
%define         archive_version         0.2.4
%define         media_tags_version      0.1.2
%define         thumbnailers_version    0.4.1
Group:          System/GUI/XFCE
Url:            http://thunar.xfce.org/plugins.html
AutoReqProv:    on
License:        GPL v2 or later
# keep thunar version
Version:        0.9.0
Release:        5
%define         plugins thunar-archive-plugin thunar-media-tags-plugin thunar-thumbnailers
Source0:        thunar-archive-plugin-%{archive_version}.tar.bz2
Source1:        thunar-media-tags-plugin-%{media_tags_version}.tar.bz2
Source2:        thunar-thumbnailers-%{thumbnailers_version}.tar.bz2
Summary:        Set of plugins for Thunar
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ImageMagick-devel gtk2-devel perl-XML-Parser taglib-devel thunar-devel unzip
%if 0%{?suse_version} >= 1030
BuildRequires:  libapr1-devel subversion-devel
%endif

%description
This source package contains various plugins for thunar file manager.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%package -n thunar-archive-plugin
Version:        %{archive_version}
Release:        6
License:        GPL v2 or later
Group:          System/GUI/XFCE
Requires:       xarchiver thunar
Summary:        Plugin enable using xarchive for Thunar

%description -n thunar-archive-plugin
The thunar-archive-plugin is a plugin for the Thunar File Manager,
which adds archive operations to the file context menus. Using this
plugin you will be able to extract and create archive files from within
Thunar using a single click.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%package -n thunar-media-tags-plugin
Version:        %{media_tags_version}
Release:        6
License:        GPL v2 or later
Group:          System/GUI/XFCE
Summary:        OGG support for Thunar
Requires:       thunar

%description -n thunar-media-tags-plugin
The thunar-media-tags-plugin is a plugin for the Thunar File Manager,
which adds ID3/OGG tag support to the bulk rename dialog.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%package -n thunar-thumbnailers
Version:        %{thumbnailers_version}
Release:        6
License:        GPL v2 or later
Group:          System/GUI/XFCE
Summary:        Thumbnailers for Thunar
Requires:       thunar

%description -n thunar-thumbnailers
Additional thumbnailers which can be used with thunar to enable
thumbnail generation for less common file formats.



Authors:
--------
    Benedikt Meurer <benny@xfce.org>

%prep
%setup -q -c -n thunar-plugins -a0 -a1 -a2

%build
for plugin in %{plugins} ; do
  cd ${plugin}*
  %configure \
      --disable-static
  make %{?jobs:-j%jobs}
  cd ..
done

%install
for plugin in %{plugins} ; do
  cd ${plugin}*
  make DESTDIR="$RPM_BUILD_ROOT" install
  cd ..
done

%clean
rm -rf "$RPM_BUILD_ROOT"

%files -n thunar-archive-plugin
%defattr(-,root,root)
%dir %{_libexecdir}/thunar-archive-plugin
%{_libexecdir}/thunar-archive-plugin/*.tap
%{_libdir}/thunarx-1/thunar-archive-plugin*
%{_datadir}/icons/*/*/*/tap-*.png
%{_datadir}/locale/*/*/thunar-archive-plugin.mo

%files  -n thunar-media-tags-plugin
%defattr(-,root,root)
%{_libdir}/thunarx-1/thunar-media-tags-plugin*
%{_datadir}/locale/*/*/thunar-media-tags-plugin.mo

%files  -n thunar-thumbnailers
%defattr(-,root,root)
%{_libexecdir}/eps-thumbnailer
%{_libexecdir}/fig-thumbnailer
%{_libexecdir}/ps-thumbnailer
%{_libexecdir}/dvi-thumbnailer
%{_libexecdir}/pdf-thumbnailer
%{_libexecdir}/svgz-thumbnailer
%{_libexecdir}/psd-thumbnailer
%{_libexecdir}/xcf-thumbnailer
%{_datadir}/mime/packages/thunar-thumbnailers.xml
%{_datadir}/thumbnailers/eps-thumbnailer.desktop
%{_datadir}/thumbnailers/fig-thumbnailer.desktop
%{_datadir}/thumbnailers/ps-thumbnailer.desktop
%{_datadir}/thumbnailers/dvi-thumbnailer.desktop
%{_datadir}/thumbnailers/pdf-thumbnailer.desktop
%{_datadir}/thumbnailers/svgz-thumbnailer.desktop
%{_datadir}/thumbnailers/psd-thumbnailer.desktop
%{_datadir}/thumbnailers/xcf-thumbnailer.desktop

%changelog
* Tue Nov 11 2008 prusnak@suse.cz
- added thunar to Requires of all packages
* Tue Oct 14 2008 bwalle@suse.de
- Remove thunar-svn-plugin since that does not build with current
  gtk version and it seems to be unmaintained upstream.
- Add psd-thumbnailer and xcf-thumbnailer to file list.
* Tue Sep 02 2008 prusnak@suse.cz
- updated thunar-thumbnailers to 0.4.1
  * Fixed the TEX thumbnailer, now uses pdflatex
  * Fixed the EPS thumbnailer, so that the thumbnails are never transparent
* Fri Aug 22 2008 prusnak@suse.cz
- updated thunar-thumbnailers to 0.4.0
  * Fixed a minor bug so the ODF thumbnailer will now do
  graphics files (.odg)
  * Added XCF (Gimp image) thumbnailer
  * The raw-thumbnailer binary (based on libopen raw) is no longer
  a hard dependency of raw-thumbnailer as dcraw is acceptable
* Wed Jun 18 2008 prusnak@suse.cz
- updated thunar-svn-plugin to 0.0.2:
  * New Subversion actions have been added: switch, relocate, blame.
  * File selection dialog added for varios Subversion actions.
* Tue Mar 25 2008 bwalle@suse.de
- enable thunar-plugins for 10.3
* Wed Mar 19 2008 prusnak@suse.cz
- updated thunar-thumbnailers to 0.3.2
  o Added image/x-canon-cr2
  o Added image/x-adobe-dng
  o Added image/x-pentax-pef
  o Added image/x-sigma-x3f
  o Added image/x-sony-sr2
* Sat Mar 01 2008 bwalle@suse.de
- update thunar-thumbnailers to 0.3.1
  o Added video/3gpp and video/x-matroska mimetypes
  (ffmpeg-thumbnailer)
* Thu Jan 24 2008 prusnak@suse.cz
- fix spec file
* Tue Jan 22 2008 prusnak@suse.cz
- added thunar-svn-plugin (version 0.0.1)
* Wed Aug 15 2007 bwalle@suse.de
- update thunar-thumbnailers to 0.3.0
  o Added DVI and PDF thumbnailers which do not require evince.
  o Added an OpenDocument Format thumbnailer which uses "unzip"
  to acquire the thumbnail.
  o Added an SVGZ (Compressed SVG) thumbnailer.
  o The raw image thumbnailer is now almost one hundred times
  faster since it uses raw-thumbnailer in preference to dcraw
  for the common raw image formats.
* Sat Jul 07 2007 bwalle@suse.de
- updated thunar-thumbnailers to 0.2.2
  o Added thumbnailing of ogg theora files
* Sat Jun 23 2007 bwalle@suse.de
- added thunar-thumbnailers 0.2.1
- replaced group 'System/GUI/Other' by 'System/GUI/XFCE'
* Tue May 22 2007 prusnak@suse.cz
- sync with BuildService
  * updated archive plugin to 0.2.4
  * updated media-tags plugin to 0.1.2
* Fri Jan 26 2007 ro@suse.de
- no main package, no debuginfo
* Wed Jan 24 2007 ro@suse.de
- added directory to filelist
* Sun Nov 05 2006 bwalle@suse.de
- updated to 4.3.99.2 (4.4 rc2)
* Mon Sep 11 2006 bwalle@suse.de
- updated thunar-media-tags-plugin from 0.1.0 to 0.1.1
* Sat Sep 09 2006 bwalle@suse.de
- fixed typo
openSUSE Build Service is sponsored by