# - math/{test-fenv,test-tgmath,test-float,test-ifloat}, debug/backtrace-tst(SEGV) fail on alpha
#
# Conditional build:
-# min_kernel (default is 2.6.16)
+# min_kernel (default is 2.6.32)
%bcond_without memusage # don't build memusage utility
%bcond_without selinux # without SELinux support (in nscd)
%bcond_with tests # perform "make test"
Summary(uk.UTF-8): GNU libc версії
Name: glibc
Version: %{core_version}
-Release: 1
+Release: 4
Epoch: 6
License: LGPL v2.1+
Group: Libraries
Source7: %{name}-LD-path.c
Source8: nscd.upstart
Source9: nscd.tmpfiles
+Patch0: %{name}-git.patch
# against GNU TP (libc domain)
#Patch1: %{name}-pl.po-update.patch
Patch2: %{name}-pld.patch
Patch6: %{name}-paths.patch
Patch7: 1070_all_glibc-fadvise64_64.patch
Patch8: %{name}-missing-nls.patch
-Patch9: %{name}-java-libc-wait.patch
+Patch9: %{name}-nss_include_dirs.patch
Patch10: %{name}-info.patch
Patch11: %{name}-autoconf.patch
Patch12: %{name}-format.patch
# Patch27-md5: 34ebe52a2afb923e33af0fb7c541f540
Patch28: %{name}-locale-C-pld.patch
Patch29: %{name}-arm-alignment-fix.patch
-
+Patch30: glibc-rh1124987.patch
Patch31: %{name}-origin.patch
Patch32: %{name}-Os-fail-workaround.patch
Requires: rc-scripts >= 0.4.3.0
Provides: group(nscd)
Provides: user(nscd)
+Obsoletes: gnscd
+Obsoletes: unscd
%description -n nscd
nscd caches name service lookups; it can dramatically improve
%prep
%setup -q
-%if "%{min_kernel}" < "2.6.16"
-echo "Minimal supported kernel is 2.6.16" >&2
+%if "%{min_kernel}" < "2.6.32"
+echo "Minimal supported kernel is 2.6.32" >&2
exit 1
%endif
+
+%patch0 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
-%patch9 -p1
+%patch9 -p0
+
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch27 -p1
%patch28 -p1
%patch29 -p1
-
+%patch30 -p1
%patch31 -p1
%patch32 -p1
cd ..
%if %{with tests}
-cd builddir
env LANGUAGE=C LC_ALL=C \
-%{__make} -j1 tests 2>&1 | awk '
-BEGIN { file = "" }
-{
- if (($0 ~ /\*\*\* \[.*\.out\] Error/) && ($0 !~ /annexc/) && (file == "")) {
- file=$0;
- gsub(/.*\[/, NIL, file);
- gsub(/\].*/, NIL, file);
- }
- print $0;
-}
-END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
-cd ..
-done
+%{__make} -j1 -C builddir tests
%endif
%if %{without cross}