]> git.pld-linux.org Git - packages/glibc.git/blobdiff - glibc.spec
- added sparc64-fixes patch, now builds on both sparc* platforms
[packages/glibc.git] / glibc.spec
index fdb37a1b22a10ddd6c0bd17abcdd7b9e1042d784..ef1a3883bbf286d1cb485f0bbaa04bf965ecf7bb 100644 (file)
@@ -1,68 +1,40 @@
-#
-# You can define min_kernel macro by "rpm --define 'min_kernel version'"
-# default is 2.4.6 for linuxthreads, 2.6.0 for NPTL
+# TODO:
+# - files?
+#   /usr/lib64/libBrokenLocale_g.a
+#   /usr/lib64/libanl_g.a
+#   /usr/lib64/libc_g.a
+#   /usr/lib64/libcrypt_g.a
+#   /usr/lib64/libdl_g.a
+#   /usr/lib64/libm_g.a
+#   /usr/lib64/libnsl_g.a
+#   /usr/lib64/libpthread_g.a
+#   /usr/lib64/libresolv_g.a
+#   /usr/lib64/librpcsvc_g.a
+#   /usr/lib64/librt_g.a
+#   /usr/lib64/libutil_g.a
 #
 # Conditional build:
-%bcond_with    omitfp          # build without frame pointer (pass \--enable-omitfp)
+# min_kernel   (default is 2.6.12)
 %bcond_without memusage        # don't build memusage utility
-%bcond_with    kernelheaders   # use headers from %{_kernelsrcdir} instead of
-                               # linux-libc-headers (evil, breakage etc., don't use)
-%bcond_without linuxthreads    # don't build linuxthreads version (NPTL only)
-%bcond_without nptl            # don't build NPTL version (linuxthreads only)
-%bcond_without tls             # don't support TLS at all (implies no NPTL)
-%bcond_with    __thread        # use TLS in linuxthreads
 %bcond_without selinux         # without SELinux support (in nscd)
 %bcond_with    tests           # perform "make test"
-%bcond_with    tests_nptl      # perform NPTL tests on dual build (requires 2.6.x kernel)
 %bcond_without localedb        # don't build localedb-all (is time consuming)
 %bcond_with    cross           # build using crossgcc (without libgcc_eh)
 #
 # TODO:
 # - look at locale fixes/updates in bugzilla
+# - no more chicken-egg problem (postshell is no more dynamically linked with libc), remove SONAME symlinks? see files section.
 # [OLD]
 # - localedb-gen man pages(?)
-# - fix what trojan broke while upgreading (getaddrinfo-workaround)
 # - math/{test-fenv,test-tgmath,test-float,test-ifloat},
-#   linuxthreads/tst-cancel8, debug/backtrace-tst(SEGV)  fail on alpha
-# - problem compiling with --enable-bounded (must be reported to libc-alpha)
-#   (is this comment still valid???)
-#
-
-%{!?min_kernel:%global          min_kernel      2.4.6}
-%if "%{min_kernel}" < "2.6.0"
-%global                nptl_min_kernel 2.6.0
-%else
-%global                nptl_min_kernel %{min_kernel}
-%endif
-
-%if %{with tls}
-# sparc temporarily removed (broken)
-%ifnarch %{ix86} %{x8664} ia64 alpha s390 s390x sparc64 sparcv9 ppc ppc64
-%undefine      with_tls
-%endif
-%endif
-
-%if %{with nptl}
-# on x86 uses cmpxchgl (available since i486)
-# on sparc only sparcv9 is supported
-%ifnarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x sparc64 sparcv9 ppc ppc64
-%undefine      with_nptl
-%else
-%if %{without tls}
-%undefine      with_nptl
-%endif
-%endif
-%endif
+#   debug/backtrace-tst(SEGV)  fail on alpha
+%{!?min_kernel:%global         min_kernel      2.6.12}
 
 %ifarch sparc64
 %undefine      with_memusage
 %endif
 
-%if %{with linuxthreads} && %{with nptl}
-%define                with_dual       1
-%endif
-
-%define                llh_version     7:2.6.10.0-3
+%define                llh_version     7:2.6.12.0-10
 
 Summary:       GNU libc
 Summary(de):   GNU libc
@@ -74,101 +46,106 @@ Summary(ru):      GNU libc 
 Summary(tr):   GNU libc
 Summary(uk):   GNU libc ×ÅÒÓ¦§ 2.3
 Name:          glibc
-Version:       2.3.5
+Version:       2.5
 Release:       0.2
 Epoch:         6
 License:       LGPL
 Group:         Libraries
 Source0:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: 93d9c51850e0513aa4846ac0ddcef639
-Source1:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
-# Source1-md5: 77011b0898393c56b799bc011a0f37bf
+# Source0-md5: 1fb29764a6a650a4d5b409dda227ac9f
+Source1:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-libidn-%{version}.tar.bz2
+# Source1-md5: 8787868ba8962d9b125997ec2f25ac01
 Source2:       nscd.init
 Source3:       nscd.sysconfig
 Source4:       nscd.logrotate
 #Source5:      http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
-Source5:       %{name}-man-pages.tar.bz2
-# Source5-md5: 03bee93e9786b3e7dad2570ccb0cbc5c
-#Source6:      http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-Source6:       %{name}-non-english-man-pages.tar.bz2
-# Source6-md5: 6159f0a9b6426b5f6fc1b0d8d21b9b76
-Source7:       %{name}-localedb-gen
+Source5:       http://qboosh.cs.net.pl/man/%{name}-man-pages.tar.bz2
+# Source5-md5: f464eadf3cf06761f65639e44a179e6b
+Source6:       %{name}-localedb-gen
+Source7:       %{name}-LD-path.c
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-pl.po-update.patch
 Patch2:                %{name}-pld.patch
 Patch3:                %{name}-crypt-blowfish.patch
-Patch4:                %{name}-linuxthreads-lock.patch
-Patch5:                %{name}-pthread_create-manpage.patch
+Patch4:                %{name}-alpha-ev6-opcodes.patch
+Patch5:                %{name}-sparc-softfp-gcc.patch
 Patch6:                %{name}-paths.patch
