]> git.pld-linux.org Git - packages/glibc.git/blobdiff - glibc.spec
- added ia64
[packages/glibc.git] / glibc.spec
index 8191dd536865ca6dbf3a0a4a2d8175cfed3e76dc..8709777887fdcb61607a3d5811a61065a910b004 100644 (file)
@@ -1,15 +1,54 @@
 #
 # You can define min_kernel macro by "rpm --define 'min_kernel version'"
-# default is 2.2.0 (no changes up to 2.3.25)
+# default is 2.4.6
 #
-# _without_dist_kernel build without kernel from the distribution;
-#                      headers will be searched in %_kernelsrcdir/include.
-# _without_fp          build without frame pointer (pass --enable-omitfp)
+# Conditional build:
+%bcond_with    omitfp          # build without frame pointer (pass \--enable-omitfp)
+%bcond_without memusage        # don't build memusage utility
+%bcond_with    kernelheaders   # use headers from kernel-headers instead of
+                               # linux-libc-headers (evil, breakage etc., don't use)
+%bcond_without dist_kernel     # for above, allow non-distribution kernel
+%bcond_with    nptl            # use nptl instead of linuxthreads (implies tls)
+%bcond_with    tls             # use tls
+%bcond_with    tests           # perform "make test"
 
-%{!?min_kernel:%define         min_kernel      2.2.0}
+#
+# TODO:
+# - localedb-gen man pages(?)
+# - fix what trojan broke while upgreading (getaddrinfo-workaround)
+#
+
+%{!?min_kernel:%global          min_kernel      2.4.6}
+
+%if %{with nptl}
+# it seems that nptl uses cmpxchgl (available since i486) on x86
+%ifarch i486 i586 i686 pentium3 pentium4 athlon amd64 ia64 alpha s390 s390x sparcv9 ppc ppc64
+%if "%{min_kernel}" < "2.6.0"
+%global                min_kernel      2.6.0
+%endif
+# NPTL requires TLS
+%define                with_tls        1
+%else
+%undefine      with_nptl
+%endif
+%endif
+
+%if %{with tls}
+%ifnarch %{ix86} amd64 ia64 alpha s390 s390x sparc sparcv9 ppc ppc64
+%undefine      with_tls
+%endif
+%endif
+
+%ifarch sparc64
+%undefine      with_memusage
+%endif
+
+%define                llh_version     7:2.6.6.0
+%define                _snap           20040707
 
 Summary:       GNU libc
 Summary(de):   GNU libc
+Summary(es):   GNU libc
 Summary(fr):   GNU libc
 Summary(ja):   GNU libc ¥é¥¤¥Ö¥é¥ê
 Summary(pl):   GNU libc
@@ -17,67 +56,96 @@ Summary(ru):        GNU libc 
 Summary(tr):   GNU libc
 Summary(uk):   GNU libc ×ÅÒÓ¦§ 2.3
 Name:          glibc
-Version:       2.3.2
-Release:       2
+Version:       2.3.4
+Release:       0.%{_snap}.1%{?with_nptl:+nptl}%{!?with_nptl:%{?with_tls:+tls}}
 Epoch:         6
 License:       LGPL
 Group:         Libraries
-Source0:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: ede969aad568f48083e413384f20753c
-Source1:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
-# Source1-md5: 894b8969cfbdf787c73e139782167607
+#Source0:      ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
+Source0:       %{name}-%{_snap}.tar.bz2
+# Source0-md5: 7768ef6077b979c52f3c3bfd6da20c53
+#Source1:      ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
+#Source1:      %{name}-linuxthreads-2.3.3.tar.bz2
 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-md5: ddba280857330dabba4d8c16d24a6dfd
-Source6:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-# Source6-md5: 2e3992c2e1bc94212c2cd33236de6058
+#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
 # borrowed from util-linux
-Source7:       sln.8
+Source7:       %{name}-localedb-gen
 Patch0:                %{name}-info.patch
+Patch1:                %{name}-pl.po-update.patch
 Patch2:                %{name}-pld.patch
 Patch3:                %{name}-crypt-blowfish.patch
-Patch4:                %{name}-string2-pointer-arith.patch
-Patch5:                %{name}-linuxthreads-lock.patch
-Patch6:                %{name}-pthread_create-manpage.patch
-Patch9:                %{name}-paths.patch
-Patch10:       %{name}-vaargs.patch
-Patch11:       %{name}-getaddrinfo-workaround.patch
-Patch12:       %{name}-postshell.patch
-Patch13:       %{name}-pl.po-update.patch
-Patch14:       %{name}-missing-nls.patch
-Patch16:       %{name}-java-libc-wait.patch
-Patch17:       %{name}-morelocales.patch
-Patch18:       %{name}-lthrds_noomit.patch
-Patch19:       %{name}-no_opt_override.patch
+Patch4:                %{name}-linuxthreads-lock.patch
+Patch5:                %{name}-pthread_create-manpage.patch
+Patch6:                %{name}-paths.patch
+Patch7:                %{name}-i786.patch
+Patch8:                %{name}-postshell.patch
+Patch9:                %{name}-missing-nls.patch
+Patch10:       %{name}-java-libc-wait.patch
+Patch11:       %{name}-lthrds_noomit.patch
+Patch12:       %{name}-no_opt_override.patch
+# this is broken (hardcoded /usr/src/linux)
+Patch13:       %{name}-kernel_includes.patch
+Patch14:       %{name}-includes.patch
+Patch15:       %{name}-soinit-EH_FRAME.patch
+Patch16:       %{name}-sparc-errno_fix.patch
+Patch17:       %{name}-csu-quotes.patch
+Patch18:       %{name}-tests-noproc.patch
+Patch19:       %{name}-new-charsets.patch
+Patch20:       %{name}-sr_CS.patch
+Patch21:       %{name}-sparc64-dl-machine.patch
+Patch22:       %{name}-tzfile-noassert.patch
+# PaX
+Patch30:       %{name}-pax_iconvconfig.patch
+Patch31:       %{name}-pax_dl-execstack.patch
 URL:           http://www.gnu.org/software/libc/
-BuildRequires: binutils >= 2.13.90.0.2
+BuildRequires: automake
+BuildRequires: binutils >= 2.15.90.0.3
 BuildRequires: gcc >= 3.2
