File thunar-plugin-archive.spec of Package thunar-plugin-archive
#
# spec file for package thunar-plugin-archive
#
# 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/
#
%define thunar_version 1.2.0
%define plugin_name thunar-archive-plugin
Name: thunar-plugin-archive
Group: System/GUI/XFCE
Url: http://thunar.xfce.org/plugins.html#thunar-archive-plugin
License: GPLv2+
Version: 0.3.0
Release: 1
Source0: %{plugin_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM thunar-archive-plugin-0.3.0-fix-file-roller-extract-here.patch gber@opensuse.org -- Make file-roller really extract files to the current directory to match the behavior of xarchiver
Patch0: thunar-archive-plugin-0.3.0-fix-file-roller-extract-here.patch
Summary: Thunar Plugin Providing Xarchiver Integration
BuildRequires: intltool
BuildRequires: thunar-devel >= %{thunar_version}
BuildRequires: pkgconfig(thunarx-2)
Requires: thunar >= %{thunar_version}
Provides: %{plugin_name} = %{version}
Obsoletes: %{plugin_name} < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Thunar Archive Plugin allows for creating and extracting archive files
through the file context menus in the Thunar file manager using an archive
manager. It provides scripting interface that can be used to adapt it to
different archive managers.
%prep
%setup -q -n %{plugin_name}-%{version}
%patch0 -p1
%build
%configure --disable-static
make %{?_smp_mflags} V=1
%install
%make_install
# remove unsupported locales
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{plugin_name}
rm -rf %{buildroot}%{_libdir}/thunarx-2/thunar-archive-plugin.la
%clean
rm -rf "%{buildroot}"
%if 0%{?suse_version} >= 1140
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%endif
%files -f %{plugin_name}.lang
%defattr(-,root,root)
%{_libdir}/thunarx-2/thunar-archive-plugin.so
%{_libexecdir}/thunar-archive-plugin
%{_datadir}/icons/*/*/*/tap-*.png
%changelog