-Patch7:                %{name}-postshell.patch
+Patch7:                %{name}-sparc64-fixes.patch
 Patch8:                %{name}-missing-nls.patch
 Patch9:                %{name}-java-libc-wait.patch
-Patch10:       %{name}-lthrds_noomit.patch
+
 Patch11:       %{name}-no_opt_override.patch
 Patch12:       %{name}-includes.patch
-Patch13:       %{name}-soinit-EH_FRAME.patch
+Patch13:       %{name}-ppc-inline-fsqrt.patch
 Patch14:       %{name}-sparc-errno_fix.patch
-Patch15:       %{name}-csu-quotes.patch
-Patch16:       %{name}-tests-noproc.patch
+
 Patch17:       %{name}-new-charsets.patch
-Patch18:       %{name}-sr_CS.patch
-Patch19:       %{name}-sparc64-dl-machine.patch
+
 Patch20:       %{name}-tzfile-noassert.patch
 Patch21:       %{name}-morelocales.patch
-Patch22:       %{name}-locale_ZA.patch
-Patch23:       %{name}-locale_fixes.patch
-Patch24:       %{name}-ZA_collate.patch
-Patch25:       %{name}-tls_fix.patch
-Patch26:       %{name}-iconvconfig-nxstack.patch
-Patch27:       %{name}-execvp.patch
-Patch28:       %{name}-cross-gcc_eh.patch
-Patch29:       %{name}-gcc4.patch
-Patch30:       %{name}-no_uint128_t.patch
+Patch22:       %{name}-locale_fixes.patch
+Patch23:       %{name}-ZA_collate.patch
+Patch24:       %{name}-iconvconfig-nxstack.patch
+Patch25:       %{name}-cross-gcc_eh.patch
 # PaX hack (dropped)
-#PatchX:       %{name}-pax_dl-execstack.patch
+#Patch30:      %{name}-pax_dl-execstack.patch
 URL:           http://www.gnu.org/software/libc/
+%{?with_selinux:BuildRequires: audit-libs-devel}
+BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: binutils >= 2:2.15.90.0.3
-BuildRequires: gcc >= 5:3.2
-BuildRequires: gcc < 5:4.0
-%ifarch ppc ppc64 sparc sparcv9 sparc64
-%if %{with nptl} || %{with __thread}
 BuildRequires: gcc >= 5:3.4
-%endif
-%endif
+BuildRequires: gawk
 %{?with_memusage:BuildRequires:        gd-devel >= 2.0.1}
 BuildRequires: gettext-devel >= 0.10.36
-%if %{without kernelheaders}
-BuildRequires: linux-libc-headers >= %{llh_version}
-%endif
+%{!?with_cross:BuildRequires:  dietlibc-static}
 %{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
+BuildRequires: linux-libc-headers >= %{llh_version}
 BuildRequires: perl-base
 BuildRequires: rpm-build >= 4.3-0.20030610.28
 BuildRequires: rpm-perlprov
-BuildRequires: rpmbuild(macros) >= 1.213
+BuildRequires: rpmbuild(macros) >= 1.315
 BuildRequires: sed >= 4.0.5
 BuildRequires: texinfo
 AutoReq:       false
-PreReq:                basesystem
-Requires:      glibc-misc = %{epoch}:%{version}-%{release}
-%{?with_tls:Provides:  glibc(tls)}
-Provides:      ldconfig
+Requires:      %{name}-misc = %{epoch}:%{version}-%{release}
+Requires:      basesystem
+Requires:      uname(release) >= %{min_kernel}
 Provides:      /sbin/ldconfig
+Provides:      glibc(nptl)
+Provides:      glibc(tls)
+Provides:      glibc64
+Provides:      ldconfig
 Obsoletes:     glibc-common
 Obsoletes:     glibc-debug
+Obsoletes:     glibc64
 Obsoletes:     ldconfig
 Conflicts:     kernel < %{min_kernel}
+Conflicts:     kernel24
+Conflicts:     kernel24-smp
 Conflicts:     ld.so < 1.9.9-10
 Conflicts:     man-pages < 1.43
+Conflicts:     poldek < 0.18.8-5
 Conflicts:     rc-scripts < 0.3.1-13
 Conflicts:     rpm < 4.1
-Conflicts:     poldek < 0.18.8-4
+ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x sparc sparc64 sparcv9 ppc ppc64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                debugcflags     -O1 -g
 # avoid -s here (ld.so must not be stripped to allow any program debugging)
-%define                rpmldflags      %{nil}
+%define                filterout_ld            (-Wl,)?-[sS] (-Wl,)?--strip.*
 %define        specflags_sparc64       -mcpu=ultrasparc -mvis -fcall-used-g6
+
+# -m from CFLAGS or even LDFLAGS is not propagated to some *.o linking
+%ifarch sparc sparcv9
+%{expand:%%define      __cc    %{__cc} -m32}
+%endif
+
+# Xen-friendly glibc
+%define                specflags_ia32          -mno-tls-direct-seg-refs
+%define                specflags_x86_64        -mno-tls-direct-seg-refs
+%define                specflags_amd64         -mno-tls-direct-seg-refs
+%define                specflags_ia32e         -mno-tls-direct-seg-refs
+
 # we don't want perl dependency in glibc-devel
 %define                _noautoreqfiles         %{_bindir}/mtrace
 # hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
@@ -176,11 +153,6 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # patched not to crash on partial hardlinks too)
 %define                _hack_dontneed_PartialHardlinkSets      1
 %define                _noautochrpath          .*\\(ldconfig\\|sln\\)
-%if %{with kernelheaders}
-%define                sysheaders      %{_kernelsrcdir}/include
-%else
-%define                sysheaders      %{_includedir}
-%endif
 
 %description
 Contains the standard libraries that are used by multiple programs on
@@ -189,7 +161,7 @@ upgrades, common system code is kept in one place and shared between
 programs. This package contains the most important sets of shared
 libraries, the standard C library and the standard math library.
 Without these, a Linux system will not function. It also contains
-national language (locale) support and timezone databases.
+national language (locale) support.
 
 Can be used on: Linux kernel >= %{min_kernel}.
 
@@ -201,8 +173,7 @@ sistema se guarda en un sitio y es compartido entre los programas.
 Este paquete contiene las bibliotecas compartidas más importantes, es
 decir la biblioteca C estándar y la biblioteca estándar de matemática.
 Sin éstas, un sistema Linux no podrá funcionar. También está incluido
-soporte de idiomas nacionales (locale) y bases de datos de zona de
-tiempo.
+soporte de idiomas nacionales (locale).
 
 Puede usarse con: núcleo Linux >= %{min_kernel}.
 
@@ -215,7 +186,7 @@ gemeinsam genutzt. Dieses Paket enth
 shared Libraries, die Standard-C-Library und die
 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
 Ferner enthält es den Support für die verschiedenen Sprachgregionen
-(locale) und die Zeitzonen-Datenbank.
+(locale).
 
 Can be used on: Linux kernel >= %{min_kernel}.
 
@@ -227,8 +198,7 @@ un endroit et partag
 bibliothèques partagées les plus importantes, la bibliothèque standard
 du C et la bibliothèque mathématique standard. Sans celles-ci, un
 système Linux ne peut fonctionner. Il contient aussi la gestion des
-langues nationales (locales) et les bases de données des zones
-horaires.
+langues nationales (locales).
 
 Can be used on: Linux kernel >= %{min_kernel}.
 
@@ -254,9 +224,9 @@ programami. Pakiet ten zawiera bardzo wa
 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
-jêzyków (locale) oraz definicje stref czasowych.
+jêzyków (locale).
 
-Przeznaczony dla j±dra Linux >= %{min_kernel}.
+Pakiet jest przeznaczony dla j±dra Linuksa >= %{min_kernel}.
 
 %description -l ru
 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
@@ -266,8 +236,7 @@ Przeznaczony dla j
 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
-ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
-×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
+ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale).
 
 Can be used on: Linux kernel >= %{min_kernel}.
 