-BuildRequires: gd-devel >= 2.0.1
+%{?with_memusage:BuildRequires:        gd-devel >= 2.0.1}
 BuildRequires: gettext-devel >= 0.10.36
-%{!?_without_dist_kernel:BuildRequires:        kernel-headers}
-BuildRequires: libpng-devel
+%if %{with kernelheaders}
+%{?with_dist_kernel:BuildRequires:     kernel-headers < 2.5}
+%else
+BuildRequires: linux-libc-headers >= %{llh_version}
+%endif
 BuildRequires: perl-base
-BuildRequires: rpm-build >= 4.0.2-46
+BuildRequires: rpm-build >= 4.3-0.20030610.28
 BuildRequires: rpm-perlprov
 BuildRequires: sed >= 4.0.5
 BuildRequires: texinfo
+AutoReq:       false
+PreReq:                basesystem
+Requires:      glibc-misc = %{epoch}:%{version}-%{release}
+%{?with_tls:Provides:  glibc(tls)}
 Provides:      ld.so.2
 Provides:      ldconfig
 Provides:      /sbin/ldconfig
 Obsoletes:     %{name}-common
 Obsoletes:     %{name}-debug
 Obsoletes:     ldconfig
-Autoreq:       false
-PreReq:                basesystem
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 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
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                debugcflags     -O1 -g
+%ifarch sparc64
+%define        specflags_sparc64       -mvis -fcall-used-g6
+%define                _libdir                 /usr/lib64
+%endif
+# hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
+# (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
+# patched not to crash on partial hardlinks too)
+%define                _hack_dontneed_PartialHardlinkSets      1
 
 %description
 Contains the standard libraries that are used by multiple programs on
@@ -88,8 +156,20 @@ 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.
 
-Compiled on: Linux kernel %{_kernel_ver_str}. Can be used on: Linux
-kernel >= %{min_kernel}.
+Can be used on: Linux kernel >= %{min_kernel}.
+
+%description -l es
+Contiene las bibliotecas estándared que son usadas por varios
+programas del sistema. Para ahorrar el espacio en el disco y la
+memoria, igual que para facilitar actualizaciones, código común del
+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.
+
+Puede usarse con: núcleo Linux >= %{min_kernel}.
 
 %description -l de
 Enthält die Standard-Libraries, die von verschiedenen Programmen im
@@ -102,8 +182,7 @@ 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.
 
-Compiled on: Linux kernel %{_kernel_ver_str}. Can be used on: Linux
-kernel >= %{min_kernel}.
+Can be used on: Linux kernel >= %{min_kernel}.
 
 %description -l fr
 Contient les bibliothèques standards utilisées par de nombreux
@@ -116,8 +195,7 @@ syst
 langues nationales (locales) et les bases de données des zones
 horaires.
 
-Compiled on: Linux kernel %{_kernel_ver_str}. Can be used on: Linux
-kernel >= %{min_kernel}.
+Can be used on: Linux kernel >= %{min_kernel}.
 
 %description -l ja
 glibc
@@ -130,6 +208,8 @@ glibc
 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¤Þ¤¿ÃÏ°è¸À¸ì (locale) ¥µ¥Ý¡¼¥È¤È¥¿¥¤¥à¥¾¡¼¥ó¥Ç¡¼¥¿¥Ù¡¼¥¹
 ¥µ¥Ý¡¼¥È¤ò¤Õ¤¯¤ß¤Þ¤¹¡£
 
+Can be used on: Linux kernel >= %{min_kernel}.
+
 %description -l pl
 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
@@ -141,8 +221,7 @@ 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.
 
-Pakiet skompilowano na nag³ówkach j±dra Linuksa %{_kernel_ver_str}.
-Mo¿na go u¿ywaæ na j±drach Linuksa >= %{min_kernel}.
+Przeznaczony dla j±dra Linux >= %{min_kernel}.
 
 %description -l ru
 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
@@ -155,8 +234,7 @@ Mo
 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
 ×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
 
-Compiled on: Linux kernel %{_kernel_ver_str}. Can be used on: Linux
-kernel >= %{min_kernel}.
+Can be used on: Linux kernel >= %{min_kernel}.
 
 %description -l tr
 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
@@ -167,8 +245,7 @@ kitapl
 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
 
-Compiled on: Linux kernel %{_kernel_ver_str}. Can be used on: Linux
-kernel >= %{min_kernel}.
+Can be used on: Linux kernel >= %{min_kernel}.
 
 %description -l uk
 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
@@ -181,12 +258,25 @@ kernel >= %{min_kernel}.
 ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
 ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
 
-Compiled on: Linux kernel %{_kernel_ver_str}. Can be used on: Linux
-kernel >= %{min_kernel}.
+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
+AutoReq:       false
+PreReq:                %{name} = %{epoch}:%{version}-%{release}
+
+%description misc
+Utilities and data used by glibc.
+
+%description misc -l pl
+Narzêdzia i dane u¿ywane przez glibc.
 
 %package devel
 Summary:       Additional libraries required to compile
 Summary(de):   Weitere Libraries zum Kompilieren
+Summary(es):   Bibliotecas adicionales necesarias para la compilación
 Summary(fr):   Librairies supplémentaires nécessaires à la compilation
 Summary(ja):   É¸½à C ¥é¥¤¥Ö¥é¥ê¤Ç»È¤ï¤ì¤ë¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
 Summary(pl):   Dodatkowe biblioteki wymagane podczas kompilacji
@@ -194,7 +284,9 @@ Summary(ru):        
 Summary(tr):   Geliþtirme için gerekli diðer kitaplýklar
 Summary(uk):   äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+%{!?with_kernelheaders:Requires:       linux-libc-headers >= %{llh_version}}
