]> git.pld-linux.org Git - packages/glibc.git/commitdiff
trigger to move old locale-archive auto/th/glibc-2.19-3
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 25 Jun 2014 07:37:15 +0000 (09:37 +0200)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Wed, 25 Jun 2014 07:37:15 +0000 (09:37 +0200)
to keep any locale data generated with localedb-gen.

Release: 3

glibc.spec

index 29b66cd7a1bd4057712412230d4a7d0e3e9ab4db..d4457c70ba35c0f8853f68a5e305a7461b8bac72 100644 (file)
@@ -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
 
This page took 0.045895 seconds and 4 git commands to generate.