!1 Init package

Merge pull request !1 from 陈棋德/master
This commit is contained in:
openeuler-ci-bot 2020-08-03 16:49:48 +08:00 committed by Gitee
commit 95f7ca40dc
4 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From: =?utf-8?q?Mateusz_=C5=81ukasik?= <mati75@linuxmint.pl>
Date: Mon, 22 Oct 2018 10:28:07 +0200
Subject: Add support for archive manager for MATE
Bug-Debian: https://bugs.debian.org/783611
---
scripts/Makefile.am | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index e320358..6d0dc4f 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -15,6 +15,11 @@ install-exec-hook:
-( cd $(DESTDIR)$(wrapperdir) ; \
test -f org.gnome.FileRoller.tap \
|| ln -sf file-roller.tap org.gnome.FileRoller.tap )
+# Install symlink to 'mate-engrampa.tap'
+ $(mkinstalldirs) $(DESTDIR)$(wrapperdir)
+ -( cd $(DESTDIR)$(wrapperdir) ; \
+ test -f mate-engrampa.tap \
+ || ln -sf engrampa.tap mate-engrampa.tap )
EXTRA_DIST = \
$(wrapper_SCRIPTS) \

View File

@ -0,0 +1,34 @@
From: Lionel Le Folgoc <lionel@lefolgoc.net>
Date: Tue, 11 Oct 2011 22:08:00 +0200
Subject: Look for wrappers in {non-,}multiarch LIBEXECDIRs
This will let a multiarch enabled t-a-p find wrappers installed into the old
wrappers' directory (both /usr/lib/$triplet and /usr/lib).
Forwarded: not-needed
---
thunar-archive-plugin/tap-backend.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/thunar-archive-plugin/tap-backend.c b/thunar-archive-plugin/tap-backend.c
index 7941d9d..75dfbc6 100644
--- a/thunar-archive-plugin/tap-backend.c
+++ b/thunar-archive-plugin/tap-backend.c
@@ -373,6 +373,17 @@ tap_backend_mime_wrapper (GAppInfo *mime_application)
filename = NULL;
}
+ /* Try to find wrappers in non-multiarch LIBEXECDIR */
+ if (filename == NULL)
+ {
+ filename = g_strdup_printf ("/usr/lib/thunar-archive-plugin" G_DIR_SEPARATOR_S "%s.tap", base_name);
+ if (!g_file_test (filename, G_FILE_TEST_IS_EXECUTABLE))
+ {
+ g_free (filename);
+ filename = NULL;
+ }
+ }
+
/* cleanup */
g_free (base_name);

Binary file not shown.

View File

@ -0,0 +1,55 @@
%global xfceversion 4.14
Name: thunar-archive-plugin
Version: 0.4.0
Release: 1
Summary: Archive plugin for the Thunar file manager
License: LGPLv2+
#Group: Development/Libraries
URL: http://goodies.xfce.org/projects/thunar-plugins/%{name}
Source0: http://archive.xfce.org/src/thunar-plugins/%{name}/0.4/%{name}-%{version}.tar.bz2
Patch0: 01_add-support-for-engrampa.patch
Patch1: 02_support-non-multiarch-wrappers.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildArch: noarch
BuildRequires: gcc-c++
BuildRequires: exo >= 0.12.0
BuildRequires: libxfce4util-devel >= %{xfceversion}
BuildRequires: libxml2-devel
BuildRequires: Thunar-devel >= 1.8.0
BuildRequires: intltool
BuildRequires: gettext
Requires: Thunar >= 1.8.0
%description
This plugin allows one to extract and create archive from inside the Thunar file manager.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure
%make_build
%install
%make_install
# remove la file
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog README THANKS NEWS
%doc scripts/template.tap
%{_libdir}/thunarx-*/thunar-archive-plugin.so
%{_libexecdir}/thunar-archive-plugin/
%{_datadir}/icons/hicolor/*/*/*
%changelog
* Tue Jul 28 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.4.0-1
- Init package