@@ -290,17 +259,18 @@ Can be used on: Linux kernel >= %{min_kernel}.
 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
 Ú ÄÉÎÁͦÞÎÉȠ¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎՠ¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
 Â¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉȠ¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
-ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
-ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
+ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale).
 
 Can be used on: Linux kernel >= %{min_kernel}.
 
 %package misc
 Summary:       Utilities and data used by glibc
 Summary(pl):   Narzêdzia i dane u¿ywane przez glibc
-Group:         Development/Libraries
+Group:         Applications/System
 AutoReq:       false
-PreReq:                %{name} = %{epoch}:%{version}-%{release}
+Requires(pre): %{name} = %{epoch}:%{version}-%{release}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      tzdata >= 2006g-2
 
 %description misc
 Utilities and data used by glibc.
@@ -320,9 +290,10 @@ Summary(tr):       Geli
 Summary(uk):   äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
 Group:         Development/Libraries
 Requires:      %{name} = %{epoch}:%{version}-%{release}
-%{!?with_kernelheaders:Requires:       linux-libc-headers >= %{llh_version}}
+Requires:      %{name}-devel-utils = %{epoch}:%{version}-%{release}
+Requires:      %{name}-headers = %{epoch}:%{version}-%{release}
+Provides:      %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
 Obsoletes:     libiconv-devel