+Obsoletes:     libiconv-devel
 
 %description devel
 To develop programs which use the standard C libraries (which nearly
@@ -206,6 +298,12 @@ Bei der Entwicklung von Programmen, die die Standard-C-Libraries
 verwenden (also fast alle), benötigt das System diese Standard-Header-
 und Objektdateien zum Erstellen der ausführbaren Programme.
 
+%description devel -l es
+Para desarrollar programas que utilizan las bibliotecas C estándar (lo
+cual hacen prácticamente todos los programas), el sistema necesita
+disponer de estos ficheros de cabecera y de objetos para crear los
+ejecutables.
+
 %description devel -l fr
 Pour développer des programmes utilisant les bibliothèques standard du
 C (ce que presque tous les programmes font), le système doit posséder
@@ -222,7 +320,7 @@ glibc-devel 
 %description devel -l pl
 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
-nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
+nag³ówkowe oraz pliki obiektowe, niezbêdne do kompilacji programów
 wykonywalnych i innych bibliotek.
 
 %description devel -l ru
@@ -242,22 +340,9 @@ kitapl
 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
 
-
-%package kernel-headers
-Summary:       Kernel header files the glibc has been built with
-Summary(pl):   Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc
-Group:         Development/Libraries
-
-%description kernel-headers
-Kernel header files the glibc has been built with (Linux
-%{_kernel_ver_str}).
-
-%description kernel-headers -l pl
-Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc
-(Linux %{_kernel_ver_str}).
-
 %package -n nscd
 Summary:       Name Service Caching Daemon
+Summary(es):   Demonio de caché del servicio de nombres
 Summary(ja):   ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥ó¥°¥Ç¡¼¥â¥ó (nacd)
 Summary(pl):   Demon zapamiêtuj±cy odpowiedzi serwisów nazw
 Summary(ru):   ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
@@ -266,7 +351,7 @@ Group:              Networking/Daemons
 PreReq:                rc-scripts >= 0.2.0
 Requires(post,preun):  /sbin/chkconfig
 Requires(post):        fileutils
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nscd
 nscd caches name service lookups; it can dramatically improve
@@ -274,6 +359,13 @@ performance with NIS+, and may help with DNS as well. You cannot use
 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
 nscd happens to hit these bugs particularly hard.
 
+%description -n nscd -l es
+nscd guarda las peticiones del servicio de nombres en una caché; eso
+puede aumentar drásticamente las prestaciones de NIS+, y también puede
+ayudar con DNS. No puede usar nscd con núcleos 2.0, por contener éstos
+errores en el soporte de hilos. Resulta que estos errores impactan el
+nscd de manera realmente grave.
+
 %description -n nscd -l ja
 Nscd ¤Ï¥Í¡¼¥à¥µ¡¼¥Ó¥¹»²¾È¤ò¥­¥ã¥Ã¥·¥å¤·¡¢NIS+ ¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ò
 ¥É¥é¥Þ¥Æ¥£¥Ã¥¯¤Ë²þÁ±¤¹¤ë¤³¤È¤¬¤Ç¤­¡¢DNS ¤òƱÍͤËÊä½õ¤·¤Þ¤¹¡£ 2.0
@@ -298,36 +390,77 @@ nscd 
 
 %package -n localedb-src
 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
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      sed
 
 %description -n localedb-src
 This add-on package contains the data needed to build the locale data
-files to use the internationalization features of the GNU libc. glibc
-package contains standard set of locale binary database so you need
-this package only when you want to build some non-standard locale
-database.
+files to use the internationalization features of the GNU libc.
+
+%description -n localedb-src -l es
+Este paquete adicional contiene los datos necesarios para construir
+los ficheros de locale, imprescindibles para usar las cualidades de
+internacionalización de GNU libc.
 
 %description -n localedb-src -l pl
 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
-libc. glibc zawiera standardowy zestaw binarnych baz lokalizacyjnych,
-w zwi±zku z czym ten pakiet jest potrzebny tylko w sytuacji budowania
-jakiej¶ niestandardowej bazy.
+libc.
+
+%package localedb-all
+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}
+
+%description localedb-all
+This package contains locale database for all locales supported by
+glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
+something smaller with support for chosen locales only, consider
+installing localedb-src and regenerating database using localedb-gen
+script (when database is generated, localedb-src can be uninstalled).
+
+%description localedb-all -l es
+Este paquete contiene una base de datos de todos los locales
+soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
+39 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
+locales elegidos, considérese instalar localedb-src y regenerar la
+base de datos usando el escript localedb-gen (una vez que la base de
+datos esté creada, localedb-src se podrá desinstalar).
+
+%description localedb-all -l pl
+Ten pakiet zawiera bazê danych locale dla wszystkich lokalizacji
+obs³ugiwanych przez glibc. W glibc 2.3.x jest to jeden du¿y plik
+(oko³o 39MB); aby mieæ co¶ mniejszego, z obs³ug± tylko wybranych
+lokalizacji, nale¿y zainstalowaæ pakiet localedb-src i przegenerowaæ
+bazê danych przy u¿yciu skryptu localedb-gen (po wygenerowaniu bazy
+pakiet localedb-src mo¿na odinstalowaæ).
 
 %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
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n iconv
 Convert encoding of given files from one encoding to another. You need
-this package if you want to convert some documet from one encoding to
+this package if you want to convert some document from one encoding to
 another or if you have installed some programs which use Generic
 Character Set Conversion Interface.
 
