Summary(uk.UTF-8): GNU libc версії
Name: glibc
Version: %{core_version}
-Release: 2
+Release: 4
Epoch: 6
License: LGPL v2.1+
Group: Libraries
Source7: %{name}-LD-path.c
Source8: nscd.upstart
Source9: nscd.tmpfiles
+Patch100: %{name}-git.patch
# against GNU TP (libc domain)
#Patch1: %{name}-pl.po-update.patch
Patch2: %{name}-pld.patch
exit 1
%endif
+%patch100 -p1
+
%patch2 -p1
%patch3 -p0
%patch4 -p1
%{__make} \
AWK="gawk" \
+ localedir=%{_prefix}/lib/locale \
sLIBdir=%{_libdir}
cd ..
env LANGUAGE=C LC_ALL=C \
%{__make} install \
install_root=$RPM_BUILD_ROOT \
+ localedir=%{_prefix}/lib/locale \
infodir=%{_infodir} \
mandir=%{_mandir}
%if %{with localedb}
env LANGUAGE=C LC_ALL=C \
%{__make} localedata/install-locales \
+ localedir=%{_prefix}/lib/locale \
install_root=$RPM_BUILD_ROOT
+%else
+install -d $RPM_BUILD_ROOT%{_prefix}/lib/locale
%endif
PICFILES="libc_pic.a libc.map
# kmr (vlc)
# man (ccsm; incorrectly named md)
# mus (bluez-gnome)
+# nah (mate-system-monitor)
# pms (deluge)
# sco (gnomad2, picard, stellarium)
# son (gtkspell3)
done
# localedb-gen infrastructure
-sed -e 's,@localedir@,%{_libdir}/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
+sed -e 's,@localedir@,%{_prefix}/lib/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
chmod +x $RPM_BUILD_ROOT%{_bindir}/localedb-gen
install localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
%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
%else
%attr(755,root,root) /%{_lib}/libutil.so.1
%endif
-%{?with_localedb:%dir %{_libdir}/locale}
+%dir %{_prefix}/lib/locale
#%files -n nss_db
%defattr(644,root,root,755)
%if %{with localedb}
%files localedb-all
%defattr(644,root,root,755)
-%{_libdir}/locale/locale-archive
+%{_prefix}/lib/locale/locale-archive
%endif
%files -n iconv