-Obsoletes:     glibc-headers
 
 %description devel
 To develop programs which use the standard C libraries (which nearly
@@ -376,6 +347,142 @@ kitapl
 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
 
+%package headers
+Summary:       Header files for development using standard C libraries
+Summary(pl):   Pliki nag³ówkowe do tworzenia programów przy u¿yciu standardowych bibliotek C
+Group:         Development/Building
+Provides:      %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
+%ifarch %{x8664}
+# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
+# have to be installed, not ix86 one.
+Obsoletes:     %{name}-headers(i386)
+Obsoletes:     %{name}-headers(i486)
+Obsoletes:     %{name}-headers(i586)
+Obsoletes:     %{name}-headers(i686)
+Obsoletes:     %{name}-headers(athlon)
+Obsoletes:     %{name}-headers(pentium3)
+Obsoletes:     %{name}-headers(pentium4)
+%endif
+%ifarch ppc64
+Obsoletes:     %{name}-headers(ppc)
+%endif
+%ifarch s390x
+Obsoletes:     %{name}-headers(s390)
+%endif
+%ifarch sparc64
+Obsoletes:     %{name}-headers(sparc)
+%endif
+Requires:      linux-libc-headers >= %{llh_version}
+
+%description headers
+The glibc-headers package contains the header files necessary for
+developing programs which use the standard C libraries (which are used
+by nearly all programs). If you are developing programs which will use
+the standard C libraries, your system needs to have these standard
+header files available in order to create the executables.
+
+Install glibc-headers if you are going to develop programs which will
+use the standard C libraries.
+
+%description headers -l pl
+Pakiet glibc-headers zawiera pliki nag³ówkowe niezbêdne do rozwijania
+programów u¿ywaj±cych standardowych bibliotek C (u¿ywanych przez
+prawie wszystkie programy). Je¶li tworzymy programy korzystaj±ce ze
+standardowych bibliotek C, system wymaga dostêpno¶ci tych
+standardowych plików nag³ówkowych do tworzenia programów
+wykonywalnych.
+
+Ten pakiet nale¿y zainstalowaæ je¶li zamierzamy tworzyæ programy
+korzystaj±ce ze standardowych bibliotek C.
+
+%package devel-utils
+Summary:       Utilities needed for development using standard C libraries
+Summary(pl):   Narzêdzia do tworzenia programów przy u¿yciu standardowych bibliotek C
+Group:         Development/Libraries
+Provides:      %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
+%ifarch %{x8664}
+# If both -m32 and -m64 is to be supported on AMD64, x86_64 package
+# have to be installed, not ix86 one.
+Obsoletes:     %{name}-devel-utils(i386)
+Obsoletes:     %{name}-devel-utils(i486)
+Obsoletes:     %{name}-devel-utils(i586)
+Obsoletes:     %{name}-devel-utils(i686)
+Obsoletes:     %{name}-devel-utils(athlon)
+Obsoletes:     %{name}-devel-utils(pentium3)
+Obsoletes:     %{name}-devel-utils(pentium4)
+%endif
+%ifarch ppc64
+Obsoletes:     %{name}-devel-utils(ppc)
+%endif
+%ifarch s390x
+Obsoletes:     %{name}-devel-utils(s390)
+%endif
+%ifarch sparc64
+Obsoletes:     %{name}-devel-utils(sparc)
+%endif
+
+%description devel-utils
+The glibc-devel-utils package contains utilities necessary for
+developing programs which use the standard C libraries (which are used
+by nearly all programs). If you are developing programs which will use
+the standard C libraries, your system needs to have these utilities
+available.
+
+Install glibc-devel-utils if you are going to develop programs which
+will use the standard C libraries.
+
+%description devel-utils -l pl
+Pakiet glibc-devel-utils zawiera narzêdzia niezbêdne do rozwijania
+programów u¿ywaj±cych standardowych bibliotek C (u¿ywanych przez
+prawie wszystkie programy). Je¶li tworzymy programy korzystaj±ce ze
+standardowych bibliotek C, system wymaga dostêpno¶ci tych narzêdzi do
+tworzenia programów wykonywalnych.
+
+Ten pakiet nale¿y zainstalowaæ je¶li zamierzamy tworzyæ programy
+korzystaj±ce ze standardowych bibliotek C.
+
+%package devel-doc
+Summary:       Documentation needed for development using standard C libraries
+Summary(pl):   Dokumentacja do tworzenia programów przy u¿yciu standardowych bibliotek C
+Group:         Documentation
+Provides:      %{name}-devel-doc(%{_target_cpu}) = %{epoch}:%{version}-%{release}
+%ifarch %{x8664}
+# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
+# have to be installed, not ix86 one.
+Obsoletes:     %{name}-devel-doc(i386)
+Obsoletes:     %{name}-devel-doc(i486)
+Obsoletes:     %{name}-devel-doc(i586)
+Obsoletes:     %{name}-devel-doc(i686)
+Obsoletes:     %{name}-devel-doc(athlon)
+Obsoletes:     %{name}-devel-doc(pentium3)
+Obsoletes:     %{name}-devel-doc(pentium4)
+%endif
+%ifarch ppc64
+Obsoletes:     %{name}-devel-doc(ppc)
+%endif
+%ifarch s390x
+Obsoletes:     %{name}-devel-doc(s390)
+%endif
+%ifarch sparc64
+Obsoletes:     %{name}-devel-doc(sparc)
+%endif
+
+%description devel-doc
+The glibc-devel-doc package contains info and manual pages necessary
+for developing programs which use the standard C libraries (which are
+used by nearly all programs).
+
+Install glibc-devel-doc if you are going to develop programs which
+will use the standard C libraries.
+
+%description devel-doc -l pl
+Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
+rozwijania programów u¿ywaj±cych standardowych bibliotek C (u¿ywanych
+przez prawie wszystkie programy).
+
+Ten pakiet nale¿y zainstalowaæ je¶li zamierzamy tworzyæ programy
+korzystaj±ce ze standardowych bibliotek C.
+
 %package -n nscd
 Summary:       Name Service Caching Daemon
 Summary(es):   Demonio de caché del servicio de nombres
@@ -384,17 +491,17 @@ Summary(pl):      Demon zapami
 Summary(ru):   ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
 Summary(uk):   ëÅÛÕÀÞÉÊ ÄÅÍÏΠÓÅצӦנ¦ÍÅÎ
 Group:         Networking/Daemons
-PreReq:                rc-scripts >= 0.2.0
+Requires(post):        fileutils
+Requires(post,preun):  /sbin/chkconfig
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
-Requires(post,preun):  /sbin/chkconfig
-Requires(post):        fileutils
-Requires(postun):      /usr/sbin/groupdel
-Requires(postun):      /usr/sbin/userdel
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 %{?with_selinux:Requires:      libselinux >= 1.18}
+Requires:      rc-scripts >= 0.2.0
 Provides:      group(nscd)
 Provides:      user(nscd)
 
@@ -428,7 +535,7 @@ nscd 
 Summary:       locale database source code
 Summary(es):   Código fuente de la base de datos de los locales
 Summary(pl):   Kod ¼ród³owy bazy locale
-Group:         Daemons
+Group:         Libraries
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      gzip
 Requires:      sed
@@ -452,8 +559,8 @@ Summary:    locale database for all locales supported by glibc
 Summary(es):   Base de datos de todos los locales soportados por glibc
 Summary(pl):   Baza danych locale dla wszystkich lokalizacji obs³ugiwanych przez glibc
 Group:         Libraries
-Requires:      iconv = %{epoch}:%{version}-%{release}
 Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      iconv = %{epoch}:%{version}-%{release}
 
 %description localedb-all
 This package contains locale database for all locales supported by
@@ -481,8 +588,8 @@ pakiet localedb-src mo
 %package -n iconv
 Summary:       Convert encoding of given files from one encoding to another
 Summary(es):   Convierte entre varias codificaciones de los ficheros dados
-Summary(pl):   Program do konwersji plików tekstowych z jednego kodowania do innego
-Group:         Applications/Text
+Summary(pl):   Modu³y do konwersji plików tekstowych z jednego kodowania do innego
+Group:         Libraries
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n iconv
@@ -499,12 +606,12 @@ Generic Character Set Conversion Interface (interfaz gen
 conversión de juegos de caracteres).
 
 %description -n iconv -l pl
-Program do konwersji plików tekstowych z jednego kodowania do innego.
-Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
-dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
-jakie¶ programy, które korzystaj± z Generic Character Set Conversion
-Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
-umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
+Modu³y do konwersji plików tekstowych z jednego kodowania do innego.
+Trzeba mieæ zainstalowany ten pakiet, aby wykonywaæ konwersjê
+dokumentów z jednego kodowania do innego lub do u¿ywania programów
+korzystaj±cych z Generic Character Set Conversion Interface w glibc,
+czyli z zestawu funkcji z tej biblioteki, które umo¿liwiaj± konwersjê
+kodowania danych z poziomu dowolnego programu.
 
 %package static
 Summary:       Static libraries
@@ -514,6 +621,7 @@ Summary(ru):        
 Summary(uk):   óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+Provides:      %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
 Obsoletes:     libiconv-static
 
 %description static
@@ -720,56 +828,9 @@ Un juguete.
 %description memusage -l pl
 Zabawka.
 
-%package zoneinfo_right
-Summary:       Non-POSIX (real) time zones
-Summary(es):   Zonas de tiempo reales (no de POSIX)
-Summary(pl):   Nie-POSIX-owe (prawdziwe) strefy czasowe
-Group:         Libraries
-Requires:      %{name} = %{epoch}:%{version}-%{release}
-
-%description zoneinfo_right
-You don't want this. Details at:
-http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
-
-%description zoneinfo_right -l es
-No lo necesita. Encontrará los detalles en:
-http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
-
-%description zoneinfo_right -l pl
-Nie potrzebujesz tego. Szczegó³y pod:
-http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
-
-%package -n %{name}64
-Summary:       GNU libc - 64-bit libraries
-Summary(es):   GNU libc - bibliotecas de 64 bits
-Summary(pl):   GNU libc - biblioteki 64-bitowe
-Group:         Libraries
-PreReq:                basesystem
-Requires:      %{name}-misc = %{epoch}:%{version}-%{release}
-Provides:      glibc = %{epoch}:%{version}-%{release}
-%{?with_tls:Provides:  glibc(tls)}
-Provides:      ldconfig
-Obsoletes:     glibc-common
-Obsoletes:     glibc-debug
-Obsoletes:     ldconfig
-Conflicts:     kernel < %{min_kernel}
-Conflicts:     ld.so < 1.9.9-10
-Conflicts:     man-pages < 1.43
-Conflicts:     rc-scripts < 0.3.1-13
-Conflicts:     rpm < 4.1
-Conflicts:     poldek < 0.18.8-4
-
-%description -n %{name}64
-64-bit GNU libc libraries for 64bit architecture.
-
-%description -n %{name}64 -l es
-Bibliotecas GNU libc de 64 bits para la arquitectura 64bit.
-
-%description -n %{name}64 -l pl
-Biblioteki 64-bitowe GNU libc dla architektury 64bit.
-
 %prep
 %setup -q -a1
+ln -s glibc-libidn-%{version} libidn
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
@@ -780,28 +841,23 @@ Biblioteki 64-bitowe GNU libc dla architektury 64bit.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
-%patch10 -p1
-# don't know, if it is good idea, for brave ones
-#%patch11 -p1
-%{!?with_kernelheaders:%patch12 -p1}
+
+%patch11 -p1
+%patch12 -p1
 %patch13 -p1
 %patch14 -p0
-%patch15 -p1
-%patch16 -p1
+
 %patch17 -p1
-%patch18 -p1
-%patch19 -p1
+
 %patch20 -p1
 %patch21 -p1
 %patch22 -p1
 %patch23 -p1
 %patch24 -p1
-%patch25 -p1
-%patch26 -p1
-%patch27 -p1
-%{?with_cross:%patch28 -p1}
-#%patch29 -p1
-#%patch30 -p1
+%{?with_cross:%patch25 -p1}
+
+# these would be copied to localedb-src
+rm -f localedata/locales/*{.orig,~}
 
 chmod +x scripts/cpp
 
@@ -810,55 +866,33 @@ cd nptl/sysdeps/i386 && ln -s i686 i786 && cd -
 cd nptl/sysdeps/unix/sysv/linux/i386 && ln -s i686 i786 && cd -
 
 %build
-# Build glibc
 cp -f /usr/share/automake/config.sub scripts
 %{__aclocal}
 %{__autoconf}
+
 rm -rf builddir
 install -d builddir
 cd builddir
 %ifarch sparc64
 CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
 %endif
-%if %{with linuxthreads}
+AWK="gawk" \
 ../%configure \
        --enable-kernel="%{min_kernel}" \
-       --%{?with_omitfp:en}%{!?with_omitfp:dis}able-omitfp \
-       --with%{!?with___thread:out}-__thread \
-       --with-headers=%{sysheaders} \
-       --with%{!?with_selinux:out}-selinux \
-       --with%{!?with_tls:out}-tls \
-        --enable-add-ons=linuxthreads \
-       --enable-profile
-%{__make}
-%endif
-%if %{with nptl}
-%if %{with dual}
-cd ..
-rm -rf builddir-nptl
-install -d builddir-nptl
-cd builddir-nptl
-%endif
-../%configure \
-       --enable-kernel="%{nptl_min_kernel}" \
-       --%{?with_omitfp:en}%{!?with_omitfp:dis}able-omitfp \
-       --with-headers=%{sysheaders} \
+       --enable-omitfp \
+       --with-headers=%{_includedir} \
        --with%{!?with_selinux:out}-selinux \
        --with-tls \
-        --enable-add-ons=nptl \
+       --enable-add-ons=nptl,libidn \
+       --enable-stackguard-randomization \
+       --enable-hidden-plt \
        --enable-profile
-# simulate cross-compiling so we can perform dual builds on 2.4.x kernel
-%{__make} \
-       %{?with_dual:cross-compiling=yes}
-%endif
-cd ..
 
-%if %{with linuxthreads}
-%{__make} -C linuxthreads/man
-%endif
+%{__make}
+cd ..
 
 %if %{with tests}
-for d in builddir %{?with_tests_nptl:builddir-nptl} ; do
+for d in builddir; do
 cd $d
 env LANGUAGE=C LC_ALL=C \
 %{__make} tests 2>&1 | awk '
@@ -876,6 +910,10 @@ cd ..
 done
 %endif
 
+%if !%{with cross}
+diet %{__cc} %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd}
@@ -900,66 +938,21 @@ PICFILES="libc_pic.a libc.map
 install $PICFILES                              $RPM_BUILD_ROOT%{_libdir}
 install elf/soinit.os                          $RPM_BUILD_ROOT%{_libdir}/soinit.o
 install elf/sofini.os                          $RPM_BUILD_ROOT%{_libdir}/sofini.o
-
-install elf/postshell                          $RPM_BUILD_ROOT/sbin
 cd ..
 
-%if %{with dual}
-env LANGUAGE=C LC_ALL=C \
-%{__make} -C builddir-nptl install \
-       cross-compiling=yes \
-       install_root=$RPM_BUILD_ROOT/nptl
-
-install -d $RPM_BUILD_ROOT{/%{_lib}/tls,%{_libdir}/nptl,%{_includedir}/nptl}
-for f in libc libm libpthread libthread_db librt; do
-       mv -f $RPM_BUILD_ROOT/nptl/%{_lib}/${f}[-.]* $RPM_BUILD_ROOT/%{_lib}/tls
-done
-$RPM_BUILD_ROOT/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/tls
-
-for f in libc.so libpthread.so ; do
-       cat $RPM_BUILD_ROOT/nptl%{_libdir}/$f | sed \
-               -e "s|/libc.so.6|/tls/libc.so.6|g" \
-               -e "s|/libpthread.so.0|/tls/libpthread.so.0|g" \
-               -e "s|/libpthread_nonshared.a|/nptl/libpthread_nonshared.a|g" \
-               > $RPM_BUILD_ROOT%{_libdir}/nptl/$f
-done
-for f in libc.a libpthread.a libpthread_nonshared.a; do
-       mv -f $RPM_BUILD_ROOT/nptl%{_libdir}/$f $RPM_BUILD_ROOT%{_libdir}/nptl
-done
-cd $RPM_BUILD_ROOT/nptl%{_prefix}/include
-       for f in `find . -type f`; do
-               if ! [ -f $RPM_BUILD_ROOT%{_prefix}/include/$f ] \
-                  || ! cmp -s $f $RPM_BUILD_ROOT%{_prefix}/include/$f ; then
-                       install -d $RPM_BUILD_ROOT%{_prefix}/include/nptl/`dirname $f`
-                       cp -a $f $RPM_BUILD_ROOT%{_prefix}/include/nptl/$f
-               fi
-       done
-cd -
-rm -rf $RPM_BUILD_ROOT/nptl
+%if !%{with cross}
+install glibc-postinst                         $RPM_BUILD_ROOT/sbin
 %endif
 
-%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so  $RPM_BUILD_ROOT%{_libdir}}
+%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
 mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so  $RPM_BUILD_ROOT%{_libdir}
 
-%if %{with linuxthreads}
-install linuxthreads/man/*.3thr                $RPM_BUILD_ROOT%{_mandir}/man3
-%endif
-
-rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules,posix/*}
-
-#cd $RPM_BUILD_ROOT%{_datadir}/zoneinfo
-#for i in [A-Z]*; do
-#      ln -s ../$i posix
-#done
-#cd -
+rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
+# moved to tzdata package
+rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo
 
-ln -sf %{_sysconfdir}/localtime        $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
-ln -sf localtime               $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
-ln -sf localtime               $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
 ln -sf libbsd-compat.a         $RPM_BUILD_ROOT%{_libdir}/libbsd.a
 
-rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
-
 # make symlinks across top-level directories absolute
 for l in anl BrokenLocale crypt dl m nsl resolv rt thread_db util ; do
        rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
@@ -969,13 +962,14 @@ done
 install %{SOURCE2}             $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
 install %{SOURCE3}             $RPM_BUILD_ROOT/etc/sysconfig/nscd
 install %{SOURCE4}             $RPM_BUILD_ROOT/etc/logrotate.d/nscd
-install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
+install nscd/nscd.conf         $RPM_BUILD_ROOT%{_sysconfdir}
 install nss/nsswitch.conf      $RPM_BUILD_ROOT%{_sysconfdir}
+install posix/gai.conf         $RPM_BUILD_ROOT%{_sysconfdir}
 
 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
-bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
-> $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
+echo 'include ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
 
 :> $RPM_BUILD_ROOT/var/log/nscd
@@ -986,19 +980,10 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
 rm -rf documentation
 install -d documentation
 
-%if %{with linuxthreads}
-for f in ChangeLog Changes README ; do
-       cp -f linuxthreads/$f documentation/${f}.linuxthreads
-done
-%endif
-%if %{with nptl}
-for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing} ;  do
-       cp -f nptl/$f documentation/${f}.nptl
+for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing}; do
+       cp -f nptl/$f documentation/$f.nptl
 done
-%endif
-cp -f crypt/README.ufc-crypt documentation
-
-cp -f ChangeLog* documentation
+cp -f crypt/README.ufc-crypt ChangeLog* documentation
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
 
@@ -1031,29 +1016,37 @@ for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/*
        fi
 done
 # XXX: to be added when become supported by glibc
-# tk, yo (used by GNOME)
-# ven -> ve (used by KDE)
+# az_IR (gtk+)
+# gn (gn_BR in gnome, maybe gn_PY)
+# dv, haw, kok, ps (iso-codes)
+# my (gaim)
+#
 # NOTES:
-# bn is used for bn_BD or bn_IN?
+# what about sr@ije? it used to be sr_CS@ije (should be @[i]jekavian?), but
+# now this dialect uses sr_ME locale - rename dir to sr_ME?
+#
+# bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
+#   till now
+#
 # 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,sk,sv,tr,zh_CN,zh_TW
-for i in af am ang ar az bg bn br bs cy de_AT en en@boldquot en@quot en_AU \
-    en_CA en_US eo es_AR es_MX et eu fa fo ga gu he hi hsb ia id is ka kn \
-    leet lg li lo lt lv mi mk ml mn mr ms mt nds ne nn nso or pa pt ro ru se \
-    sl sq sr sr@Latn sr@ije ss ta tg th tlh uk uz ve vi wa xh yi zu ; do
+#   be,ca,cs,da,de,el,en_GB,es,fi,fr,gl,hr,hu,it,ja,ko,nb,nl,pl,pt_BR,sk,sv,
+#   tr,zh_CN,zh_TW
+#
+for i in aa af am ang ar as az bg bn bn_IN br bs byn cy de_AT dz en en@boldquot \
+    en@quot en_AU en_CA en_US eo es_AR es_MX es_NI et eu fa fo fr_BE fy ga \
+    gez gu gv he hi hsb hy ia id is it_CH iu ka kk kl km kn ku kw ky leet lg li \
+    lo lt lv mg mi mk ml mn mr ms mt nds ne nl_BE nn nso oc om or pa pt rm ro \
+    ru rw sa se si sid sl so sq sr sr@Latn sr@ije ss syr sw ta te tg th ti tig \
+    tk tl tlh tt ug uk ur uz ve vi wa wal xh yi yo zh_HK zu ; do
        if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
                install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
                lang=`echo $i | sed -e 's/_.*//'`
                echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
        fi
 done
-cd $RPM_BUILD_ROOT%{_datadir}/locale
-ln -s zh_CN zh_SG
-ln -s zh_CN zh_HK
-cd -
 
 # localedb-gen infrastructure
-install %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
+install %{SOURCE6} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
 install localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
 
 # shutup check-files
@@ -1069,31 +1062,23 @@ rm -rf $RPM_BUILD_ROOT
 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
 # when %%postun is run
 
-%ifarch %{x8664} ppc64 s390x sparc64
-%post  -n %{name}64 -p /sbin/postshell
-%else
+%if !%{with cross}
 %post  -p /sbin/postshell
-%endif
+/sbin/glibc-postinst /%{_lib}/%{_host_cpu}
 /sbin/ldconfig
 -/sbin/telinit u
 
-%ifarch %{x8664} ppc64 s390x sparc64
-%postun        -n %{name}64 -p /sbin/postshell
-%else
 %postun        -p /sbin/postshell
-%endif
 /sbin/ldconfig
 -/sbin/telinit u
 
-%ifarch %{x8664} ppc64 s390x sparc64
-%triggerpostun -n %{name}64 -p /sbin/postshell -- glibc-misc < 6:2.3.4-0.20040505.1
-%else
-%triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.4-0.20040505.1
+%triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
+-/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
+-/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
 %endif
--/bin/mv %{_sysconfdir}/ld.so.conf.rpmsave %{_sysconfdir}/ld.so.conf
 
 %post  memusage -p /sbin/ldconfig
-%postun memusage -p /sbin/ldconfig
+%postun        memusage -p /sbin/ldconfig
 
 %post -n iconv -p %{_sbindir}/iconvconfig
 
@@ -1113,17 +1098,11 @@ touch /var/log/nscd
 chmod 000 /var/log/nscd
 chown root:root /var/log/nscd
 chmod 640 /var/log/nscd
-if [ -f /var/lock/subsys/nscd ]; then
-       /etc/rc.d/init.d/nscd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
-fi
+%service nscd restart "nscd daemon"
 
 %preun -n nscd
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/nscd ]; then
-               /etc/rc.d/init.d/nscd stop 1>&2
-       fi
+       %service nscd stop
        /sbin/chkconfig --del nscd
 fi
 