+%description -n iconv -l es
+Convierte la codificación de dados ficheros. Necesita este paquete si
+quiere convertir un documento entre una codificación (juego de
+caracteres) y otra, o si tiene instalado algún programa que usa el
+Generic Character Set Conversion Interface (interfaz genérica de
+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ê
@@ -338,15 +471,20 @@ umo
 
 %package static
 Summary:       Static libraries
+Summary(es):   Bibliotecas estáticas
 Summary(pl):   Biblioteki statyczne
 Summary(ru):   óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
 Summary(uk):   óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+Obsoletes:     libiconv-static
 
 %description static
 GNU libc static libraries.
 
+%description static -l es
+Bibliotecas estáticas de GNU libc.
+
 %description static -l pl
 Biblioteki statyczne GNU libc.
 
@@ -361,17 +499,18 @@ Biblioteki statyczne GNU libc.
 %package profile
 Summary:       glibc with profiling support
 Summary(de):   glibc mit Profil-Unterstützung
+Summary(es):   glibc con soporte de perfilamiento
 Summary(fr):   glibc avec support pour profiling
 Summary(pl):   glibc ze wsparciem dla profilowania
 Summary(ru):   GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
 Summary(tr):   Ölçüm desteði olan glibc
 Summary(uk):   GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
 Group:         Development/Libraries/Libc
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 Obsoletes:     libc-profile
-Requires:      %{name}-devel = %{version}
 
 %description profile
-When programs are being profiled used gprof, they must use these
+When programs are being profiled using gprof, they must use these
 libraries instead of the standard C libraries for gprof to be able to
 profile them correctly.
 
@@ -379,6 +518,11 @@ profile them correctly.
 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
 Libraries anstelle der üblichen C-Libraries verwendet werden.
 
+%description profile -l es
+Cuando programas son perfilidas usando gprof, tienen que usar estas
+biblioteces en vez de las estándares para que gprof pueda perfilarlas
+correctamente.
+
 %description profile -l pl
 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
@@ -404,15 +548,22 @@ kitapl
 
 %package pic
 Summary:       glibc PIC archive
-Summary(pl):   archiwum PIC glibc
+Summary(es):   Archivo PIC de glibc
+Summary(pl):   Archiwum PIC glibc
 Group:         Development/Libraries/Libc
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description pic
 GNU C Library PIC archive contains an archive library (ar file)
 composed of individual shared objects. This is used for creating a
 library which is a smaller subset of the standard libc shared library.
 
+%description pic -l es
+El archivo PIC de la biblioteca glibc contiene una biblioteca
+archivada (un fichero ar) compuesta de individuales objetos
+compartidos. Es usado para crear una biblioteca que sea un subconjunto
+más pequeño de la biblioteca libc compartida estándar.
+
 %description pic -l pl
 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
@@ -421,159 +572,294 @@ biblioteki wsp
 
 %package -n nss_compat
 Summary:       Old style NYS NSS glibc module
+Summary(es):   El antiguo módulo NYS NSS de glibc
 Summary(pl):   Stary modu³ NYS NSS glibc
 Group:         Base
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nss_compat
 Old style NYS NSS glibc module.
 
+%description -n nss_compat -l es
+El antiguo módulo NYS NSS de glibc
+
 %description -n nss_compat -l pl
 Stary modu³ NYS NSS glibc.
 
 %package -n nss_dns
 Summary:       BIND NSS glibc module
+Summary(es):   Módulo BIND NSS de glibc
 Summary(pl):   Modu³ BIND NSS glibc
 Group:         Base
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nss_dns
 BIND NSS glibc module.
 
+%description -n nss_dns -l es
+Módulo BIND NSS de glibc.
+
 %description -n nss_dns -l pl
 Modu³ BIND NSS glibc.
 
 %package -n nss_files
 Summary:       Traditional files databases NSS glibc module
+Summary(es):   Módulo de tradicionales bases de datos en ficheros para glibc
 Summary(pl):   Modu³ tradycyjnych plikowych baz danych NSS glibc
 Group:         Base
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nss_files
 Traditional files databases NSS glibc module.
 
+%description -n nss_files -l es
+Módulo de tradicionales bases de datos en ficheros para glibc.
+
 %description -n nss_files -l pl
 Modu³ tradycyjnych plikowych baz danych NSS glibc.
 
 %package -n nss_hesiod
-Summary:       Hesiod NSS glibc module
+Summary:       hesiod NSS glibc module
+Summary(es):   Módulo hesiod NSS de glibc
 Summary(pl):   Modu³ hesiod NSS glibc
 Group:         Base
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nss_hesiod
 glibc NSS (Name Service Switch) module for databases access.
 
+%description -n nss_hesiod -l es
+Módulo hesiod NSS de glibc.
+
 %description -n nss_hesiod -l pl
 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
 
 %package -n nss_nis
 Summary:       NIS(YP) NSS glibc module
+Summary(es):   Módulo NIS(YP) NSS de glibc
 Summary(pl):   Modu³ NIS(YP) NSS glibc
 Group:         Base
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nss_nis
 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
 
+%description -n nss_nis -l es
+Módulo NSS de glibc para acceder las bases de datos NIS(YP).
+
 %description -n nss_nis -l pl
 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
 
 %package -n nss_nisplus
 Summary:       NIS+ NSS module
+Summary(es):   Módulo NIS+ NSS
 Summary(pl):   Modu³ NIS+ NSS
 Group:         Base
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description -n nss_nisplus
-glibc NSS (Name Service Switch) module for NIS+ databases accesa.
+glibc NSS (Name Service Switch) module for NIS+ databases access.
+
+%description -n nss_nisplus -l es
+Módulo NSS (Name Service Switch) de glibc para acceder las bases de
+datos NIS+.
 
 %description -n nss_nisplus -l pl
 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
 
 %package memusage
 Summary:       A toy
+Summary(es):   Un juguete
 Summary(pl):   Zabawka
 Group:         Applications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      gd
 
 %description memusage
 A toy.
 
+%description memusage -l es
+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} = %{version}
+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
+%ifarch amd64
+Provides:      glibc = %{epoch}:%{version}-%{release}
+Requires:      glibc-misc = %{epoch}:%{version}-%{release}
+%else
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+%endif
+
+%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.
+
+%package -n %{name}64-devel
+Summary:       Development files for 64-bit GNU libc libraries
+Summary(es):   Ficheros de desarrollo para bibliotecas GNU libc de 64 bits
+Summary(pl):   Pliki do programowania z u¿yciem 64-bitowych bibliotek GNU libc
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description -n %{name}64-devel
+Development files for 64-bit GNU libc libraries for 64bit
+architecture.
+
+%description -n %{name}64-devel -l es
+Ficheros de desarrollo para las bibliotecas GNU libc de 64 bits para
+la arquitectura 64bit.
+
+%description -n %{name}64-devel -l pl
+Pliki do programowania z u¿yciem 64-bitowych bibliotek GNU libc dla
+architektury 64bit.
+
+%package -n %{name}64-static
+Summary:       Static 64-bit GNU libc libraries
+Summary(es):   Bibliotecas estáticas GNU libc de 64 bits
+Summary(pl):   Statyczne 64-bitowe biblioteki GNU libc
+Group:         Development/Libraries
+Requires:      %{name}64-devel = %{epoch}:%{version}-%{release}
+
+%description -n %{name}64-static
+Static 64-bit GNU libc libraries.
+
+%description -n %{name}64-static -l es
+Bibliotecas estáticas GNU libc de 64 bits.
+
+%description -n %{name}64-static -l pl
+Statyczne 64-bitowe biblioteki GNU libc.
+
 %prep
