[packages/thunderbird] - fix libdir -> datadir move for extensions dir - rel 3
baggins
baggins at pld-linux.org
Sun Sep 3 14:30:20 CEST 2017
commit 5f035038047327ab6bc8116b39d263c454acf7f6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 3 14:29:57 2017 +0200
- fix libdir -> datadir move for extensions dir
- rel 3
thunderbird.spec | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index 4ae30aa..02058a9 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -37,7 +37,7 @@ Summary: Thunderbird - email client
Summary(pl.UTF-8): Thunderbird - klient poczty
Name: thunderbird
Version: 52.3.0
-Release: 2
+Release: 3
License: MPL v2.0
Group: X11/Applications/Mail
Source0: http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/%{version}/source/%{name}-%{version}.source.tar.xz
@@ -1362,6 +1362,13 @@ done
rm -rf $RPM_BUILD_ROOT
%pretrans
+if [ -d %{_libdir}/%{name}/extensions ] && [ ! -L %{_libdir}/%{name}/extensions ]; then
+ install -d %{_datadir}/%{name}
+ if [ -e %{_datadir}/%{name}/extensions ]; then
+ mv %{_datadir}/%{name}/extensions{,.rpmsave}
+ fi
+ mv -v %{_libdir}/%{name}/extensions %{_datadir}/%{name}/extensions
+fi
if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
fi
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/thunderbird.git/commitdiff/5f035038047327ab6bc8116b39d263c454acf7f6
More information about the pld-cvs-commit
mailing list