@@ -1133,19 +1112,16 @@ if [ "$1" = "0" ]; then
        %groupremove nscd
 fi
 
-%ifarch %{x8664} ppc64 s390x sparc64
-%files -n %{name}64
-%defattr(644,root,root,755)
-%else
 %files
 %defattr(644,root,root,755)
-%endif
-%defattr(644,root,root,755)
 %doc README NEWS FAQ BUGS
-%attr(755,root,root) /sbin/postshell
+%if !%{with cross}
+%attr(755,root,root) /sbin/glibc-postinst
+%endif
 %attr(755,root,root) /sbin/ldconfig
 # ld* and libc.so.6 SONAME symlinks must be in package because of
 # chicken-egg problem (postshell is dynamically linked with libc);
+# NOTE: postshell is now linked statically with diet
 # ld-*.so SONAME is:
 #   ld.so.1 on ppc
 #   ld64.so.1 on ppc64,s390x
@@ -1157,12 +1133,9 @@ fi
 %attr(755,root,root) /%{_lib}/libdl*
 %attr(755,root,root) /%{_lib}/libnsl*
 %attr(755,root,root) /%{_lib}/lib[BScmprtu]*
-%if %{with dual}
-%dir /%{_lib}/tls
-%attr(755,root,root) /%{_lib}/tls/lib[cmprt]*
-%endif
 %{?with_localedb:%dir %{_libdir}/locale}
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
+%dir %{_sysconfdir}/ld.so.conf.d
 %ghost %{_sysconfdir}/ld.so.cache
 
 #%files -n nss_dns
