[packages/glibc] trigger to move old locale-archive
jajcus
jajcus at pld-linux.org
Wed Jun 25 10:58:25 CEST 2014
commit 119e8d0533cb1743b629081c53bcbd423d82102f
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Wed Jun 25 09:37:15 2014 +0200
trigger to move old locale-archive
to keep any locale data generated with localedb-gen.
Release: 3
glibc.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/glibc.spec b/glibc.spec
index 29b66cd..d4457c7 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -35,7 +35,7 @@ Summary(tr.UTF-8): GNU libc
Summary(uk.UTF-8): GNU libc версії
Name: glibc
Version: %{core_version}
-Release: 2
+Release: 3
Epoch: 6
License: LGPL v2.1+
Group: Libraries
@@ -1317,6 +1317,14 @@ if [ "$1" != 1 ]; then
%service -q crond restart
fi
+%ifarch %{x8664}
+# when upgrading from glibc < 6:2.19-3 copy locale-archive
+# from /usr/lib64/locale to /usr/lib/locale
+# but only if the latter doesn't already exist
+%triggerpostun -p /sbin/postshell -- %{name} < 6:2.19-3
+-/bin/cp -an %{_libdir}/locale/locale-archive %{_prefix}/lib/locale/locale-archive
+%endif
+
%post libcrypt -p /sbin/ldconfig
%postun libcrypt -p /sbin/ldconfig
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/glibc.git/commitdiff/119e8d0533cb1743b629081c53bcbd423d82102f
More information about the pld-cvs-commit
mailing list