-%setup -q -a 1
+#setup -q -a 1 -n libc
+%setup -q -n libc
 %patch0 -p1
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
+%patch8 -p1
 %patch9 -p1
 %patch10 -p1
-#%%patch11 -p1
-%patch12 -p1
-%patch13 -p1
-%patch14 -p1
-%patch16 -p1
+%patch11 -p1
+# don't know, if it is good idea, for brave ones
+#%patch12 -p1
+%{?with_kernelheaders:%patch13}
+%{?!with_kernelheaders:%patch14 -p1}
+%patch15 -p1
+%patch16 -p0
 %patch17 -p1
 %patch18 -p1
-# don't know, if it is good idea, for brave ones
-#%patch19 -p1
+%patch19 -p1
+%patch20 -p1
+%patch21 -p1
+%patch22 -p1
 
-chmod +x scripts/cpp
+%patch30 -p1
+%patch31 -p1
 
-# standardize name
-mv -f localedata/locales/{lug_UG,lg_UG}
+chmod +x scripts/cpp
 
 %build
-mkdir builddir
+# Build glibc
+cp %{_datadir}/automake/config.sub .
+cp %{_datadir}/automake/config.sub scripts
+%{__aclocal}
+%{__autoconf}
+# i786 (aka pentium4) hack
+cd nptl/sysdeps/i386 && ln -s i686 i786 && cd -
+cd nptl/sysdeps/unix/sysv/linux/i386 && ln -s i686 i786 && cd -
+#
+[ -d builddir ] || mkdir builddir
 cd builddir
 # avoid stripping ld.so by -s in rpmldflags
 LDFLAGS=" " ; export LDFLAGS
 ../%configure \
-       --enable-add-ons=linuxthreads \
-       --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
+       --enable-kernel="%{min_kernel}" \
+       --%{?with_omitfp:en}%{!?with_omitfp:dis}able-omitfp \
+       %{?with_tls:--with-tls} \
+%if %{with nptl}
+        --enable-add-ons=nptl \
+       --disable-profile \
+%else
+        --enable-add-ons=linuxthreads \
        --enable-profile \
-       --%{?_without_fp:en}%{!?_without_fp:dis}able-omitfp \
+%endif
+%if %{with kernelheaders}
+       CPPFLAGS="-I%{_kernelsrcdir}/include" \
        --with-headers=%{_kernelsrcdir}/include
+%else
+       CPPFLAGS="-I%{_includedir}" \
+       --with-headers=%{_includedir}
+%endif
+
 # problem compiling with --enable-bounded (must be reported to libc-alpha)
 
-%{__make} %{parallelmkflags}
+%{__make} %{?parallelmkflags}
+
+%if %{with tests}
+env LANGUAGE=C LC_ALL=C \
+%{__make} tests 2>&1 | awk '
+BEGIN { file = "" }
+{
+       if (($0 ~ /\*\*\* \[.*\.out\] Error/) && (file == "")) {
+               file=$0;
+               gsub(/.*\[/, NIL, file);
+               gsub(/\].*/, NIL, file);
+       }
+       print $0;
+}
+END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
+%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}
+install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/run/nscd}
 
 cd builddir
 
 env LANGUAGE=C LC_ALL=C \
 %{__make} install \
-       %{parallelmkflags} \
+       %{?parallelmkflags} \
        install_root=$RPM_BUILD_ROOT \
        infodir=%{_infodir} \
        mandir=%{_mandir}
 
 env LANGUAGE=C LC_ALL=C \
 %{__make} localedata/install-locales \
-       %{parallelmkflags} \
+       %{?parallelmkflags} \
        install_root=$RPM_BUILD_ROOT
 
 PICFILES="libc_pic.a libc.map
@@ -586,19 +872,23 @@ install elf/sofini.os                             $RPM_BUILD_ROOT%{_libdir}/sofini.o
 
 install elf/postshell                          $RPM_BUILD_ROOT/sbin
 
-mv -f $RPM_BUILD_ROOT/lib/libmemusage.so       $RPM_BUILD_ROOT%{_libdir}
-mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so      $RPM_BUILD_ROOT%{_libdir}
+%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so  $RPM_BUILD_ROOT%{_libdir}}
+%ifnarch sparc64
+mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so  $RPM_BUILD_ROOT%{_libdir}
+%endif
 
+%if %{without nptl}
 %{__make} -C ../linuxthreads/man
 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 -
+#cd $RPM_BUILD_ROOT%{_datadir}/zoneinfo
+#for i in [A-Z]*; do
+#      ln -s ../$i posix
+#done
+#cd -
 
 ln -sf %{_sysconfdir}/localtime        $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
 ln -sf localtime               $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
@@ -610,7 +900,7 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
 # make symlinks across top-level directories absolute
 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
        rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
-       ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
+       ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
 done
 
 install %{SOURCE2}             $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
@@ -630,9 +920,11 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
 rm -rf ../documentation
 install -d ../documentation
 
+%if %{without nptl}
 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
 cp -f ../linuxthreads/README ../documentation/README.threads
+%endif
 cp -f ../crypt/README.ufc-crypt ../documentation/
 
 cp -f ../ChangeLog* ../documentation
@@ -640,7 +932,9 @@ cp -f ../ChangeLog* ../documentation
 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
 
 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
