%undefine with_memusage
%endif
-%define ports_version 2.14.1
+%define ports_version 2.15
%define llh_version 7:2.6.20.4-1
Summary: GNU libc
Summary(tr.UTF-8): GNU libc
Summary(uk.UTF-8): GNU libc версії
Name: glibc
-Version: 2.14.1
-Release: 1.1
+Version: 2.15
+Release: 9
Epoch: 6
License: LGPL v2.1+
Group: Libraries
Source0: http://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.xz
-# Source0-md5: 55501b8d037a4f1d330312b30fd6d4bc
+# Source0-md5: 4f9f3b0e780a8c7179a372d34e9452bc
Source1: http://ftp.gnu.org/gnu/glibc/%{name}-ports-%{ports_version}.tar.xz
-# Source1-md5: 3b3afcb6b99fea9e3a2474cc4778ec88
+# Source1-md5: fef73c8b7885b02ec5f7ce8fa00ba30c
Source2: nscd.init
Source3: nscd.sysconfig
Source4: nscd.logrotate
Source6: %{name}-localedb-gen
Source7: %{name}-LD-path.c
Source8: nscd.upstart
+Source9: nscd.tmpfiles
Patch0: %{name}-restore-rpc+nis.patch
-Patch1: %{name}-pl.po-update.patch
+# against GNU TP (libc domain)
+#Patch1: %{name}-pl.po-update.patch
Patch2: %{name}-pld.patch
Patch3: %{name}-crypt-blowfish.patch
Patch4: %{name}-sotruss-sh.patch
Patch9: %{name}-java-libc-wait.patch
Patch10: %{name}-info.patch
Patch11: %{name}-no_debuggable_objects.patch
+Patch12: %{name}-rh-bug-769421.patch
Patch14: %{name}-sparc-errno_fix.patch
Patch15: %{name}-new-charsets.patch
Patch16: %{name}-tzfile-noassert.patch
Patch35: 0055_all_glibc-2.12-static-shared-getpagesize.patch
Patch37: 0061_all_glibc-2.13-static-memset.patch
Patch38: 1055_all_glibc-resolv-dynamic.patch
-Patch39: %{name}-git.patch
Patch40: %{name}-bad-fix.patch
-Patch41: %{name}-pr12892.patch
+Patch41: glibc-bug-13618.patch
+Patch42: %{name}-pr13013.patch
URL: http://www.gnu.org/software/libc/
%{?with_selinux:BuildRequires: audit-libs-devel}
BuildRequires: autoconf
%setup -q -a1
mv %{name}-ports-%{ports_version} ports
%patch0 -p1
-%patch1 -p1
+
%patch2 -p1
%patch3 -p0
%patch4 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
+%patch12 -p1
%patch14 -p0
%patch15 -p1
%patch16 -p1
%patch37 -p1
%patch38 -p1
-%patch39 -p1
+
%patch40 -p1
-# revert broken fix
%patch41 -p1
+%patch42 -p1
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/{default,logrotate.d,rc.d/init.d,sysconfig,init},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd,/var/cache/ldconfig}
+install -d $RPM_BUILD_ROOT/etc/{default,logrotate.d,rc.d/init.d,sysconfig,init} \
+ $RPM_BUILD_ROOT{%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd} \
+ $RPM_BUILD_ROOT{/var/cache/ldconfig,/usr/lib/tmpfiles.d}
cd builddir
env LANGUAGE=C LC_ALL=C \
: > $RPM_BUILD_ROOT/var/lib/nscd/group
: > $RPM_BUILD_ROOT/var/lib/nscd/hosts
+install %{SOURCE9} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/nscd.conf
+
rm -rf documentation
install -d documentation
# sr@ijelatin or sr@ijekavianlatin? (currently not supported)
# sr@ijekavian and sr@ijekavianlatin exist in: akonadi-googledata, amarok, k3b, konversation, ktorrent, wesnoth
#
-# bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
-# till now.
+# Short forms (omitted country code, used instead of long form) for ambiguous or unclear cases:
+# aa=aa_ER
+# ar=common? (AE, BH, DZ, EG, IQ, JO, KW, LB, LY, MA, OM, QA, SA, SD, SY, TN, YE)
+# bn=bn_BD
+# ca=ca_ES
+# ckb=ckb_IQ
+# de=de_DE
+# en=common? (en_AU, en_CA, en_GB, en_NZ, en_US are used for particular variants)
+# eo=common
+# es=es_ES
+# eu=eu_ES
+# fr=fr_FR
+# fy=fy_NL
+# gez=gez_ET (?)
+# it=it_IT
+# li=li_NL
+# nds=nds_DE
+# nl=nl_NL
+# om=om_ET
+# pa=pa_IN
+# pt=pt_PT
+# ru=ru_RU
+# so=so_SO
+# sr=sr_RS [cyrillic]
+# sv=sv_SE
+# sw=sw_TZ (or common for KE, TZ, UG?)
+# ta=ta_IN
+# te=te_IN
+# ti=ti_ER (?)
+# tr=tr_TR
+# ur=ur_PK (?)
+# zh: no short code used (use zh_CN, zh_HK, zh_SG[not included yet], zh_TW)
#
# Omitted here - already existing (with libc.mo):
# be ca cs da de el en_GB es fi fr gl hr hu it ja ko nb nl pl pt_BR ru rw sk
%endif
%{?with_localedb:%dir %{_libdir}/locale}
+#%files -n nss_db
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/makedb
+%attr(755,root,root) /%{_lib}/libnss_db-%{version}.so
+%attr(755,root,root) /%{_lib}/libnss_db.so.2
+%{_var}/db/Makefile
+
#%files -n nss_dns
%defattr(644,root,root,755)
%attr(755,root,root) /%{_lib}/libnss_dns-%{version}.so
%endif
%attr(755,root,root) %{_bindir}/locale
%attr(755,root,root) %{_bindir}/rpcgen
-%attr(755,root,root) %{_bindir}/sotruss
%attr(755,root,root) %{_sbindir}/zdump
%attr(755,root,root) %{_sbindir}/zic
%dir %{_libexecdir}/getconf
%attr(755,root,root) %{_libexecdir}/getconf/*
-%dir %{_libdir}/audit
-%attr(755,root,root) %{_libdir}/audit/sotruss-lib.so
-
%dir %{_datadir}/locale
%{_datadir}/locale/locale.alias
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/catchsegv
%attr(755,root,root) %{_bindir}/ldd
+%attr(755,root,root) %{_bindir}/pldd
+%attr(755,root,root) %{_bindir}/sotruss
+%dir %{_libdir}/audit
+%attr(755,root,root) %{_libdir}/audit/sotruss-lib.so
+
%{_mandir}/man1/catchsegv.1*
%{_mandir}/man1/ldd.1*
%lang(es) %{_mandir}/es/man1/ldd.1*
%attr(755,root,root) %{_sbindir}/nscd*
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
%attr(640,root,root) %ghost /var/log/nscd
+/usr/lib/tmpfiles.d/nscd.conf
%dir /var/run/nscd
%dir /var/lib/nscd
%attr(600,root,root) %ghost /var/lib/nscd/passwd