3 # min_kernel (default is 2.6.12)
4 %bcond_without memusage # don't build memusage utility
5 %bcond_without selinux # without SELinux support (in nscd)
6 %bcond_with tests # perform "make test"
7 %bcond_without localedb # don't build localedb-all (is time consuming)
8 %bcond_with cross # build using crossgcc (without libgcc_eh)
11 # - look at locale fixes/updates in bugzilla
12 # - no more chicken-egg problem (postshell is no more dynamically linked with libc), remove SONAME symlinks? see files section.
14 # - localedb-gen man pages(?)
15 # - math/{test-fenv,test-tgmath,test-float,test-ifloat},
16 # debug/backtrace-tst(SEGV) fail on alpha
17 %{!?min_kernel:%global min_kernel 2.6.12}
20 %undefine with_memusage
23 %define llh_version 7:2.6.20.4-1
26 Summary(de.UTF-8): GNU libc
27 Summary(es.UTF-8): GNU libc
28 Summary(fr.UTF-8): GNU libc
29 Summary(ja.UTF-8): GNU libc ライブラリ
30 Summary(pl.UTF-8): GNU libc
31 Summary(ru.UTF-8): GNU libc версии
32 Summary(tr.UTF-8): GNU libc
33 Summary(uk.UTF-8): GNU libc версії
40 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
41 # Source0-md5: fc62e989cf31d015f31628609fc3757a
42 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-libidn-%{version}.tar.bz2
43 # Source1-md5: 99536b508af988e7cc6275944d12b491
45 Source3: nscd.sysconfig
46 Source4: nscd.logrotate
47 #Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
48 Source5: http://qboosh.pl/man/%{name}-man-pages.tar.bz2
49 # Source5-md5: f464eadf3cf06761f65639e44a179e6b
50 Source6: %{name}-localedb-gen
51 Source7: %{name}-LD-path.c
52 Patch1: %{name}-pl.po-update.patch
53 Patch2: %{name}-pld.patch
54 Patch3: %{name}-crypt-blowfish.patch
55 Patch4: %{name}-alpha-ev6-opcodes.patch
56 Patch5: %{name}-sparc-softfp-gcc.patch
57 Patch6: %{name}-paths.patch
58 Patch7: %{name}-no_opt_override.patch
59 Patch8: %{name}-missing-nls.patch
60 Patch9: %{name}-java-libc-wait.patch
61 Patch10: %{name}-info.patch
62 Patch11: %{name}-no_debuggable_objects.patch
63 Patch12: %{name}-2.7-alpha_PTR_MANGLE_move-1.patch
64 Patch13: %{name}-load-reg.patch
65 Patch14: %{name}-sparc-errno_fix.patch
66 Patch15: %{name}-new-charsets.patch
67 Patch16: %{name}-tzfile-noassert.patch
68 Patch17: %{name}-morelocales.patch
69 Patch18: %{name}-locale_fixes.patch
70 Patch19: %{name}-ZA_collate.patch
71 Patch20: %{name}-thread_start.patch
72 Patch21: %{name}-cross-gcc_eh.patch
73 Patch22: %{name}-with-stroke.patch
74 Patch23: %{name}-pt_pax.patch
75 Patch24: %{name}-fixes.patch
76 Patch25: %{name}-cv_gnu89_inline.patch
77 Patch26: %{name}-sed.patch
78 URL: http://www.gnu.org/software/libc/
79 %{?with_selinux:BuildRequires: audit-libs-devel}
80 BuildRequires: autoconf
81 BuildRequires: automake
83 BuildRequires: binutils >= 2:2.17.50.0.7
85 BuildRequires: binutils >= 2:2.15.90.0.3
87 %{!?with_cross:BuildRequires: dietlibc-static}
89 BuildRequires: gcc >= 5:3.4
90 %{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
91 BuildRequires: gettext-devel >= 0.10.36
92 %{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
93 BuildRequires: linux-libc-headers >= %{llh_version}
94 BuildRequires: perl-base
95 BuildRequires: rpm-build >= 4.3-0.20030610.28
96 BuildRequires: rpm-perlprov
97 BuildRequires: rpmbuild(macros) >= 1.413
98 BuildRequires: sed >= 4.0.5
99 BuildRequires: texinfo
100 Requires(post): ldconfig = %{epoch}:%{version}-%{release}
101 Requires: %{name}-misc = %{epoch}:%{version}-%{release}
103 Requires: uname(release) >= %{min_kernel}
104 Provides: glibc(nptl)
106 Provides: rtld(GNU_HASH)
107 Obsoletes: glibc-common
108 Obsoletes: glibc-debug
110 %ifarch %{x8664} sparc64 ppc64
114 Conflicts: SysVinit < 2.86-11
115 Conflicts: kernel < %{min_kernel}
117 Conflicts: kernel24-smp
118 Conflicts: ld.so < 1.9.9-10
119 Conflicts: man-pages < 1.43
120 Conflicts: poldek < 0.18.8-5
121 Conflicts: rc-scripts < 0.3.1-13
123 ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x sparc sparc64 sparcv9 ppc ppc64
124 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
126 # avoid -s here (ld.so must not be stripped to allow any program debugging)
127 %define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
128 # avoid -D_FORTIFY_SOURCE=X
129 %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
131 %define specflags_sparc64 -mcpu=ultrasparc -mvis -fcall-used-g6
133 # ld.so needs not to be stripped to work
134 # gdb needs unstripped libpthread for some threading support
135 # ...but we can strip at least debuginfo from them
136 %define _autostripdebug .*/ld-[0-9.]*so\\|.*/libpthread-[0-9.]*so
138 # -m from CFLAGS or even LDFLAGS is not propagated to some *.o linking
139 %ifarch sparc sparcv9
140 %{expand:%%define __cc %{__cc} -m32}
144 %define specflags_ia32 -mno-tls-direct-seg-refs
145 %define specflags_x86_64 -mno-tls-direct-seg-refs
146 %define specflags_amd64 -mno-tls-direct-seg-refs
147 %define specflags_ia32e -mno-tls-direct-seg-refs
149 # we don't want perl dependency in glibc-devel
150 %define _noautoreqfiles %{_bindir}/mtrace
151 # hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
152 # (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
153 # patched not to crash on partial hardlinks too)
154 %define _hack_dontneed_PartialHardlinkSets 1
155 %define _noautochrpath .*\\(ldconfig\\|sln\\)
157 %define _noautoprov .*\(GLIBC_PRIVATE\)
158 %define _noautoreq .*\(GLIBC_PRIVATE\)
161 Contains the standard libraries that are used by multiple programs on
162 the system. In order to save disk space and memory, as well as to ease
163 upgrades, common system code is kept in one place and shared between
164 programs. This package contains the most important sets of shared
165 libraries, the standard C library and the standard math library.
166 Without these, a Linux system will not function. It also contains
167 national language (locale) support.
169 Can be used on: Linux kernel >= %{min_kernel}.
171 %description -l es.UTF-8
172 Contiene las bibliotecas estándared que son usadas por varios
173 programas del sistema. Para ahorrar el espacio en el disco y la
174 memoria, igual que para facilitar actualizaciones, código común del
175 sistema se guarda en un sitio y es compartido entre los programas.
176 Este paquete contiene las bibliotecas compartidas más importantes, es
177 decir la biblioteca C estándar y la biblioteca estándar de matemática.
178 Sin éstas, un sistema Linux no podrá funcionar. También está incluido
179 soporte de idiomas nacionales (locale).
181 Puede usarse con: núcleo Linux >= %{min_kernel}.
183 %description -l de.UTF-8
184 Enthält die Standard-Libraries, die von verschiedenen Programmen im
185 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
186 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
187 einer einzigen Stelle gespeichert und wird von den Programmen
188 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
189 shared Libraries, die Standard-C-Library und die
190 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
191 Ferner enthält es den Support für die verschiedenen Sprachgregionen
194 Can be used on: Linux kernel >= %{min_kernel}.
196 %description -l fr.UTF-8
197 Contient les bibliothèques standards utilisées par de nombreux
198 programmes du système. Afin d'économiser l'espace disque et mémoire,
199 et de faciliter les mises à jour, le code commun au système est mis à
200 un endroit et partagé entre les programmes. Ce paquetage contient les
201 bibliothèques partagées les plus importantes, la bibliothèque standard
202 du C et la bibliothèque mathématique standard. Sans celles-ci, un
203 système Linux ne peut fonctionner. Il contient aussi la gestion des
204 langues nationales (locales).
206 Can be used on: Linux kernel >= %{min_kernel}.
208 %description -l ja.UTF-8
210 パッケージはシステム上の複数のプログラムで使われる標準ライブラリを
211 ふくみます。ディスクスペースとメモリを節約したり、アップグレードを
212 用意にするために、共通のシステムコードは一つの場所におかれ、プログラム
213 間で共有されます。この部分的なパッケージはシェアドライブラリのかなり
214 重要なセットをふくみます: 標準 C ライブラリと標準数値ライブラリです。
215 この二つのライブラリ抜きでは、Linux システムは機能しません。 glibc
216 パッケージはまた地域言語 (locale) サポートとタイムゾーンデータベース
219 Can be used on: Linux kernel >= %{min_kernel}.
221 %description -l pl.UTF-8
222 W pakiecie znajdują się podstawowe biblioteki, używane przez różne
223 programy w Twoim systemie. Używanie przez programy bibliotek z tego
224 pakietu oszczędza miejsce na dysku i pamięć. Większość kodu
225 systemowego jest usytuowane w jednym miejscu i dzielone między wieloma
226 programami. Pakiet ten zawiera bardzo ważny zbiór bibliotek
227 standardowych, współdzielonych (dynamicznych) bibliotek C i
228 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonować.
229 Znajdują się tutaj również definicje różnych informacji dla wielu
232 Pakiet jest przeznaczony dla jądra Linuksa >= %{min_kernel}.
234 %description -l ru.UTF-8
235 Содержит стандартные библиотеки, используемые многочисленными
236 программами в системе. Для того, чтобы сохранить дисковое пространство
237 и память, а также для простоты обновления, системный код, общий для
238 всех программ, хранится в одном месте и коллективно используется всеми
239 программами. Этот пакет содержит наиболее важные из разделяемых
240 библиотек - стандартную библиотеку C и стандартную библиотеку
241 математики. Без этих библиотек Linux функционировать не будет. Также
242 пакет содержит поддержку национальных языков (locale).
244 Can be used on: Linux kernel >= %{min_kernel}.
246 %description -l tr.UTF-8
247 Bu paket, birçok programın kullandığı standart kitaplıkları içerir.
248 Disk alanı ve bellek kullanımını azaltmak ve aynı zamanda güncelleme
249 işlemlerini kolaylaştırmak için ortak sistem kodları tek bir yerde
250 tutulup programlar arasında paylaştırılır. Bu paket en önemli ortak
251 kitaplıkları, standart C kitaplığını ve standart matematik kitaplığını
252 içerir. Bu kitaplıklar olmadan Linux sistemi çalışmayacaktır. Yerel
253 dil desteği ve zaman dilimi veri tabanı da bu pakette yer alır.
255 Can be used on: Linux kernel >= %{min_kernel}.
257 %description -l uk.UTF-8
258 Містить стандартні бібліотеки, котрі використовуються численними
259 програмами в системі. Для того, щоб зберегти дисковий простір та
260 пам'ять, а також для простоти поновлення системи, системний код,
261 спільний для всіх програм, зберігається в одному місці і колективно
262 використовується всіма програмами. Цей пакет містить найбільш важливі
263 з динамічних бібліотек - стандартну бібліотеку С та стандартну
264 бібліотеку математики. Без цих бібліотек Linux функціонувати не буде.
265 Також пакет містить підтримку національних мов (locale).
267 Can be used on: Linux kernel >= %{min_kernel}.
270 Summary: Utilities and data used by glibc
271 Summary(pl.UTF-8): Narzędzia i dane używane przez glibc
272 Group: Applications/System
273 Requires: %{name} = %{epoch}:%{version}-%{release}
279 Utilities and data used by glibc.
281 %description misc -l pl.UTF-8
282 Narzędzia i dane używane przez glibc.
285 Summary: Create shared library cache and maintains symlinks
286 Summary(de.UTF-8): Erstellt ein shared library cache und verwaltet symlinks
287 Summary(fr.UTF-8): Crée un cache de bibliothčque partagée et gčre *.so
288 Summary(pl.UTF-8): Tworzenie cache'u bibliotek dynamicznych i ich dowiązań symbolicznych
289 Summary(tr.UTF-8): Ortak kitaplýk önbelleđi yaratýr ve bađlantýlarý kurar
290 Group: Applications/System
291 # This is needed because previous package (glibc) had autoreq false and had
292 # provided this manually. Probably poldek bug that have to have it here.
293 Provides: /sbin/ldconfig
295 %description -n ldconfig
296 ldconfig scans a running system and sets up the symbolic links that
297 are used to load shared libraries properly. It also creates
298 /etc/ld.so.cache which speeds the loading programs which use shared
301 %description -n ldconfig -l de.UTF-8
302 ldconfig scannt ein laufendes System und richtet die symbolischen
303 Verknüpfungen zum Laden der gemeinsam genutzten Libraries ein.
304 Außerdem erstellt es /etc/ld.so.cache, was das Laden von Programmen
305 mit gemeinsam genutzten Libraries beschleunigt.
307 %description -n ldconfig -l fr.UTF-8
308 ldconfig analyse un systčme et configure les liens symboliques
309 utilisés pour charger correctement les bibliothčques partagées. Il
310 crée aussi /etc/ld.so.cache qui accélčre le chargement des programmes
311 utilisant les bibliothčques partagées.
313 %description -n ldconfig -l pl.UTF-8
314 ldconfig testuje uruchominy system i tworzy dowiązania symboliczne,
315 które są następnie używane do poprawnego ładowania bibliotek
316 dynamicznych. Program ten tworzy plik /etc/ld.so.cache, który
317 przyśpiesza ładowanie programów korzystających z bibliotek
320 %description -n ldconfig -l tr.UTF-8
321 ldconfig, çalýţmakta olan sistemi araţtýrýr ve ortak kitaplýklarýn
322 düzgün bir ţekilde yüklenmesi için gereken simgesel bađlantýlarý
323 kurar. Ayrýca ortak kitaplýklarý kullanan programlarýn yüklenmesini
324 hýzlandýran /etc/ld.so.cache dosyasýný yaratýr.
327 Summary: Additional libraries required to compile
328 Summary(de.UTF-8): Weitere Libraries zum Kompilieren
329 Summary(es.UTF-8): Bibliotecas adicionales necesarias para la compilación
330 Summary(fr.UTF-8): Librairies supplémentaires nécessaires à la compilation
331 Summary(ja.UTF-8): 標準 C ライブラリで使われるヘッダーとオブジェクトファイル
332 Summary(pl.UTF-8): Dodatkowe biblioteki wymagane podczas kompilacji
333 Summary(ru.UTF-8): Дополнительные библиотеки, необходимые для компиляции
334 Summary(tr.UTF-8): Geliştirme için gerekli diğer kitaplıklar
335 Summary(uk.UTF-8): Додаткові бібліотеки, потрібні для компіляції
336 Group: Development/Libraries
337 Requires: %{name} = %{epoch}:%{version}-%{release}
338 Requires: %{name}-devel-utils = %{epoch}:%{version}-%{release}
339 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
340 Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
341 Obsoletes: libiconv-devel
344 To develop programs which use the standard C libraries (which nearly
345 all programs do), the system needs to have these standard header files
346 and object files available for creating the executables.
348 %description devel -l de.UTF-8
349 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
350 verwenden (also fast alle), benötigt das System diese Standard-Header-
351 und Objektdateien zum Erstellen der ausführbaren Programme.
353 %description devel -l es.UTF-8
354 Para desarrollar programas que utilizan las bibliotecas C estándar (lo
355 cual hacen prácticamente todos los programas), el sistema necesita
356 disponer de estos ficheros de cabecera y de objetos para crear los
359 %description devel -l fr.UTF-8
360 Pour développer des programmes utilisant les bibliothèques standard du
361 C (ce que presque tous les programmes font), le système doit posséder
362 ces fichiers en-têtes et objets standards pour créer les exécutables.
364 %description devel -l ja.UTF-8
365 glibc-devel パッケージは(ほとんどすべてのプログラムで使われる)標準 C
366 ライブラリを使用したプログラムを開発するためのヘッダーとオブジェクト
368 ライブラリを使用するプログラムを開発するなら
369 実行ファイルを作成する目的でこれらの標準ヘッダとオブジェクトファイル
372 %description devel -l pl.UTF-8
373 Pakiet ten jest niezbędny przy tworzeniu własnych programów
374 korzystających ze standardowej biblioteki C. Znajdują się tutaj pliki
375 nagłówkowe oraz pliki obiektowe, niezbędne do kompilacji programów
376 wykonywalnych i innych bibliotek.
378 %description devel -l ru.UTF-8
379 Для разработки программ, использующих стандартные библиотеки C (а
380 практически все программы их используют), системе НЕОБХОДИМЫ хедеры и
381 объектные файлы, содержащиеся в этом пакете, чтобы создавать
384 %description devel -l tr.UTF-8
385 C kitaplığını kullanan (ki hemen hemen hepsi kullanıyor) programlar
386 geliştirmek için gereken standart başlık dosyaları ve statik
389 %description devel -l uk.UTF-8
390 Для розробки програм, що використовують стандартні бібліотеки C
391 (практично всі програми їх використовують), системі НЕОБХІДНІ хедери
392 та об'єктні файли, що містяться в цьому пакеті, цоб створювати
396 Summary: Header files for development using standard C libraries
397 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu standardowych bibliotek C
398 Group: Development/Building
399 Provides: %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
401 # If both -m32 and -m64 is to be supported on x86_64, x86_64 package
402 # have to be installed, not ix86 one.
403 Obsoletes: glibc-headers(athlon)
404 Obsoletes: glibc-headers(i386)
405 Obsoletes: glibc-headers(i486)
406 Obsoletes: glibc-headers(i586)
407 Obsoletes: glibc-headers(i686)
408 Obsoletes: glibc-headers(pentium3)
409 Obsoletes: glibc-headers(pentium4)
412 Obsoletes: glibc-headers(ppc)
415 Obsoletes: glibc-headers(s390)
418 Obsoletes: glibc-headers(sparc)
420 Requires: linux-libc-headers >= %{llh_version}
423 The glibc-headers package contains the header files necessary for
424 developing programs which use the standard C libraries (which are used
425 by nearly all programs). If you are developing programs which will use
426 the standard C libraries, your system needs to have these standard
427 header files available in order to create the executables.
429 Install glibc-headers if you are going to develop programs which will
430 use the standard C libraries.
432 %description headers -l pl.UTF-8
433 Pakiet glibc-headers zawiera pliki nagłówkowe niezbędne do rozwijania
434 programów używających standardowych bibliotek C (używanych przez
435 prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
436 standardowych bibliotek C, system wymaga dostępności tych
437 standardowych plików nagłówkowych do tworzenia programów
440 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
441 korzystające ze standardowych bibliotek C.
444 Summary: Utilities needed for development using standard C libraries
445 Summary(pl.UTF-8): Narzędzia do tworzenia programów przy użyciu standardowych bibliotek C
446 Group: Development/Libraries
447 Provides: %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
449 # If both -m32 and -m64 is to be supported on AMD64, x86_64 package
450 # have to be installed, not ix86 one.
451 Obsoletes: glibc-devel-utils(athlon)
452 Obsoletes: glibc-devel-utils(i386)
453 Obsoletes: glibc-devel-utils(i486)
454 Obsoletes: glibc-devel-utils(i586)
455 Obsoletes: glibc-devel-utils(i686)
456 Obsoletes: glibc-devel-utils(pentium3)
457 Obsoletes: glibc-devel-utils(pentium4)
460 Obsoletes: glibc-devel-utils(ppc)
463 Obsoletes: glibc-devel-utils(s390)
466 Obsoletes: glibc-devel-utils(sparc)
469 %description devel-utils
470 The glibc-devel-utils package contains utilities necessary for
471 developing programs which use the standard C libraries (which are used
472 by nearly all programs). If you are developing programs which will use
473 the standard C libraries, your system needs to have these utilities
476 Install glibc-devel-utils if you are going to develop programs which
477 will use the standard C libraries.
479 %description devel-utils -l pl.UTF-8
480 Pakiet glibc-devel-utils zawiera narzędzia niezbędne do rozwijania
481 programów używających standardowych bibliotek C (używanych przez
482 prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
483 standardowych bibliotek C, system wymaga dostępności tych narzędzi do
484 tworzenia programów wykonywalnych.
486 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
487 korzystające ze standardowych bibliotek C.
490 Summary: Documentation needed for development using standard C libraries
491 Summary(pl.UTF-8): Dokumentacja do tworzenia programów przy użyciu standardowych bibliotek C
493 Provides: %{name}-devel-doc(%{_target_cpu}) = %{epoch}:%{version}-%{release}
495 # If both -m32 and -m64 is to be supported on x86_64, x86_64 package
496 # have to be installed, not ix86 one.
497 Obsoletes: glibc-devel-doc(athlon)
498 Obsoletes: glibc-devel-doc(i386)
499 Obsoletes: glibc-devel-doc(i486)
500 Obsoletes: glibc-devel-doc(i586)
501 Obsoletes: glibc-devel-doc(i686)
502 Obsoletes: glibc-devel-doc(pentium3)
503 Obsoletes: glibc-devel-doc(pentium4)
506 Obsoletes: glibc-devel-doc(ppc)
509 Obsoletes: glibc-devel-doc(s390)
512 Obsoletes: glibc-devel-doc(sparc)
515 %description devel-doc
516 The glibc-devel-doc package contains info and manual pages necessary
517 for developing programs which use the standard C libraries (which are
518 used by nearly all programs).
520 Install glibc-devel-doc if you are going to develop programs which
521 will use the standard C libraries.
523 %description devel-doc -l pl.UTF-8
524 Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
525 rozwijania programów używających standardowych bibliotek C (używanych
526 przez prawie wszystkie programy).
528 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
529 korzystające ze standardowych bibliotek C.
532 Summary: Name Service Caching Daemon
533 Summary(es.UTF-8): Demonio de caché del servicio de nombres
534 Summary(ja.UTF-8): ネームサービスキャッシングデーモン (nacd)
535 Summary(pl.UTF-8): Demon zapamiętujący odpowiedzi serwisów nazw
536 Summary(ru.UTF-8): Кэширующий демон сервисов имен
537 Summary(uk.UTF-8): Кешуючий демон севісів імен
539 Group: Networking/Daemons
540 Requires(post): fileutils
541 Requires(post,preun): /sbin/chkconfig
542 Requires(postun): /usr/sbin/groupdel
543 Requires(postun): /usr/sbin/userdel
544 Requires(pre): /bin/id
545 Requires(pre): /usr/bin/getgid
546 Requires(pre): /usr/sbin/groupadd
547 Requires(pre): /usr/sbin/useradd
548 Requires: %{name} = %{epoch}:%{version}-%{release}
549 %{?with_selinux:Requires: libselinux >= 1.18}
550 Requires: rc-scripts >= 0.2.0
551 Provides: group(nscd)
555 nscd caches name service lookups; it can dramatically improve
556 performance with NIS+, and may help with DNS as well.
558 %description -n nscd -l es.UTF-8
559 nscd guarda las peticiones del servicio de nombres en una caché; eso
560 puede aumentar drásticamente las prestaciones de NIS+, y también puede
563 %description -n nscd -l ja.UTF-8
564 Nscd はネームサービス参照をキャッシュし、NIS+ のパフォーマンスを
565 ドラマティックに改善することができ、DNS を同様に補助します。
567 %description -n nscd -l pl.UTF-8
568 nscd zapamiętuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
569 drastycznie poprawić szybkość działania NIS+.
571 %description -n nscd -l ru.UTF-8
572 nscd кэширует результаты запросов к сервисам имен; это может резко
573 увеличить производительность работы с NIS+ и, также, может помочь с
576 %description -n nscd -l uk.UTF-8
577 nscd кешує результати запросів до сервісів імен; це може сильно
578 збільшити швидкість роботи з NIS+ і, також, може допомогти з DNS.
580 %package -n localedb-src
581 Summary: locale database source code
582 Summary(es.UTF-8): Código fuente de la base de datos de los locales
583 Summary(pl.UTF-8): Kod źródłowy bazy locale
585 Requires: %{name} = %{epoch}:%{version}-%{release}
590 %description -n localedb-src
591 This add-on package contains the data needed to build the locale data
592 files to use the internationalization features of the GNU libc.
594 %description -n localedb-src -l es.UTF-8
595 Este paquete adicional contiene los datos necesarios para construir
596 los ficheros de locale, imprescindibles para usar las cualidades de
597 internacionalización de GNU libc.
599 %description -n localedb-src -l pl.UTF-8
600 Pakiet ten zawiera dane niezbędne do zbudowania binarnych plików
601 lokalizacyjnych, by móc wykorzystać możliwości oferowane przez GNU
604 %package localedb-all
605 Summary: locale database for all locales supported by glibc
606 Summary(es.UTF-8): Base de datos de todos los locales soportados por glibc
607 Summary(pl.UTF-8): Baza danych locale dla wszystkich lokalizacji obsługiwanych przez glibc
609 Requires: %{name} = %{epoch}:%{version}-%{release}
610 Requires: iconv = %{epoch}:%{version}-%{release}
613 %description localedb-all
614 This package contains locale database for all locales supported by
615 glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
616 something smaller with support for chosen locales only, consider
617 installing localedb-src and regenerating database using localedb-gen
618 script (when database is generated, localedb-src can be uninstalled).
620 %description localedb-all -l es.UTF-8
621 Este paquete contiene una base de datos de todos los locales
622 soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
623 39 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
624 locales elegidos, considérese instalar localedb-src y regenerar la
625 base de datos usando el escript localedb-gen (una vez que la base de
626 datos esté creada, localedb-src se podrá desinstalar).
628 %description localedb-all -l pl.UTF-8
629 Ten pakiet zawiera bazę danych locale dla wszystkich lokalizacji
630 obsługiwanych przez glibc. W glibc 2.3.x jest to jeden duży plik
631 (około 39MB); aby mieć coś mniejszego, z obsługą tylko wybranych
632 lokalizacji, należy zainstalować pakiet localedb-src i przegenerować
633 bazę danych przy użyciu skryptu localedb-gen (po wygenerowaniu bazy
634 pakiet localedb-src można odinstalować).
637 Summary: Convert encoding of given files from one encoding to another
638 Summary(es.UTF-8): Convierte entre varias codificaciones de los ficheros dados
639 Summary(pl.UTF-8): Moduły do konwersji plików tekstowych z jednego kodowania do innego
641 Requires: %{name} = %{epoch}:%{version}-%{release}
642 Provides: iconv(%{_target_base_arch})
644 %description -n iconv
645 Convert encoding of given files from one encoding to another. You need
646 this package if you want to convert some document from one encoding to
647 another or if you have installed some programs which use Generic
648 Character Set Conversion Interface.
650 %description -n iconv -l es.UTF-8
651 Convierte la codificación de dados ficheros. Necesita este paquete si
652 quiere convertir un documento entre una codificación (juego de
653 caracteres) y otra, o si tiene instalado algún programa que usa el
654 Generic Character Set Conversion Interface (interfaz genérica de
655 conversión de juegos de caracteres).
657 %description -n iconv -l pl.UTF-8
658 Moduły do konwersji plików tekstowych z jednego kodowania do innego.
659 Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
660 dokumentów z jednego kodowania do innego lub do używania programów
661 korzystających z Generic Character Set Conversion Interface w glibc,
662 czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
663 kodowania danych z poziomu dowolnego programu.
666 Summary: Static libraries
667 Summary(es.UTF-8): Bibliotecas estáticas
668 Summary(pl.UTF-8): Biblioteki statyczne
669 Summary(ru.UTF-8): Статические библиотеки glibc
670 Summary(uk.UTF-8): Статичні бібліотеки glibc
671 Group: Development/Libraries
672 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
673 Provides: %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
674 Obsoletes: libiconv-static
677 GNU libc static libraries.
679 %description static -l es.UTF-8
680 Bibliotecas estáticas de GNU libc.
682 %description static -l pl.UTF-8
683 Biblioteki statyczne GNU libc.
685 %description static -l ru.UTF-8
686 Это отдельный пакет со статическими библиотеками, которые больше не
687 входят в glibc-devel.
689 %description static -l uk.UTF-8
690 Це окремий пакет зі статичними бібліотеками, що більше не входять в
694 Summary: glibc with profiling support
695 Summary(de.UTF-8): glibc mit Profil-Unterstützung
696 Summary(es.UTF-8): glibc con soporte de perfilamiento
697 Summary(fr.UTF-8): glibc avec support pour profiling
698 Summary(pl.UTF-8): glibc ze wsparciem dla profilowania
699 Summary(ru.UTF-8): GNU libc с поддержкой профайлера
700 Summary(tr.UTF-8): Ölçüm desteği olan glibc
701 Summary(uk.UTF-8): GNU libc з підтримкою профайлера
702 Group: Development/Libraries/Libc
703 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
704 Obsoletes: libc-profile
707 When programs are being profiled using gprof, they must use these
708 libraries instead of the standard C libraries for gprof to be able to
709 profile them correctly.
711 %description profile -l de.UTF-8
712 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
713 Libraries anstelle der üblichen C-Libraries verwendet werden.
715 %description profile -l es.UTF-8
716 Cuando programas son perfilidas usando gprof, tienen que usar estas
717 biblioteces en vez de las estándares para que gprof pueda perfilarlas
720 %description profile -l pl.UTF-8
721 Programy profilowane za pomocą gprof muszą używać tych bibliotek
722 zamiast standardowych bibliotek C, aby gprof mógł odpowiednio je
725 %description profile -l uk.UTF-8
726 Коли програми досліджуються профайлером gprof, вони повинні
727 використовувати замість стандартних бібліотек бібліотеки, що містяться
728 в цьому пакеті. При використанні стандартних бібліотек gprof замість
729 реальних результатів буде показувати ціни на папайю в Гонолулу в
732 %description profile -l tr.UTF-8
733 gprof kullanılarak ölçülen programlar standart C kitaplığı yerine bu
734 kitaplığı kullanmak zorundadırlar.
736 %description profile -l ru.UTF-8
737 Когда программы исследуются профайлером gprof, они должны
738 использовать, вместо стандартных библиотек, библиотеки, включенные в
739 этот пакет. При использовании стандартных библиотек gprof вместо
740 реальных результатов будет показывать цены на папайю в Гонолулу в
744 Summary: glibc PIC archive
745 Summary(es.UTF-8): Archivo PIC de glibc
746 Summary(pl.UTF-8): Archiwum PIC glibc
747 Group: Development/Libraries/Libc
748 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
751 GNU C Library PIC archive contains an archive library (ar file)
752 composed of individual shared objects. This is used for creating a
753 library which is a smaller subset of the standard libc shared library.
755 %description pic -l es.UTF-8
756 El archivo PIC de la biblioteca glibc contiene una biblioteca
757 archivada (un fichero ar) compuesta de individuales objetos
758 compartidos. Es usado para crear una biblioteca que sea un subconjunto
759 más pequeño de la biblioteca libc compartida estándar.
761 %description pic -l pl.UTF-8
762 Archiwum PIC biblioteki GNU C zawiera archiwalną bibliotekę (plik ar)
763 złożoną z pojedynczych obiektów współdzielonych. Używana jest do
764 tworzenia biblioteki będącej mniejszym podzestawem standardowej
765 biblioteki współdzielonej libc.
767 %package -n nss_compat
768 Summary: Old style NYS NSS glibc module
769 Summary(es.UTF-8): El antiguo módulo NYS NSS de glibc
770 Summary(pl.UTF-8): Stary moduł NYS NSS glibc
772 Requires: %{name} = %{epoch}:%{version}-%{release}
774 %description -n nss_compat
775 Old style NYS NSS glibc module.
777 %description -n nss_compat -l es.UTF-8
778 El antiguo módulo NYS NSS de glibc
780 %description -n nss_compat -l pl.UTF-8
781 Stary moduł NYS NSS glibc.
784 Summary: BIND NSS glibc module
785 Summary(es.UTF-8): Módulo BIND NSS de glibc
786 Summary(pl.UTF-8): Moduł BIND NSS glibc
788 Requires: %{name} = %{epoch}:%{version}-%{release}
790 %description -n nss_dns
791 BIND NSS glibc module.
793 %description -n nss_dns -l es.UTF-8
794 Módulo BIND NSS de glibc.
796 %description -n nss_dns -l pl.UTF-8
797 Moduł BIND NSS glibc.
799 %package -n nss_files
800 Summary: Traditional files databases NSS glibc module
801 Summary(es.UTF-8): Módulo de tradicionales bases de datos en ficheros para glibc
802 Summary(pl.UTF-8): Moduł tradycyjnych plikowych baz danych NSS glibc
804 Requires: %{name} = %{epoch}:%{version}-%{release}
806 %description -n nss_files
807 Traditional files databases NSS glibc module.
809 %description -n nss_files -l es.UTF-8
810 Módulo de tradicionales bases de datos en ficheros para glibc.
812 %description -n nss_files -l pl.UTF-8
813 Moduł tradycyjnych plikowych baz danych NSS glibc.
815 %package -n nss_hesiod
816 Summary: hesiod NSS glibc module
817 Summary(es.UTF-8): Módulo hesiod NSS de glibc
818 Summary(pl.UTF-8): Moduł hesiod NSS glibc
820 Requires: %{name} = %{epoch}:%{version}-%{release}
822 %description -n nss_hesiod
823 glibc NSS (Name Service Switch) module for databases access.
825 %description -n nss_hesiod -l es.UTF-8
826 Módulo hesiod NSS de glibc.
828 %description -n nss_hesiod -l pl.UTF-8
829 Moduł glibc NSS (Name Service Switch) dostępu do baz danych.
832 Summary: NIS(YP) NSS glibc module
833 Summary(es.UTF-8): Módulo NIS(YP) NSS de glibc
834 Summary(pl.UTF-8): Moduł NIS(YP) NSS glibc
836 Requires: %{name} = %{epoch}:%{version}-%{release}
838 %description -n nss_nis
839 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
841 %description -n nss_nis -l es.UTF-8
842 Módulo NSS de glibc para acceder las bases de datos NIS(YP).
844 %description -n nss_nis -l pl.UTF-8
845 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS(YP).
847 %package -n nss_nisplus
848 Summary: NIS+ NSS module
849 Summary(es.UTF-8): Módulo NIS+ NSS
850 Summary(pl.UTF-8): Moduł NIS+ NSS
852 Requires: %{name} = %{epoch}:%{version}-%{release}
854 %description -n nss_nisplus
855 glibc NSS (Name Service Switch) module for NIS+ databases access.
857 %description -n nss_nisplus -l es.UTF-8
858 Módulo NSS (Name Service Switch) de glibc para acceder las bases de
861 %description -n nss_nisplus -l pl.UTF-8
862 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
866 Summary(es.UTF-8): Un juguete
867 Summary(pl.UTF-8): Zabawka
869 Requires: %{name} = %{epoch}:%{version}-%{release}
871 %description memusage
874 %description memusage -l es.UTF-8
877 %description memusage -l pl.UTF-8
882 ln -s glibc-libidn-%{version} libidn
903 %{?with_cross:%patch21 -p1}
910 # these would be copied to localedb-src
911 rm -f localedata/locales/*{.orig,~}
915 # i786 (aka pentium4) hack
916 cd nptl/sysdeps/i386 && ln -s i686 i786 && cd -
917 cd nptl/sysdeps/unix/sysv/linux/i386 && ln -s i686 i786 && cd -
919 # A lot of programs still misuse memcpy when they have to use
920 # memmove. The memcpy implementation below is not tolerant at
922 rm sysdeps/alpha/alphaev6/memcpy.S
925 # glibc has its own way to remove PLT relocations. / H. J. Lu.
926 unset LD_SYMBOLIC_FUNCTIONS || :
928 cp -f /usr/share/automake/config.sub scripts
936 CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
940 --enable-kernel="%{min_kernel}" \
942 --with-headers=%{_includedir} \
943 --with%{!?with_selinux:out}-selinux \
945 --enable-add-ons=nptl,libidn \
946 --enable-stackguard-randomization \
947 --enable-hidden-plt \
958 for d in builddir; do
960 env LANGUAGE=C LC_ALL=C \
961 %{__make} tests 2>&1 | awk '
964 if (($0 ~ /\*\*\* \[.*\.out\] Error/) && ($0 !~ /annexc/) && (file == "")) {
966 gsub(/.*\[/, NIL, file);
967 gsub(/\].*/, NIL, file);
971 END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
978 diet ${CC#*ccache } %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
982 rm -rf $RPM_BUILD_ROOT
983 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd}
986 env LANGUAGE=C LC_ALL=C \
988 install_root=$RPM_BUILD_ROOT \
989 infodir=%{_infodir} \
993 env LANGUAGE=C LC_ALL=C \
994 %{__make} localedata/install-locales \
995 install_root=$RPM_BUILD_ROOT
998 PICFILES="libc_pic.a libc.map
999 math/libm_pic.a libm.map
1000 resolv/libresolv_pic.a"
1002 install $PICFILES $RPM_BUILD_ROOT%{_libdir}
1003 install elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
1004 install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
1006 # Include %{_libdir}/gconv/gconv-modules.cache
1007 ./iconv/iconvconfig --nostdlib --prefix=$RPM_BUILD_ROOT %{_libdir}/gconv -o $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
1010 %if %{without cross}
1011 install glibc-postinst $RPM_BUILD_ROOT/sbin
1014 %{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
1015 mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
1017 # moved to tzdata package
1018 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
1019 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo
1021 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
1023 # make symlinks across top-level directories absolute
1024 for l in BrokenLocale anl cidn crypt dl m nsl resolv rt thread_db util; do
1025 test -L $RPM_BUILD_ROOT%{_libdir}/lib${l}.so || exit 1
1026 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
1027 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${l}.so.*) $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
1030 # linking nss modules directly is not supported
1031 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
1033 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1034 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
1035 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
1036 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
1037 sed -e 's#\([ \t]\)db\([ \t]\)#\1#g' nss/nsswitch.conf > $RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.conf
1038 install posix/gai.conf $RPM_BUILD_ROOT%{_sysconfdir}
1040 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1041 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
1042 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
1043 echo 'include ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
1044 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
1046 :> $RPM_BUILD_ROOT/var/log/nscd
1047 :> $RPM_BUILD_ROOT/var/lib/nscd/passwd
1048 :> $RPM_BUILD_ROOT/var/lib/nscd/group
1049 :> $RPM_BUILD_ROOT/var/lib/nscd/hosts
1051 rm -rf documentation
1052 install -d documentation
1054 for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing}; do
1055 cp -f nptl/$f documentation/$f.nptl
1057 cp -f crypt/README.ufc-crypt ChangeLog* documentation
1059 # Collect locale files and mark them with %%lang()
1061 echo '%defattr(644,root,root,755)' > glibc.lang
1062 for i in $RPM_BUILD_ROOT%{_datadir}/locale/*; do
1065 dir="${i#$RPM_BUILD_ROOT}"
1066 echo "%lang($lang) $dir" >> glibc.lang
1071 # Languages not supported by glibc locales, but usable via $LANGUAGE:
1072 # ang - Old English (gtk+, gnome)
1073 # tlh - Klingon (bzflag)
1075 # sr@ije (use LANGUAGE=sr_ME@ije/sr_RS@ije) (gnome)
1077 # To be added when they become supported by glibc:
1079 # ca@valencia (gtk+2; as ca_ES@valencia in FileZilla; locale exists in Debian)
1082 # gn (gn_BR in gnome, maybe gn_PY)
1083 # la (deluge, gnome, others; patch needed, won't be officially supported)
1089 # man (ccsm; incorrectly named md)
1095 # bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
1098 # Omitted here - already existing (with libc.mo):
1099 # be ca cs da de el en_GB es fi fr gl hr hu it ja ko nb nl pl pt_BR ru rw sk
1102 for i in aa aa@saaho af am an ang ar ar_TN as ast az be@alternative be@latin \
1103 bg bn bn_IN br bs byn crh csb cy de_AT de_CH dz en en@boldquot en@quot \
1104 en_AU en_CA en_NZ en_US eo es_AR es_CL es_CO es_CR es_DO es_EC es_GT \
1105 es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY es_VE et eu fa fil fo \
1106 fr_BE fr_CA fr_CH fur fy ga gd gez gu gv ha he hi hsb hy ia id ig ik \
1107 is it_CH iu ka kk kl km kn ks ku kw ky lg li lo lt lv mai mg mi mk ml \
1108 mn mr ms mt nds ne nl_BE nn nr nso oc om or pa pap ps pt rm ro sa sc \
1109 se si sid sl so sq sr sr@Latn sr@ije sr@latin ss st sw ta te tg th ti \
1110 tig tk tl tlh tn ts tt ug uk ur uz uz@cyrillic ve vi wa wal wo xh yi \
1112 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
1113 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
1114 # use lang() tags with ll_CC@variant (stripping charset and @quot|@boldquot)
1115 lang=`echo $i | sed -e 's/@quot\>\|@boldquot\>//'`
1116 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
1120 # LC_TIME category, used for localized date formats (at least by coreutils)
1121 for i in af be bg ca cs da de el es et eu fi fr ga gl hu id it ja ko lt ms nb nl pl \
1122 pt pt_BR ru rw sk sl sv tr uk vi zh_CN zh_TW; do
1123 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i ]; then
1124 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
1126 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_TIME
1129 # localedb-gen infrastructure
1130 sed -e 's,@localedir@,%{_libdir}/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1131 chmod +x $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1132 install localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
1134 # shutup check-files
1135 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
1136 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
1137 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1138 # we don't support kernel without ptys support
1139 rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
1141 rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/rpcinfo.8
1142 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpcinfo.8
1143 rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo
1146 rm -rf $RPM_BUILD_ROOT
1148 %if %{without cross}
1149 %post -p /sbin/postshell
1150 /sbin/glibc-postinst /%{_lib}/%{_host_cpu} /%{_lib}/tls
1153 %postun -p /sbin/ldconfig
1155 %triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
1156 -/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1157 -/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
1160 %post memusage -p /sbin/ldconfig
1161 %postun memusage -p /sbin/ldconfig
1163 %post -n iconv -p %{_sbindir}/iconvconfig
1165 %post devel -p /sbin/postshell
1166 -/usr/sbin/fix-info-dir -c %{_infodir}
1168 %postun devel -p /sbin/postshell
1169 -/usr/sbin/fix-info-dir -c %{_infodir}
1172 %groupadd -P nscd -g 144 -r nscd
1173 %useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "Name Service Cache Daemon" -g nscd nscd
1176 /sbin/chkconfig --add nscd
1178 chmod 000 /var/log/nscd
1179 chown root:root /var/log/nscd
1180 chmod 640 /var/log/nscd
1181 %service nscd restart "nscd daemon"
1184 if [ "$1" = "0" ]; then
1186 /sbin/chkconfig --del nscd
1190 if [ "$1" = "0" ]; then
1196 %defattr(644,root,root,755)
1197 %doc README NEWS FAQ BUGS
1198 %if %{without cross}
1199 %attr(755,root,root) /sbin/glibc-postinst
1201 # TODO: package ldconfig symlinks as %ghost
1202 %attr(755,root,root) /%{_lib}/ld-%{version}.so
1203 # wildly arch-dependent ld.so SONAME symlink
1204 %ifarch %{ix86} sparc sparcv9 sparc64 alpha sh
1205 %attr(755,root,root) /%{_lib}/ld-linux.so.2
1208 %attr(755,root,root) /%{_lib}/ld-linux-ia64.so.2
1211 %attr(755,root,root) /%{_lib}/ld-linux-x86-64.so.2
1214 %attr(755,root,root) /%{_lib}/ld64.so.1
1216 %ifnarch %{ix86} sparc sparcv9 sparc64 alpha sh ia64 %{x8664} ppc64 s390x
1217 %attr(755,root,root) /%{_lib}/ld.so.1
1219 %attr(755,root,root) /%{_lib}/libBrokenLocale-%{version}.so
1221 %attr(755,root,root) /%{_lib}/libBrokenLocale.so.1.1
1223 %attr(755,root,root) /%{_lib}/libBrokenLocale.so.1
1225 %attr(755,root,root) /%{_lib}/libSegFault.so
1226 %attr(755,root,root) /%{_lib}/libanl-%{version}.so
1227 %attr(755,root,root) /%{_lib}/libanl.so.1
1228 %attr(755,root,root) /%{_lib}/libc-%{version}.so
1230 %attr(755,root,root) /%{_lib}/libc.so.6.1
1232 %attr(755,root,root) /%{_lib}/libc.so.6
1234 %attr(755,root,root) /%{_lib}/libcidn-%{version}.so
1235 %attr(755,root,root) /%{_lib}/libcidn.so.1
1236 %attr(755,root,root) /%{_lib}/libcrypt-%{version}.so
1238 %attr(755,root,root) /%{_lib}/libcrypt.so.1.1
1240 %attr(755,root,root) /%{_lib}/libcrypt.so.1
1242 %attr(755,root,root) /%{_lib}/libdl-%{version}.so
1244 %attr(755,root,root) /%{_lib}/libdl.so.2.1
1246 %attr(755,root,root) /%{_lib}/libdl.so.2
1248 %attr(755,root,root) /%{_lib}/libm-%{version}.so
1250 %attr(755,root,root) /%{_lib}/libm.so.6.1
1252 %attr(755,root,root) /%{_lib}/libm.so.6
1254 %attr(755,root,root) /%{_lib}/libnsl-%{version}.so
1256 %attr(755,root,root) /%{_lib}/libnsl.so.1.1
1258 %attr(755,root,root) /%{_lib}/libnsl.so.1
1260 %attr(755,root,root) /%{_lib}/libpthread-%{version}.so
1261 %attr(755,root,root) /%{_lib}/libpthread.so.0
1262 %attr(755,root,root) /%{_lib}/libresolv-%{version}.so
1264 %attr(755,root,root) /%{_lib}/libresolv.so.2.1
1266 %attr(755,root,root) /%{_lib}/libresolv.so.2
1268 %attr(755,root,root) /%{_lib}/librt-%{version}.so
1269 %attr(755,root,root) /%{_lib}/librt.so.1
1270 %attr(755,root,root) /%{_lib}/libthread_db-1.0.so
1271 %attr(755,root,root) /%{_lib}/libthread_db.so.1
1272 %attr(755,root,root) /%{_lib}/libutil-%{version}.so
1274 %attr(755,root,root) /%{_lib}/libutil.so.1.1
1276 %attr(755,root,root) /%{_lib}/libutil.so.1
1278 %{?with_localedb:%dir %{_libdir}/locale}
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) /%{_lib}/libnss_dns-%{version}.so
1283 %attr(755,root,root) /%{_lib}/libnss_dns.so.2
1285 #%files -n nss_files
1286 %defattr(644,root,root,755)
1287 %attr(755,root,root) /%{_lib}/libnss_files-%{version}.so
1288 %attr(755,root,root) /%{_lib}/libnss_files.so.2
1291 %defattr(644,root,root,755)
1292 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
1293 %dir %{_sysconfdir}/ld.so.conf.d
1294 %ghost %{_sysconfdir}/ld.so.cache
1295 %attr(755,root,root) /sbin/ldconfig
1296 %{_mandir}/man8/ldconfig.8*
1297 %lang(es) %{_mandir}/es/man8/ldconfig.8*
1298 %lang(fr) %{_mandir}/fr/man8/ldconfig.8*
1299 %lang(hu) %{_mandir}/hu/man8/ldconfig.8*
1300 %lang(ja) %{_mandir}/ja/man8/ldconfig.8*
1301 %lang(pl) %{_mandir}/pl/man8/ldconfig.8*
1302 %lang(pt) %{_mandir}/pt/man8/ldconfig.8*
1303 %lang(ru) %{_mandir}/ru/man8/ldconfig.8*
1305 %files misc -f %{name}.lang
1306 %defattr(644,root,root,755)
1308 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
1309 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
1311 %config %{_sysconfdir}/rpc
1313 %attr(755,root,root) /sbin/sln
1314 %attr(755,root,root) %{_bindir}/catchsegv
1315 %attr(755,root,root) %{_bindir}/getconf
1316 %attr(755,root,root) %{_bindir}/getent
1317 %attr(755,root,root) %{_bindir}/iconv
1318 %attr(755,root,root) %{_bindir}/ldd
1319 %ifarch %{ix86} m68k sparc sparcv9
1320 %attr(755,root,root) %{_bindir}/lddlibc4
1322 %attr(755,root,root) %{_bindir}/locale
1323 %attr(755,root,root) %{_bindir}/rpcgen
1324 %attr(755,root,root) %{_bindir}/tzselect
1326 %attr(755,root,root) %{_sbindir}/zdump
1327 %attr(755,root,root) %{_sbindir}/zic
1329 %dir %{_libexecdir}/getconf
1330 %attr(755,root,root) %{_libexecdir}/getconf/*
1332 %dir %{_datadir}/locale
1333 %{_datadir}/locale/locale.alias
1335 %{_mandir}/man1/catchsegv.1*
1336 %{_mandir}/man1/getconf.1*
1337 %{_mandir}/man1/getent.1*
1338 %{_mandir}/man1/iconv.1*
1339 %{_mandir}/man1/ldd.1*
1340 %{_mandir}/man1/locale.1*
1341 %{_mandir}/man1/rpcgen.1*
1342 %{_mandir}/man5/locale.5*
1343 %{_mandir}/man5/nsswitch.conf.5*
1344 %{_mandir}/man5/tzfile.5*
1346 %{_mandir}/man8/ld-linux.8*
1347 %{_mandir}/man8/ld-linux.so.8*
1348 %{_mandir}/man8/ld.so.8*
1349 %{_mandir}/man8/sln.8*
1350 %{_mandir}/man8/tzselect.8*
1351 %{_mandir}/man8/zdump.8*
1352 %{_mandir}/man8/zic.8*
1353 %lang(cs) %{_mandir}/cs/man7/*
1354 %lang(de) %{_mandir}/de/man5/tzfile.5*
1355 %lang(de) %{_mandir}/de/man7/*
1356 %lang(es) %{_mandir}/es/man1/ldd.1*
1357 %lang(es) %{_mandir}/es/man5/locale.5*
1358 %lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
1359 %lang(es) %{_mandir}/es/man5/tzfile.5*
1360 %lang(es) %{_mandir}/es/man7/*
1361 %lang(es) %{_mandir}/es/man8/ld-linux.8*
1362 %lang(es) %{_mandir}/es/man8/ld-linux.so.8*
1363 %lang(es) %{_mandir}/es/man8/ld.so.8*
1364 %lang(es) %{_mandir}/es/man8/tzselect.8*
1365 %lang(es) %{_mandir}/es/man8/zdump.8*
1366 %lang(es) %{_mandir}/es/man8/zic.8*
1367 %lang(fi) %{_mandir}/fi/man1/ldd.1*
1368 %lang(fr) %{_mandir}/fr/man1/ldd.1*
1369 %lang(fr) %{_mandir}/fr/man5/locale.5*
1370 %lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
1371 %lang(fr) %{_mandir}/fr/man5/tzfile.5*
1372 %lang(fr) %{_mandir}/fr/man7/*
1373 %lang(fr) %{_mandir}/fr/man8/ld-linux.8*
1374 %lang(fr) %{_mandir}/fr/man8/ld-linux.so.8*
1375 %lang(fr) %{_mandir}/fr/man8/ld.so.8*
1376 %lang(fr) %{_mandir}/fr/man8/tzselect.8*
1377 %lang(fr) %{_mandir}/fr/man8/zdump.8*
1378 %lang(fr) %{_mandir}/fr/man8/zic.8*
1379 %lang(hu) %{_mandir}/hu/man1/ldd.1*
1380 %lang(hu) %{_mandir}/hu/man7/*
1381 %lang(hu) %{_mandir}/hu/man8/ld-linux.8*
1382 %lang(hu) %{_mandir}/hu/man8/ld-linux.so.8*
1383 %lang(hu) %{_mandir}/hu/man8/ld.so.8*
1384 %lang(hu) %{_mandir}/hu/man8/zdump.8*
1385 %lang(it) %{_mandir}/it/man5/locale.5*
1386 %lang(it) %{_mandir}/it/man7/*
1387 %lang(it) %{_mandir}/it/man8/tzselect.8*
1388 %lang(it) %{_mandir}/it/man8/zdump.8*
1389 %lang(ja) %{_mandir}/ja/man1/ldd.1*
1390 %lang(ja) %{_mandir}/ja/man1/rpcgen.1*
1391 %lang(ja) %{_mandir}/ja/man5/locale.5*
1392 %lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
1393 %lang(ja) %{_mandir}/ja/man5/tzfile.5*
1394 %lang(ja) %{_mandir}/ja/man7/*
1395 %lang(ja) %{_mandir}/ja/man8/ld-linux.8*
1396 %lang(ja) %{_mandir}/ja/man8/ld-linux.so.8*
1397 %lang(ja) %{_mandir}/ja/man8/ld.so.8*
1398 %lang(ja) %{_mandir}/ja/man8/sln.8*
1399 %lang(ja) %{_mandir}/ja/man8/tzselect.8*
1400 %lang(ja) %{_mandir}/ja/man8/zdump.8*
1401 %lang(ja) %{_mandir}/ja/man8/zic.8*
1402 %lang(ko) %{_mandir}/ko/man1/ldd.1*
1403 %lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
1404 %lang(ko) %{_mandir}/ko/man5/tzfile.5*
1405 %lang(ko) %{_mandir}/ko/man7/*
1406 %lang(ko) %{_mandir}/ko/man8/tzselect.8*
1407 %lang(ko) %{_mandir}/ko/man8/zdump.8*
1408 %lang(pl) %{_mandir}/pl/man1/ldd.1*
1409 %lang(pl) %{_mandir}/pl/man5/locale.5*
1410 %lang(pl) %{_mandir}/pl/man7/*
1411 %lang(pl) %{_mandir}/pl/man8/ld-linux.8*
1412 %lang(pl) %{_mandir}/pl/man8/ld-linux.so.8*
1413 %lang(pl) %{_mandir}/pl/man8/ld.so.8*
1414 %lang(pt) %{_mandir}/pt/man5/locale.5*
1415 %lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
1416 %lang(pt) %{_mandir}/pt/man5/tzfile.5*
1417 %lang(pt) %{_mandir}/pt/man7/*
1418 %lang(pt) %{_mandir}/pt/man8/tzselect.8*
1419 %lang(pt) %{_mandir}/pt/man8/zdump.8*
1420 %lang(pt) %{_mandir}/pt/man8/zic.8*
1421 %lang(ru) %{_mandir}/ru/man1/getent.1*
1422 %lang(ru) %{_mandir}/ru/man1/iconv.1*
1423 %lang(ru) %{_mandir}/ru/man1/ldd.1*
1424 %lang(ru) %{_mandir}/ru/man1/locale.1*
1425 %lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1426 %lang(ru) %{_mandir}/ru/man5/locale.5*
1427 %lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
1428 %lang(ru) %{_mandir}/ru/man5/tzfile.5*
1429 %lang(ru) %{_mandir}/ru/man7/*
1430 %lang(ru) %{_mandir}/ru/man8/ld-linux.so.8*
1431 %lang(ru) %{_mandir}/ru/man8/ld.so.8*
1432 %lang(ru) %{_mandir}/ru/man8/tzselect.8*
1433 %lang(ru) %{_mandir}/ru/man8/zdump.8*
1434 %lang(ru) %{_mandir}/ru/man8/zic.8*
1435 %lang(tr) %{_mandir}/tr/man1/iconv.1*
1436 %lang(tr) %{_mandir}/tr/man1/ldd.1*
1437 %lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
1438 %lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
1439 %lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
1440 %lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
1441 %lang(zh_CN) %{_mandir}/zh_CN/man7/*
1442 %lang(zh_CN) %{_mandir}/zh_CN/man8/tzselect.8*
1443 %lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1444 %lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
1446 %files -n nss_compat
1447 %defattr(644,root,root,755)
1448 %attr(755,root,root) /%{_lib}/libnss_compat-%{version}.so
1449 %attr(755,root,root) /%{_lib}/libnss_compat.so.2
1451 %files -n nss_hesiod
1452 %defattr(644,root,root,755)
1453 %attr(755,root,root) /%{_lib}/libnss_hesiod-%{version}.so
1454 %attr(755,root,root) /%{_lib}/libnss_hesiod.so.2
1457 %defattr(644,root,root,755)
1458 %attr(755,root,root) /%{_lib}/libnss_nis-%{version}.so
1459 %attr(755,root,root) /%{_lib}/libnss_nis.so.2
1461 %files -n nss_nisplus
1462 %defattr(644,root,root,755)
1463 %attr(755,root,root) /%{_lib}/libnss_nisplus-%{version}.so
1464 %attr(755,root,root) /%{_lib}/libnss_nisplus.so.2
1466 %if %{with memusage}
1468 %defattr(644,root,root,755)
1469 %attr(755,root,root) %{_bindir}/memusage*
1470 %attr(755,root,root) %{_libdir}/libmemusage.so
1474 %defattr(644,root,root,755)
1475 %attr(755,root,root) %{_libdir}/libBrokenLocale.so
1476 %attr(755,root,root) %{_libdir}/libanl.so
1477 %attr(755,root,root) %{_libdir}/libcrypt.so
1478 %attr(755,root,root) %{_libdir}/libcidn.so
1479 %attr(755,root,root) %{_libdir}/libdl.so
1480 %attr(755,root,root) %{_libdir}/libm.so
1481 %attr(755,root,root) %{_libdir}/libnsl.so
1482 %attr(755,root,root) %{_libdir}/libpcprofile.so
1483 %attr(755,root,root) %{_libdir}/libresolv.so
1484 %attr(755,root,root) %{_libdir}/librt.so
1485 %attr(755,root,root) %{_libdir}/libthread_db.so
1486 %attr(755,root,root) %{_libdir}/libutil.so
1487 %{_libdir}/crt[1in].o
1488 %{_libdir}/[MSg]crt1.o
1491 %{_libdir}/libpthread.so
1493 %{_libdir}/libbsd-compat.a
1495 %{_libdir}/libc_nonshared.a
1497 %{_libdir}/libieee.a
1498 %ifarch alpha ppc sparc
1499 %{_libdir}/libnldbl_nonshared.a
1501 %{_libdir}/libpthread_nonshared.a
1502 %{_libdir}/librpcsvc.a
1503 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
1504 # ABI-dependent headers
1505 %{_includedir}/gnu/stubs-*.h
1509 %defattr(644,root,root,755)
1512 %{_includedir}/alpha
1516 %dir %{_includedir}/gnu
1517 %{_includedir}/gnu/lib*.h
1518 %{_includedir}/gnu/stubs.h
1520 %{_includedir}/netash
1521 %{_includedir}/netatalk
1522 %{_includedir}/netax25
1523 %{_includedir}/neteconet
1524 %{_includedir}/netiucv
1525 %{_includedir}/netinet
1526 %{_includedir}/netipx
1527 %{_includedir}/netpacket
1528 %{_includedir}/netrom
1529 %{_includedir}/netrose
1531 %{_includedir}/protocols
1533 %{_includedir}/rpcsvc
1538 %defattr(644,root,root,755)
1539 %attr(755,root,root) %{_bindir}/gencat
1540 %attr(755,root,root) %{_bindir}/*prof*
1541 %attr(755,root,root) %{_bindir}/*trace
1544 %defattr(644,root,root,755)
1545 %doc documentation/* NOTES PROJECTS
1546 %{_infodir}/libc.info*
1548 %{_mandir}/man1/sprof.1*
1550 %lang(cs) %{_mandir}/cs/man3/*
1551 %lang(de) %{_mandir}/de/man3/*
1552 %lang(es) %{_mandir}/es/man3/*
1553 %lang(fr) %{_mandir}/fr/man3/*
1554 %lang(hu) %{_mandir}/hu/man3/*
1555 %lang(it) %{_mandir}/it/man3/*
1556 %lang(ja) %{_mandir}/ja/man3/*
1557 %lang(ko) %{_mandir}/ko/man3/*
1558 %lang(nl) %{_mandir}/nl/man3/*
1559 %lang(pl) %{_mandir}/pl/man3/*
1560 %lang(pt) %{_mandir}/pt/man3/*
1561 %lang(ru) %{_mandir}/ru/man1/sprof.1*
1562 %lang(ru) %{_mandir}/ru/man3/*
1563 %lang(tr) %{_mandir}/tr/man3/*
1564 %lang(uk) %{_mandir}/uk/man3/*
1565 %lang(zh_CN) %{_mandir}/zh_CN/man3/*
1568 %defattr(644,root,root,755)
1569 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
1570 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
1571 %attr(754,root,root) /etc/rc.d/init.d/nscd
1572 %attr(755,root,root) %{_sbindir}/nscd*
1573 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
1574 %attr(640,root,root) %ghost /var/log/nscd
1577 %attr(600,root,root) %ghost /var/lib/nscd/passwd
1578 %attr(600,root,root) %ghost /var/lib/nscd/group
1579 %attr(600,root,root) %ghost /var/lib/nscd/hosts
1580 %{_mandir}/man5/nscd.conf.5*
1581 %{_mandir}/man8/nscd.8*
1582 %{_mandir}/man8/nscd_nischeck.8*
1583 %lang(es) %{_mandir}/es/man5/nscd.conf.5*
1584 %lang(es) %{_mandir}/es/man8/nscd.8*
1585 %lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
1586 %lang(fr) %{_mandir}/fr/man8/nscd.8*
1587 %lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
1588 %lang(ja) %{_mandir}/ja/man8/nscd.8*
1589 %lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
1590 %lang(pt) %{_mandir}/pt/man8/nscd.8*
1591 %lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
1592 %lang(ru) %{_mandir}/ru/man8/nscd.8*
1593 %lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
1595 %files -n localedb-src
1596 %defattr(644,root,root,755)
1597 %attr(755,root,root) %{_bindir}/localedef
1598 %attr(755,root,root) %{_bindir}/localedb-gen
1600 %{_mandir}/man1/localedef.1*
1601 %lang(ru) %{_mandir}/ru/man1/localedef.1*
1603 %if %{with localedb}
1605 %defattr(644,root,root,755)
1606 %{_libdir}/locale/locale-archive
1610 %defattr(644,root,root,755)
1611 %attr(755,root,root) %{_sbindir}/iconvconfig
1612 %dir %{_libdir}/gconv
1613 %{_libdir}/gconv/gconv-modules
1614 %verify(not md5 mtime size) %{_libdir}/gconv/gconv-modules.cache
1615 %attr(755,root,root) %{_libdir}/gconv/*.so
1618 %defattr(644,root,root,755)
1620 %{_libdir}/libBrokenLocale.a
1622 %{_libdir}/libcrypt.a
1625 %{_libdir}/libmcheck.a
1627 %{_libdir}/libpthread.a
1628 %{_libdir}/libresolv.a
1630 %{_libdir}/libutil.a
1633 %defattr(644,root,root,755)
1637 %defattr(644,root,root,755)
1638 %{_libdir}/lib*_pic.a