-%{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
+%ifnarch sparc64
+%{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/%{_lib}/ld-*.so}
+%endif
 
 # Collect locale files and mark them with %%lang()
 rm -f ../glibc.lang
@@ -650,7 +944,7 @@ for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/*
                lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
                twochar=1
                # list of long %%lang values we do support
-               for j in de_AT de_BE de_CH de_LU es_AR ja_JP.SJIS ko_KR.utf8 pt_BR \
+               for j in de_AT de_BE de_CH de_LU es_AR es_MX ja_JP.SJIS ko_KR.utf8 pt_BR \
                         zh_CN zh_CN.gbk zh_HK zh_TW ; do
                        if [ $j = "$lang" ]; then
                                twochar=
@@ -668,19 +962,25 @@ for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/*
        fi
 done
 # XXX: to be added when become supported by glibc
-# am,bn,ml (present in sources, but incomplete and disabled) (used by GNOME)
-# kn,mn,ia (used by GNOME)
-# nso,ss,ven,xh,zu (used by KDE)
-for i in af ar az be bg br bs cy de_AT el en eo es_AR et eu fa fi ga gr he hi \
-        hr hu id is ja_JP.SJIS ka lg lt lv mk ms mt nn pt ro ru se sl sq sr \
-        sr@cyrillic ta tg th uk uz vi wa yi zh_CN ; do
+# ia,li (used by GNOME)
+# nso,ss,ven (used by KDE)
+# NOTES:
+# bn is used for bn_BD or bn_IN?
+# 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 ar az bg bn br bs cy de_AT en en_AU eo es_AR es_MX et eu fa ga \
+        gr he hi id is ja_JP.SJIS ka kn lg lt lv mk ml mn ms mt nn pt ro ru \
+        se sl sq sr sr@Latn ta tg th uk uz vi wa xh yi 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
-install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
+
+# localedb-gen infrastructure
+install %{SOURCE7} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
+install ../localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
 
 # shutup check-files
 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
@@ -689,9 +989,8 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 # we don't support kernel without ptys support
 rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
 
-# copy actual kernel headers for glibc-kernel-headers
-%{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
-%{__cp} -Hr %{_kernelsrcdir}/include/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
+# no longer supported (/dev/null has the same, but expected behaviour)
+rm -f $RPM_BUILD_ROOT%{_bindir}/glibcbug
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -699,14 +998,30 @@ rm -rf $RPM_BUILD_ROOT
 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
 # when %%postun is run
 
+%ifnarch sparc64
+%ifarch amd64
+%post  -n %{name}64 -p /sbin/postshell
+%else
 %post  -p /sbin/postshell
+%endif
 /sbin/ldconfig
 -/sbin/telinit u
 
-%postun -p /sbin/postshell
+%ifarch amd64
+%postun        -n %{name}64 -p /sbin/postshell
+%else
+%postun        -p /sbin/postshell
+%endif
 /sbin/ldconfig
 -/sbin/telinit u
 
+%ifarch amd64
+%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
+%endif
+-/bin/mv %{_sysconfdir}/ld.so.conf.rpmsave %{_sysconfdir}/ld.so.conf
+
 %post  memusage -p /sbin/ldconfig
 %postun memusage -p /sbin/ldconfig
 
@@ -714,22 +1029,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %post devel
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-echo "Please install glibc-kernel-headers or, if you are a brave man,"
-echo "make appropriate links in /usr/include pointing to an already"
-echo "installed previously chosen kernel-headers package or other"
-echo "kernel headers you have."
 
 %postun devel
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%pre kernel-headers
-# useful if these are symlinks
-if [ -h %{_includedir}/asm ]; then rm -f %{_includedir}/asm; fi
-if [ -h %{_includedir}/linux ]; then rm -f %{_includedir}/linux; fi
-
 %post -n nscd
 /sbin/chkconfig --add nscd
-touch /var/log/nscd && (chmod 000 /var/log/nscd; chown root.root /var/log/nscd; chmod 640 /var/log/nscd)
+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
@@ -743,23 +1052,53 @@ if [ "$1" = "0" ]; then
        fi
        /sbin/chkconfig --del nscd
 fi
+%endif
 
-%files -f %{name}.lang
+%ifnarch sparc64
+%ifarch amd64
+%files -n glibc64
+%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
+%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);
+# ld-*.so SONAME is ld.so.1 on ppc, ld-linux.so.2 on other archs
+%attr(755,root,root) /%{_lib}/ld*
+%attr(755,root,root) /%{_lib}/libanl*
+%attr(755,root,root) /%{_lib}/libdl*
+%attr(755,root,root) /%{_lib}/libnsl*
+%attr(755,root,root) /%{_lib}/lib[BScmprtu]*
+%dir %{_libdir}/locale
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
+%ghost %{_sysconfdir}/ld.so.cache
+
+#%files -n nss_dns
+%defattr(644,root,root,755)
+%attr(755,root,root) /%{_lib}/libnss_dns*.so*
+
+#%files -n nss_files
+%defattr(644,root,root,755)
+%attr(755,root,root) /%{_lib}/libnss_files*.so*
+
+
+%files misc -f %{name}.lang
+%defattr(644,root,root,755)
+
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
 %config %{_sysconfdir}/rpc
-%ghost %{_sysconfdir}/ld.so.cache
 
-%attr(755,root,root) /sbin/*
+%attr(755,root,root) /sbin/sln
 %attr(755,root,root) %{_bindir}/catchsegv
 %attr(755,root,root) %{_bindir}/getent
-%attr(755,root,root) %{_bindir}/glibcbug
 %attr(755,root,root) %{_bindir}/iconv
 %attr(755,root,root) %{_bindir}/ldd
-%ifnarch alpha sparc sparc64 ppc
+%ifnarch alpha amd64 ia64 ppc sparc64
 %attr(755,root,root) %{_bindir}/lddlibc4
 %endif
 %attr(755,root,root) %{_bindir}/locale
@@ -770,60 +1109,99 @@ fi
 %attr(755,root,root) %{_sbindir}/zdump
 %attr(755,root,root) %{_sbindir}/zic
 
-%attr(755,root,root) /lib/ld-*
-%attr(755,root,root) /lib/libanl*
-%attr(755,root,root) /lib/libdl*
-%attr(755,root,root) /lib/libnsl*
-%attr(755,root,root) /lib/lib[BScmprtu]*
-
 %dir %{_datadir}/locale
 %{_datadir}/locale/locale.alias
 %{_datadir}/zoneinfo
 %exclude %{_datadir}/zoneinfo/right
 
-%dir %{_libdir}/locale
-%{_libdir}/locale/locale-archive
-
-%{_mandir}/man1/[!lsg]*
+%{_mandir}/man1/catchsegv.1*
 %{_mandir}/man1/getent.1*
-%{_mandir}/man1/locale.1*
+%{_mandir}/man1/iconv.1*
 %{_mandir}/man1/ldd.1*
-%{_mandir}/man5/???[!d]*
+%{_mandir}/man1/locale.1*
+%{_mandir}/man1/rpcgen.1*
+%{_mandir}/man5/locale.5*
+%{_mandir}/man5/nsswitch.conf.5*
+%{_mandir}/man5/tzfile.5*
 %{_mandir}/man7/*
-%{_mandir}/man8/[!n]*
-%lang(cs) %{_mandir}/cs/man[578]/*
-%lang(de) %{_mandir}/de/man[578]/*
-%lang(es) %{_mandir}/es/man[578]/*
+%{_mandir}/man8/ld*.8*
+%{_mandir}/man8/rpcinfo.8*
+%{_mandir}/man8/sln.8*
+%{_mandir}/man8/tzselect.8*
+%{_mandir}/man8/zdump.8*
+%{_mandir}/man8/zic.8*
+%lang(cs) %{_mandir}/cs/man7/*
+%lang(de) %{_mandir}/de/man5/tzfile.5*
+%lang(de) %{_mandir}/de/man7/*
+%lang(es) %{_mandir}/es/man5/locale.5*
+%lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
+%lang(es) %{_mandir}/es/man5/tzfile.5*
+%lang(es) %{_mandir}/es/man7/*
+%lang(es) %{_mandir}/es/man8/ld*.8*
+%lang(es) %{_mandir}/es/man8/tzselect.8*
+%lang(es) %{_mandir}/es/man8/zdump.8*
+%lang(es) %{_mandir}/es/man8/zic.8*
 %lang(fi) %{_mandir}/fi/man1/ldd.1*
 %lang(fr) %{_mandir}/fr/man1/ldd.1*
-%lang(fr) %{_mandir}/fr/man[578]/*
+%lang(fr) %{_mandir}/fr/man5/locale.5*
+%lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
+%lang(fr) %{_mandir}/fr/man5/tzfile.5*
+%lang(fr) %{_mandir}/fr/man7/*
+%lang(fr) %{_mandir}/fr/man8/ld*.8*
+%lang(fr) %{_mandir}/fr/man8/tzselect.8*
+%lang(fr) %{_mandir}/fr/man8/zdump.8*
+%lang(fr) %{_mandir}/fr/man8/zic.8*
 %lang(hu) %{_mandir}/hu/man1/ldd.1*
-%lang(hu) %{_mandir}/hu/man[578]/*
-%lang(it) %{_mandir}/it/man[578]/*
-%lang(ja) %{_mandir}/ja/man1/[!lsg]*
+%lang(hu) %{_mandir}/hu/man7/*
+%lang(hu) %{_mandir}/hu/man8/ld*.8*
+%lang(hu) %{_mandir}/hu/man8/zdump.8*
+%lang(it) %{_mandir}/it/man5/locale.5*
+%lang(it) %{_mandir}/it/man7/*
+%lang(it) %{_mandir}/it/man8/tzselect.8*
+%lang(it) %{_mandir}/it/man8/zdump.8*
 %lang(ja) %{_mandir}/ja/man1/ldd.1*
-%lang(ja) %{_mandir}/ja/man5/???[!d]*
+%lang(ja) %{_mandir}/ja/man1/rpcgen.1*
+%lang(ja) %{_mandir}/ja/man5/locale.5*
+%lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
+%lang(ja) %{_mandir}/ja/man5/tzfile.5*
 %lang(ja) %{_mandir}/ja/man7/*
-%lang(ja) %{_mandir}/ja/man8/[!n]*
-%lang(ko) %{_mandir}/ko/man[578]/*
-# %lang(nl) %{_mandir}/nl/man[578]/*
+%lang(ja) %{_mandir}/ja/man8/ld*.8*
+%lang(ja) %{_mandir}/ja/man8/rpcinfo.8*
+%lang(ja) %{_mandir}/ja/man8/sln.8*
+%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/man5/nsswitch.conf.5*
+%lang(ko) %{_mandir}/ko/man5/tzfile.5*
+%lang(ko) %{_mandir}/ko/man7/*
+%lang(ko) %{_mandir}/ko/man8/tzselect.8*
+%lang(ko) %{_mandir}/ko/man8/zdump.8*
 %lang(pl) %{_mandir}/pl/man1/ldd.1*
-%lang(pl) %{_mandir}/pl/man[578]/*
-%lang(pt) %{_mandir}/pt/man5/???[!d]*
+%lang(pl) %{_mandir}/pl/man5/locale.5*
+%lang(pl) %{_mandir}/pl/man7/*
+%lang(pl) %{_mandir}/pl/man8/ld*.8*
+%lang(pt) %{_mandir}/pt/man5/locale.5*
+%lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
+%lang(pt) %{_mandir}/pt/man5/tzfile.5*
 %lang(pt) %{_mandir}/pt/man7/*
-%lang(pt) %{_mandir}/pt/man8/[!n]*
-%lang(pt_BR) %{_mandir}/pt_BR/man5/???[!d]*
-%lang(pt_BR) %{_mandir}/pt_BR/man7/*
-%lang(pt_BR) %{_mandir}/pt_BR/man8/[!n]*
-%lang(ru) %{_mandir}/ru/man[578]/*
-
-#%files -n nss_dns
-%defattr(644,root,root,755)
-%attr(755,root,root) /lib/libnss_dns*.so*
-
-#%files -n nss_files
-%defattr(644,root,root,755)
-%attr(755,root,root) /lib/libnss_files*.so*
+%lang(pt) %{_mandir}/pt/man8/ld*.8*
+%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/man5/nsswitch.conf.5*
+%lang(ru) %{_mandir}/ru/man5/tzfile.5*
+%lang(ru) %{_mandir}/ru/man7/*
+%lang(ru) %{_mandir}/ru/man8/tzselect.8*
+%lang(ru) %{_mandir}/ru/man8/zdump.8*
+%lang(ru) %{_mandir}/ru/man8/zic.8*
+%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*
+%lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
+%lang(zh_CN) %{_mandir}/zh_CN/man7/*
+%lang(zh_CN) %{_mandir}/zh_CN/man8/tzselect.8*
+%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)
@@ -831,25 +1209,27 @@ fi
 
 %files -n nss_compat
 %defattr(644,root,root,755)
-%attr(755,root,root) /lib/libnss_compat*.so*
+%attr(755,root,root) /%{_lib}/libnss_compat*.so*
 
 %files -n nss_hesiod
 %defattr(644,root,root,755)
-%attr(755,root,root) /lib/libnss_hesiod*.so*
+%attr(755,root,root) /%{_lib}/libnss_hesiod*.so*
 
 %files -n nss_nis
 %defattr(644,root,root,755)
-%attr(755,root,root) /lib/libnss_nis.so.*
-%attr(755,root,root) /lib/libnss_nis-*.so
+%attr(755,root,root) /%{_lib}/libnss_nis.so.*
+%attr(755,root,root) /%{_lib}/libnss_nis-*.so
 
 %files -n nss_nisplus
 %defattr(644,root,root,755)
-%attr(755,root,root) /lib/libnss_nisplus*.so*
+%attr(755,root,root) /%{_lib}/libnss_nisplus*.so*
 
+%if %{with memusage}
 %files memusage
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/memusage*
-%attr(755,root,root) %{_libdir}/libmemusage*
+%attr(755,root,root) %{_libdir}/libmemusage.so
+%endif
 
 %files devel
 %defattr(644,root,root,755)
@@ -860,6 +1240,9 @@ fi
 %attr(755,root,root) %{_bindir}/*trace
 
 %{_includedir}/*.h
+%ifarch alpha
+%{_includedir}/alpha
+%endif
 %{_includedir}/arpa
 %{_includedir}/bits
 %{_includedir}/gnu
@@ -893,27 +1276,23 @@ fi
 %{_libdir}/libpthread_nonshared.a
 %{_libdir}/librpcsvc.a
 
-%{_mandir}/man1/getconf*
-%{_mandir}/man1/sprof*
+%{_mandir}/man1/getconf.1*
+%{_mandir}/man1/sprof.1*
 %{_mandir}/man3/*
 %lang(cs) %{_mandir}/cs/man3/*
 %lang(de) %{_mandir}/de/man3/*
 %lang(es) %{_mandir}/es/man3/*
 %lang(fr) %{_mandir}/fr/man3/*
 %lang(hu) %{_mandir}/hu/man3/*
-%lang(it) %{_mandir}/it/man3/*
+%lang(it) %{_mandir}/it/man3/*
 %lang(ja) %{_mandir}/ja/man3/*
 %lang(ko) %{_mandir}/ko/man3/*
 %lang(nl) %{_mandir}/nl/man3/*
 %lang(pl) %{_mandir}/pl/man3/*
 %lang(pt) %{_mandir}/pt/man3/*
-%lang(pt_BR) %{_mandir}/pt_BR/man3/*
 %lang(ru) %{_mandir}/ru/man3/*
-
-%files kernel-headers
-%defattr(644,root,root,755)
-%{_includedir}/asm
-%{_includedir}/linux
+%lang(uk) %{_mandir}/uk/man3/*
+%lang(zh_CN) %{_mandir}/zh_CN/man3/*
 
 %files -n nscd
 %defattr(644,root,root,755)
@@ -923,20 +1302,27 @@ fi
 %attr(755,root,root) %{_sbindir}/nscd*
 %attr(640,root,root) /etc/logrotate.d/nscd
 %attr(640,root,root) %ghost /var/log/nscd
-%{_mandir}/man5/nscd.conf*
-%{_mandir}/man8/nscd*
-%lang(ja) %{_mandir}/ja/man5/nscd.conf*
-%lang(ja) %{_mandir}/ja/man8/nscd*
-%lang(pt) %{_mandir}/pt/man5/nscd.conf*
-%lang(pt) %{_mandir}/pt/man8/nscd*
-%lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
-%lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
+%dir /var/run/nscd
+%{_mandir}/man5/nscd.conf.5*
+%{_mandir}/man8/nscd.8*
+%{_mandir}/man8/nscd_nischeck.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*
 
 %files -n localedb-src
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/localedef
+%attr(755,root,root) %{_bindir}/localedb-gen
 %{_datadir}/i18n
-%{_mandir}/man1/localedef*
+%{_mandir}/man1/localedef.1*
+
+%files localedb-all
+%defattr(644,root,root,755)
+%{_libdir}/locale/locale-archive
 
 %files -n iconv
 %defattr(644,root,root,755)
@@ -960,9 +1346,11 @@ fi
 %{_libdir}/librt.a
 %{_libdir}/libutil.a
 
+%if %{without nptl}
 %files profile
 %defattr(644,root,root,755)
 %{_libdir}/lib*_p.a
+%endif
 
 %files pic
 %defattr(644,root,root,755)
@@ -970,3 +1358,44 @@ fi
 %{_libdir}/lib*.map
 %{_libdir}/soinit.o
 %{_libdir}/sofini.o
+
+%else
+
+%files -n glibc64
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/ld-*
+%attr(755,root,root) %{_libdir}/libanl*
+%attr(755,root,root) %{_libdir}/libdl*
+%attr(755,root,root) %{_libdir}/libnsl*
+%attr(755,root,root) %{_libdir}/lib[BScmprtu]*
+%attr(755,root,root) %{_libdir}/libnss_dns*.so*
+%attr(755,root,root) %{_libdir}/libnss_files*.so*
+
+%files -n glibc64-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib[!m]*.so
+%attr(755,root,root) %{_libdir}/libm.so
+%attr(755,root,root) %{_libdir}/*crt*.o
+%{_libdir}/libbsd-compat.a
+%{_libdir}/libbsd.a
+%{_libdir}/libc_nonshared.a
+%{_libdir}/libg.a
+%{_libdir}/libieee.a
+%{_libdir}/libpthread_nonshared.a
+%{_libdir}/librpcsvc.a
+
+%files -n glibc64-static
+%defattr(644,root,root,755)
+%{_libdir}/libanl.a
+%{_libdir}/libBrokenLocale.a
+%{_libdir}/libc.a
+%{_libdir}/libcrypt.a
+%{_libdir}/libdl.a
+%{_libdir}/libm.a
+%{_libdir}/libmcheck.a
+%{_libdir}/libnsl.a
+%{_libdir}/libpthread.a
+%{_libdir}/libresolv.a
+%{_libdir}/librt.a
+%{_libdir}/libutil.a
+%endif
This page took 0.165413 seconds and 4 git commands to generate.