File thunar-plugins.spec of Package thunar-plugins
#
# spec file for package thunar-plugins (Version 1.0.0)
#
# Copyright (c) 2009 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-plugins
%define archive_version 0.2.4
%define media_tags_version 0.1.2
%define shares_version 0.2.0
%define svn_version 0.0.3
%define shares_version 0.2.0
%define thumbnailers_version 0.4.1
Group: System/GUI/XFCE
Url: http://thunar.xfce.org/plugins.html
License: GPL v2 or later
# keep thunar version
Version: 1.0.0
Release: 1
%define plugins thunar-archive-plugin thunar-media-tags-plugin thunar-shares-plugin thunar-svn-plugin thunar-thumbnailers
Source0: thunar-archive-plugin-%{archive_version}.tar.bz2
Source1: thunar-media-tags-plugin-%{media_tags_version}.tar.bz2
Source2: thunar-shares-plugin-%{shares_version}.tar.bz2
Source3: thunar-svn-plugin-%{svn_version}.tar.bz2
Source4: thunar-thumbnailers-%{thumbnailers_version}.tar.bz2
Patch0: thunar-svn-plugin-includes.patch
Summary: Set of plugins for Thunar
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ImageMagick-devel dcraw gtk2-devel intltool libapr1-devel perl-XML-Parser subversion-devel taglib-devel texlive-latex thunar-devel unzip xfce4-dev-tools xmgrace
%if 0%{?suse_version} > 1030
BuildRequires: raw-thumbnailer
%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: 56
License: GPL v2 or later
Group: System/GUI/XFCE
Requires: xarchiver thunar >= %{version}
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: 56
License: GPL v2 or later
Group: System/GUI/XFCE
Summary: OGG support for Thunar
Requires: thunar >= %{version}
%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-shares-plugin
Version: %{shares_version}
Release: 1
License: GPL v2 or later
Group: System/GUI/XFCE
Summary: Thunar Shares plugin
Requires: thunar >= %{version}
%description -n thunar-shares-plugin
Thunar-shares-plugin allows you to quickly share a folder using Samba
from Thunar (the XFCE file manager) without requiring root access.
Authors:
--------
Daniel Morales <daniel@daniel.com.uy>
%package -n thunar-svn-plugin
Version: %{svn_version}
Release: 1
License: GPL v2 or later
Group: System/GUI/XFCE
Summary: Thunar SVN plugin
Requires: thunar >= %{version}
%description -n thunar-svn-plugin
The Thunar SVN Plugin provides a svn intergration to Thunar. It allows
you to do most of the svn action from the context menu. It also shows
the svn file status in the file properties window.
Authors:
--------
Peter de Ridder <peter@xfce.org>
%package -n thunar-thumbnailers
Version: %{thumbnailers_version}
Release: 1
License: GPL v2 or later
Group: System/GUI/XFCE
Summary: Thumbnailers for Thunar
Requires: thunar >= %{version}
Requires: ImageMagick
%if 0%{?suse_version} > 1030
Recommends: raw-thumbnailer
%endif
Suggests: texlive-latex xmgrace
%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 -a3 -a4
%patch0
%build
for plugin in %{plugins} ; do
cd ${plugin}*
%configure \
--disable-static \
%if 0%{?suse_version} > 1030
--enable-raw \
%endif
--enable-tex \
--enable-grace
make %{?jobs:-j%jobs}
cd ..
done
%install
for plugin in %{plugins} ; do
cd ${plugin}*
make DESTDIR="$RPM_BUILD_ROOT" install
cd ..
if [ "$plugin" != 'thunar-thumbnailers' ]; then
%find_lang $plugin
fi
done
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -n thunar-archive-plugin -f thunar-archive-plugin.lang
%defattr(-,root,root)
%{_libdir}/thunarx-1/thunar-archive-plugin*
%dir %{_libexecdir}/thunar-archive-plugin
%{_libexecdir}/thunar-archive-plugin/*.tap
%{_datadir}/icons/*/*/*/tap-*.png
%files -n thunar-media-tags-plugin -f thunar-media-tags-plugin.lang
%defattr(-,root,root)
%{_libdir}/thunarx-1/thunar-media-tags-plugin*
%files -n thunar-shares-plugin -f thunar-shares-plugin.lang
%defattr(-,root,root)
%{_libdir}/thunarx-1/thunar-shares-plugin*
%files -n thunar-svn-plugin -f thunar-svn-plugin.lang
%defattr(-,root,root)
%{_libdir}/thunarx-1/thunar-svn-plugin*
%{_libexecdir}/tsp-svn-helper
%{_datadir}/icons/hicolor/*/apps/subversion.*
%files -n thunar-thumbnailers
%defattr(-,root,root)
%{_libexecdir}/*-thumbnailer
%{_datadir}/mime/packages/thunar-thumbnailers.xml
%{_datadir}/thumbnailers/*-thumbnailer.desktop
%changelog