@@ -1177,6 +1150,8 @@ fi
 %defattr(644,root,root,755)
 
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
+
 %config %{_sysconfdir}/rpc
 
 %attr(755,root,root) /sbin/sln
@@ -1201,8 +1176,6 @@ fi
 
 %dir %{_datadir}/locale
 %{_datadir}/locale/locale.alias
-%{_datadir}/zoneinfo
-%exclude %{_datadir}/zoneinfo/right
 
 %{_mandir}/man1/catchsegv.1*
 %{_mandir}/man1/getconf.1*
@@ -1224,6 +1197,7 @@ fi
 %lang(cs) %{_mandir}/cs/man7/*
 %lang(de) %{_mandir}/de/man5/tzfile.5*
 %lang(de) %{_mandir}/de/man7/*
+%lang(es) %{_mandir}/es/man1/ldd.1*
 %lang(es) %{_mandir}/es/man5/locale.5*
 %lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
 %lang(es) %{_mandir}/es/man5/tzfile.5*
@@ -1262,6 +1236,7 @@ fi
 %lang(ja) %{_mandir}/ja/man8/tzselect.8*
 %lang(ja) %{_mandir}/ja/man8/zdump.8*
 %lang(ja) %{_mandir}/ja/man8/zic.8*
+%lang(ko) %{_mandir}/ko/man1/ldd.1*
 %lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
 %lang(ko) %{_mandir}/ko/man5/tzfile.5*
 %lang(ko) %{_mandir}/ko/man7/*
@@ -1279,12 +1254,22 @@ fi
 %lang(pt) %{_mandir}/pt/man8/tzselect.8*
 %lang(pt) %{_mandir}/pt/man8/zdump.8*
 %lang(pt) %{_mandir}/pt/man8/zic.8*
+%lang(ru) %{_mandir}/ru/man1/getent.1*
+%lang(ru) %{_mandir}/ru/man1/iconv.1*
+%lang(ru) %{_mandir}/ru/man1/ldd.1*
+%lang(ru) %{_mandir}/ru/man1/locale.1*
+%lang(ru) %{_mandir}/ru/man1/rpcgen.1*
+%lang(ru) %{_mandir}/ru/man5/locale.5*
 %lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
 %lang(ru) %{_mandir}/ru/man5/tzfile.5*
 %lang(ru) %{_mandir}/ru/man7/*
+%lang(ru) %{_mandir}/ru/man8/ld*.8*
+%lang(ru) %{_mandir}/ru/man8/rpcinfo.8*
 %lang(ru) %{_mandir}/ru/man8/tzselect.8*
 %lang(ru) %{_mandir}/ru/man8/zdump.8*
 %lang(ru) %{_mandir}/ru/man8/zic.8*
+%lang(tr) %{_mandir}/tr/man1/iconv.1*
+%lang(tr) %{_mandir}/tr/man1/ldd.1*
 %lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
 %lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
 %lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
@@ -1294,10 +1279,6 @@ fi
 %lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
 %lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
 
-%files zoneinfo_right
-%defattr(644,root,root,755)
-%{_datadir}/zoneinfo/right
-
 %files -n nss_compat
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/libnss_compat*.so*
@@ -1324,11 +1305,6 @@ fi
 
 %files devel
 %defattr(644,root,root,755)
-%doc documentation/* NOTES PROJECTS
-%attr(755,root,root) %{_bindir}/gencat
-%attr(755,root,root) %{_bindir}/*prof*
-%attr(755,root,root) %{_bindir}/*trace
-
 %attr(755,root,root) %{_libdir}/lib[!cmp]*.so
 %attr(755,root,root) %{_libdir}/libcrypt.so
 %attr(755,root,root) %{_libdir}/libm.so
@@ -1337,31 +1313,31 @@ fi
 # ld scripts
 %{_libdir}/libc.so
 %{_libdir}/libpthread.so
-
 %{_libdir}/libbsd-compat.a
 %{_libdir}/libbsd.a
 %{_libdir}/libc_nonshared.a
 %{_libdir}/libg.a
 %{_libdir}/libieee.a
+%ifarch alpha ppc sparc
+%{_libdir}/libnldbl_nonshared.a
+%endif
 %{_libdir}/libpthread_nonshared.a
 %{_libdir}/librpcsvc.a
-
-%if %{with dual}
-%dir %{_libdir}/nptl
-# ld scripts
-%{_libdir}/nptl/libc.so
-%{_libdir}/nptl/libpthread.so
-%{_libdir}/nptl/libpthread_nonshared.a
-%{_includedir}/nptl
+%ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
+%{_includedir}/gnu/stubs-*.h
 %endif
 
+%files headers
+%defattr(644,root,root,755)
 %{_includedir}/*.h
 %ifarch alpha
 %{_includedir}/alpha
 %endif
 %{_includedir}/arpa
 %{_includedir}/bits
-%{_includedir}/gnu
+%dir %{_includedir}/gnu
+%{_includedir}/gnu/lib*.h
+%{_includedir}/gnu/stubs.h
 %{_includedir}/net
 %{_includedir}/netash
 %{_includedir}/netatalk
@@ -1379,6 +1355,15 @@ fi
 %{_includedir}/scsi
 %{_includedir}/sys
 
+%files devel-utils
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gencat
+%attr(755,root,root) %{_bindir}/*prof*
+%attr(755,root,root) %{_bindir}/*trace
+
+%files devel-doc
+%defattr(644,root,root,755)
+%doc documentation/* NOTES PROJECTS
 %{_infodir}/libc.info*
 
 %{_mandir}/man1/sprof.1*
@@ -1394,7 +1379,9 @@ fi
 %lang(nl) %{_mandir}/nl/man3/*
 %lang(pl) %{_mandir}/pl/man3/*
 %lang(pt) %{_mandir}/pt/man3/*
+%lang(ru) %{_mandir}/ru/man1/sprof.1*
 %lang(ru) %{_mandir}/ru/man3/*
+%lang(tr) %{_mandir}/tr/man3/*
 %lang(uk) %{_mandir}/uk/man3/*
 %lang(zh_CN) %{_mandir}/zh_CN/man3/*
 
@@ -1414,12 +1401,17 @@ fi
 %{_mandir}/man5/nscd.conf.5*
 %{_mandir}/man8/nscd.8*
 %{_mandir}/man8/nscd_nischeck.8*
+%lang(es) %{_mandir}/es/man5/nscd.conf.5*
+%lang(es) %{_mandir}/es/man8/nscd.8*
 %lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
 %lang(fr) %{_mandir}/fr/man8/nscd.8*
 %lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
 %lang(ja) %{_mandir}/ja/man8/nscd.8*
 %lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
 %lang(pt) %{_mandir}/pt/man8/nscd.8*
+%lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
+%lang(ru) %{_mandir}/ru/man8/nscd.8*
+%lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
 
 %files -n localedb-src
 %defattr(644,root,root,755)
@@ -1427,6 +1419,7 @@ fi
 %attr(755,root,root) %{_bindir}/localedb-gen
 %{_datadir}/i18n
 %{_mandir}/man1/localedef.1*
+%lang(ru) %{_mandir}/ru/man1/localedef.1*
 
 %if %{with localedb}
 %files localedb-all
@@ -1455,14 +1448,9 @@ fi
 %{_libdir}/libresolv.a
 %{_libdir}/librt.a
 %{_libdir}/libutil.a
-%if %{with dual}
-%{_libdir}/nptl/libc.a
-%{_libdir}/nptl/libpthread.a
-%endif
 
 %files profile
 %defattr(644,root,root,755)
-#{?with_dual:%{_libdir}/nptl/lib*_p.a}
 %{_libdir}/lib*_p.a
 
 %files pic
This page took 0.961374 seconds and 4 git commands to generate.