2 # - look at locale fixes/updates in bugzilla
3 # - no more chicken-egg problem (postshell is no more dynamically linked with libc), remove SONAME symlinks? see files section.
5 # - localedb-gen man pages(?)
6 # - math/{test-fenv,test-tgmath,test-float,test-ifloat},
7 # debug/backtrace-tst(SEGV) fail on alpha
10 # min_kernel (default is 2.6.12)
11 %bcond_without memusage # don't build memusage utility
12 %bcond_without selinux # without SELinux support (in nscd)
13 %bcond_with tests # perform "make test"
14 %bcond_without localedb # don't build localedb-all (is time consuming)
15 %bcond_with cross # build using crossgcc (without libgcc_eh)
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: 6856d5d8b1239556687f0d1217f3f266
43 Source3: nscd.sysconfig
44 Source4: nscd.logrotate
45 #Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
46 Source5: http://qboosh.pl/man/%{name}-man-pages.tar.bz2
47 # Source5-md5: f464eadf3cf06761f65639e44a179e6b
48 Source6: %{name}-localedb-gen
49 Source7: %{name}-LD-path.c
50 Patch1: %{name}-pl.po-update.patch
51 Patch2: %{name}-pld.patch
52 Patch3: %{name}-crypt-blowfish.patch
53 Patch5: %{name}-sparc-softfp-gcc.patch
54 Patch6: %{name}-paths.patch
55 Patch7: %{name}-no_opt_override.patch
56 Patch8: %{name}-missing-nls.patch
57 Patch9: %{name}-java-libc-wait.patch
58 Patch10: %{name}-info.patch
59 Patch11: %{name}-no_debuggable_objects.patch
60 Patch14: %{name}-sparc-errno_fix.patch
61 Patch15: %{name}-new-charsets.patch
62 Patch16: %{name}-tzfile-noassert.patch
63 Patch17: %{name}-morelocales.patch
64 Patch18: %{name}-locale_fixes.patch
65 Patch19: %{name}-ZA_collate.patch
66 Patch20: %{name}-thread_start.patch
67 Patch21: %{name}-cross-gcc_eh.patch
68 Patch22: %{name}-with-stroke.patch
69 Patch23: %{name}-pt_pax.patch
70 Patch25: %{name}-cv_gnu89_inline.patch
71 Patch26: %{name}-posix-sh.patch
72 URL: http://www.gnu.org/software/libc/
73 %{?with_selinux:BuildRequires: audit-libs-devel}
74 BuildRequires: autoconf
75 BuildRequires: automake
77 BuildRequires: binutils >= 2:2.17.50.0.7
79 BuildRequires: binutils >= 2:2.15.90.0.3
81 %{!?with_cross:BuildRequires: dietlibc-static}
83 BuildRequires: gcc >= 6:4.3
84 %{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
85 BuildRequires: gettext-devel >= 0.10.36
86 %{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
87 BuildRequires: linux-libc-headers >= %{llh_version}
88 BuildRequires: nss-devel >= 1:3.12.3
89 BuildRequires: perl-base
90 BuildRequires: rpm-build >= 4.3-0.20030610.28
91 BuildRequires: rpmbuild(macros) >= 1.413
92 BuildRequires: sed >= 4.0.5
93 BuildRequires: texinfo
94 Requires(post): ldconfig = %{epoch}:%{version}-%{release}
95 Requires: uname(release) >= %{min_kernel}
98 Provides: rtld(GNU_HASH)
99 Obsoletes: glibc-common
100 Obsoletes: glibc-debug
101 %ifarch %{x8664} sparc64 ppc64
107 Conflicts: %{name}-misc < %{epoch}:%{version}-%{release}
108 Conflicts: SysVinit < 2.86-11
109 Conflicts: kernel < %{min_kernel}
111 Conflicts: kernel24-smp
112 Conflicts: ld.so < 1.9.9-10
113 Conflicts: man-pages < 1.43
114 Conflicts: poldek < 0.18.8-5
115 Conflicts: rc-scripts < 0.3.1-13
117 ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x sparc sparc64 sparcv9 ppc ppc64
118 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
120 # avoid -s here (ld.so must not be stripped to allow any program debugging)
121 %define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
122 # avoid -D_FORTIFY_SOURCE=X
123 %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
125 %define specflags_sparcv9 -mcpu=ultrasparc -mvis -fcall-used-g6
126 %define specflags_sparc64 -mcpu=ultrasparc -mvis -fcall-used-g6
128 # ld.so needs not to be stripped to work
129 # gdb needs unstripped libpthread for some threading support
130 # ...but we can strip at least debuginfo from them
131 %define _autostripdebug .*/ld-[0-9.]*so\\|.*/libpthread-[0-9.]*so
133 # -m from CFLAGS or even LDFLAGS is not propagated to some *.o linking
134 %ifarch sparc sparcv9
135 %{expand:%%define __cc %{__cc} -m32}
139 %define specflags_ia32 -mno-tls-direct-seg-refs
140 %define specflags_x86_64 -mno-tls-direct-seg-refs -fasynchronous-unwind-tables
141 %define specflags_amd64 -mno-tls-direct-seg-refs -fasynchronous-unwind-tables
142 %define specflags_ia32e -mno-tls-direct-seg-refs
144 # we don't want perl dependency in glibc-devel
145 %define _noautoreqfiles %{_bindir}/mtrace
146 # hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
147 # (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
148 # patched not to crash on partial hardlinks too)
149 %define _hack_dontneed_PartialHardlinkSets 1
150 %define _noautochrpath .*\\(ldconfig\\|sln\\)
152 %define _noautoprov .*\(GLIBC_PRIVATE\)
153 %define _noautoreq .*\(GLIBC_PRIVATE\)
156 Contains the standard libraries that are used by multiple programs on
157 the system. In order to save disk space and memory, as well as to ease
158 upgrades, common system code is kept in one place and shared between
159 programs. This package contains the most important sets of shared
160 libraries, the standard C library and the standard math library.
161 Without these, a Linux system will not function. It also contains
162 national language (locale) support.
164 Can be used on: Linux kernel >= %{min_kernel}.
166 %description -l es.UTF-8
167 Contiene las bibliotecas estándared que son usadas por varios
168 programas del sistema. Para ahorrar el espacio en el disco y la
169 memoria, igual que para facilitar actualizaciones, código común del
170 sistema se guarda en un sitio y es compartido entre los programas.
171 Este paquete contiene las bibliotecas compartidas más importantes, es
172 decir la biblioteca C estándar y la biblioteca estándar de matemática.
173 Sin éstas, un sistema Linux no podrá funcionar. También está incluido
174 soporte de idiomas nacionales (locale).
176 Puede usarse con: núcleo Linux >= %{min_kernel}.
178 %description -l de.UTF-8
179 Enthält die Standard-Libraries, die von verschiedenen Programmen im
180 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
181 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
182 einer einzigen Stelle gespeichert und wird von den Programmen
183 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
184 shared Libraries, die Standard-C-Library und die
185 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
186 Ferner enthält es den Support für die verschiedenen Sprachgregionen
189 Can be used on: Linux kernel >= %{min_kernel}.
191 %description -l fr.UTF-8
192 Contient les bibliothèques standards utilisées par de nombreux
193 programmes du système. Afin d'économiser l'espace disque et mémoire,
194 et de faciliter les mises à jour, le code commun au système est mis à
195 un endroit et partagé entre les programmes. Ce paquetage contient les
196 bibliothèques partagées les plus importantes, la bibliothèque standard
197 du C et la bibliothèque mathématique standard. Sans celles-ci, un
198 système Linux ne peut fonctionner. Il contient aussi la gestion des
199 langues nationales (locales).
201 Can be used on: Linux kernel >= %{min_kernel}.
203 %description -l ja.UTF-8
205 パッケージはシステム上の複数のプログラムで使われる標準ライブラリを
206 ふくみます。ディスクスペースとメモリを節約したり、アップグレードを
207 用意にするために、共通のシステムコードは一つの場所におかれ、プログラム
208 間で共有されます。この部分的なパッケージはシェアドライブラリのかなり
209 重要なセットをふくみます: 標準 C ライブラリと標準数値ライブラリです。
210 この二つのライブラリ抜きでは、Linux システムは機能しません。 glibc
211 パッケージはまた地域言語 (locale) サポートとタイムゾーンデータベース
214 Can be used on: Linux kernel >= %{min_kernel}.
216 %description -l pl.UTF-8
217 W pakiecie znajdują się podstawowe biblioteki, używane przez różne
218 programy w Twoim systemie. Używanie przez programy bibliotek z tego
219 pakietu oszczędza miejsce na dysku i pamięć. Większość kodu
220 systemowego jest usytuowane w jednym miejscu i dzielone między wieloma
221 programami. Pakiet ten zawiera bardzo ważny zbiór bibliotek
222 standardowych, współdzielonych (dynamicznych) bibliotek C i
223 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonować.
224 Znajdują się tutaj również definicje różnych informacji dla wielu
227 Pakiet jest przeznaczony dla jądra Linuksa >= %{min_kernel}.
229 %description -l ru.UTF-8
230 Содержит стандартные библиотеки, используемые многочисленными
231 программами в системе. Для того, чтобы сохранить дисковое пространство
232 и память, а также для простоты обновления, системный код, общий для
233 всех программ, хранится в одном месте и коллективно используется всеми
234 программами. Этот пакет содержит наиболее важные из разделяемых
235 библиотек - стандартную библиотеку C и стандартную библиотеку
236 математики. Без этих библиотек Linux функционировать не будет. Также
237 пакет содержит поддержку национальных языков (locale).
239 Can be used on: Linux kernel >= %{min_kernel}.
241 %description -l tr.UTF-8
242 Bu paket, birçok programın kullandığı standart kitaplıkları içerir.
243 Disk alanı ve bellek kullanımını azaltmak ve aynı zamanda güncelleme
244 işlemlerini kolaylaştırmak için ortak sistem kodları tek bir yerde
245 tutulup programlar arasında paylaştırılır. Bu paket en önemli ortak
246 kitaplıkları, standart C kitaplığını ve standart matematik kitaplığını
247 içerir. Bu kitaplıklar olmadan Linux sistemi çalışmayacaktır. Yerel
248 dil desteği ve zaman dilimi veri tabanı da bu pakette yer alır.
250 Can be used on: Linux kernel >= %{min_kernel}.
252 %description -l uk.UTF-8
253 Містить стандартні бібліотеки, котрі використовуються численними
254 програмами в системі. Для того, щоб зберегти дисковий простір та
255 пам'ять, а також для простоти поновлення системи, системний код,
256 спільний для всіх програм, зберігається в одному місці і колективно
257 використовується всіма програмами. Цей пакет містить найбільш важливі
258 з динамічних бібліотек - стандартну бібліотеку С та стандартну
259 бібліотеку математики. Без цих бібліотек Linux функціонувати не буде.
260 Також пакет містить підтримку національних мов (locale).
262 Can be used on: Linux kernel >= %{min_kernel}.
265 Summary: Utilities and data used by glibc
266 Summary(pl.UTF-8): Narzędzia i dane używane przez glibc
267 Group: Applications/System
268 Requires: %{name} = %{epoch}:%{version}-%{release}
271 Utilities and data used by glibc.
273 %description misc -l pl.UTF-8
274 Narzędzia i dane używane przez glibc.
277 Summary: glibc library for crypt(3)
278 Summary(pl.UTF-8): Biblioteka glibc z funkcją crypt(3)
280 Requires: %{name} = %{epoch}:%{version}-%{release}
281 Provides: crypt(blowfish)
283 %description libcrypt
284 glibc library for crypt(3).
286 %description libcrypt -l pl.UTF-8
287 Biblioteka glibc z funkcją crypt(3).
290 Summary: Create shared library cache and maintains symlinks
291 Summary(de.UTF-8): Erstellt ein shared library cache und verwaltet symlinks
292 Summary(fr.UTF-8): Crée un cache de bibliothčque partagée et gčre *.so
293 Summary(pl.UTF-8): Tworzenie cache'u bibliotek dynamicznych i ich dowiązań symbolicznych
294 Summary(tr.UTF-8): Ortak kitaplýk önbelleđi yaratýr ve bađlantýlarý kurar
295 Group: Applications/System
296 # This is needed because previous package (glibc) had autoreq false and had
297 # provided this manually. Probably poldek bug that have to have it here.
298 Provides: /sbin/ldconfig
299 # we want FHS being installed before ldconfig, altho they are both unrelated to each-other.
302 %description -n ldconfig
303 ldconfig scans a running system and sets up the symbolic links that
304 are used to load shared libraries properly. It also creates
305 /etc/ld.so.cache which speeds the loading programs which use shared
308 %description -n ldconfig -l de.UTF-8
309 ldconfig scannt ein laufendes System und richtet die symbolischen
310 Verknüpfungen zum Laden der gemeinsam genutzten Libraries ein.
311 Außerdem erstellt es /etc/ld.so.cache, was das Laden von Programmen
312 mit gemeinsam genutzten Libraries beschleunigt.
314 %description -n ldconfig -l fr.UTF-8
315 ldconfig analyse un systčme et configure les liens symboliques
316 utilisés pour charger correctement les bibliothčques partagées. Il
317 crée aussi /etc/ld.so.cache qui accélčre le chargement des programmes
318 utilisant les bibliothčques partagées.
320 %description -n ldconfig -l pl.UTF-8
321 ldconfig testuje uruchominy system i tworzy dowiązania symboliczne,
322 które są następnie używane do poprawnego ładowania bibliotek
323 dynamicznych. Program ten tworzy plik /etc/ld.so.cache, który
324 przyśpiesza ładowanie programów korzystających z bibliotek
327 %description -n ldconfig -l tr.UTF-8
328 ldconfig, çalýţmakta olan sistemi araţtýrýr ve ortak kitaplýklarýn
329 düzgün bir ţekilde yüklenmesi için gereken simgesel bađlantýlarý
330 kurar. Ayrýca ortak kitaplýklarý kullanan programlarýn yüklenmesini
331 hýzlandýran /etc/ld.so.cache dosyasýný yaratýr.
334 Summary: Additional libraries required to compile
335 Summary(de.UTF-8): Weitere Libraries zum Kompilieren
336 Summary(es.UTF-8): Bibliotecas adicionales necesarias para la compilación
337 Summary(fr.UTF-8): Librairies supplémentaires nécessaires à la compilation
338 Summary(ja.UTF-8): 標準 C ライブラリで使われるヘッダーとオブジェクトファイル
339 Summary(pl.UTF-8): Dodatkowe biblioteki wymagane podczas kompilacji
340 Summary(ru.UTF-8): Дополнительные библиотеки, необходимые для компиляции
341 Summary(tr.UTF-8): Geliştirme için gerekli diğer kitaplıklar
342 Summary(uk.UTF-8): Додаткові бібліотеки, потрібні для компіляції
343 Group: Development/Libraries
344 Requires: %{name} = %{epoch}:%{version}-%{release}
345 Requires: %{name}-devel-utils = %{epoch}:%{version}-%{release}
346 Requires: %{name}-headers = %{epoch}:%{version}-%{release}
347 Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
348 Obsoletes: libiconv-devel
351 To develop programs which use the standard C libraries (which nearly
352 all programs do), the system needs to have these standard header files
353 and object files available for creating the executables.
355 %description devel -l de.UTF-8
356 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
357 verwenden (also fast alle), benötigt das System diese Standard-Header-
358 und Objektdateien zum Erstellen der ausführbaren Programme.
360 %description devel -l es.UTF-8
361 Para desarrollar programas que utilizan las bibliotecas C estándar (lo
362 cual hacen prácticamente todos los programas), el sistema necesita
363 disponer de estos ficheros de cabecera y de objetos para crear los
366 %description devel -l fr.UTF-8
367 Pour développer des programmes utilisant les bibliothèques standard du
368 C (ce que presque tous les programmes font), le système doit posséder
369 ces fichiers en-têtes et objets standards pour créer les exécutables.
371 %description devel -l ja.UTF-8
372 glibc-devel パッケージは(ほとんどすべてのプログラムで使われる)標準 C
373 ライブラリを使用したプログラムを開発するためのヘッダーとオブジェクト
375 ライブラリを使用するプログラムを開発するなら
376 実行ファイルを作成する目的でこれらの標準ヘッダとオブジェクトファイル
379 %description devel -l pl.UTF-8
380 Pakiet ten jest niezbędny przy tworzeniu własnych programów
381 korzystających ze standardowej biblioteki C. Znajdują się tutaj pliki
382 nagłówkowe oraz pliki obiektowe, niezbędne do kompilacji programów
383 wykonywalnych i innych bibliotek.
385 %description devel -l ru.UTF-8
386 Для разработки программ, использующих стандартные библиотеки C (а
387 практически все программы их используют), системе НЕОБХОДИМЫ хедеры и
388 объектные файлы, содержащиеся в этом пакете, чтобы создавать
391 %description devel -l tr.UTF-8
392 C kitaplığını kullanan (ki hemen hemen hepsi kullanıyor) programlar
393 geliştirmek için gereken standart başlık dosyaları ve statik
396 %description devel -l uk.UTF-8
397 Для розробки програм, що використовують стандартні бібліотеки C
398 (практично всі програми їх використовують), системі НЕОБХІДНІ хедери
399 та об'єктні файли, що містяться в цьому пакеті, цоб створювати
403 Summary: Header files for development using standard C libraries
404 Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu standardowych bibliotek C
405 Group: Development/Building
406 Provides: %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
408 # If both -m32 and -m64 is to be supported on x86_64, x86_64 package
409 # have to be installed, not ix86 one.
410 Obsoletes: glibc-headers(athlon)
411 Obsoletes: glibc-headers(i386)
412 Obsoletes: glibc-headers(i486)
413 Obsoletes: glibc-headers(i586)
414 Obsoletes: glibc-headers(i686)
415 Obsoletes: glibc-headers(pentium3)
416 Obsoletes: glibc-headers(pentium4)
419 Obsoletes: glibc-headers(ppc)
422 Obsoletes: glibc-headers(s390)
425 Obsoletes: glibc-headers(sparc)
427 Requires: linux-libc-headers >= %{llh_version}
430 The glibc-headers package contains the header files necessary for
431 developing programs which use the standard C libraries (which are used
432 by nearly all programs). If you are developing programs which will use
433 the standard C libraries, your system needs to have these standard
434 header files available in order to create the executables.
436 Install glibc-headers if you are going to develop programs which will
437 use the standard C libraries.
439 %description headers -l pl.UTF-8
440 Pakiet glibc-headers zawiera pliki nagłówkowe niezbędne do rozwijania
441 programów używających standardowych bibliotek C (używanych przez
442 prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
443 standardowych bibliotek C, system wymaga dostępności tych
444 standardowych plików nagłówkowych do tworzenia programów
447 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
448 korzystające ze standardowych bibliotek C.
451 Summary: Utilities needed for development using standard C libraries
452 Summary(pl.UTF-8): Narzędzia do tworzenia programów przy użyciu standardowych bibliotek C
453 Group: Development/Libraries
454 Provides: %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
456 # If both -m32 and -m64 is to be supported on AMD64, x86_64 package
457 # have to be installed, not ix86 one.
458 Obsoletes: glibc-devel-utils(athlon)
459 Obsoletes: glibc-devel-utils(i386)
460 Obsoletes: glibc-devel-utils(i486)
461 Obsoletes: glibc-devel-utils(i586)
462 Obsoletes: glibc-devel-utils(i686)
463 Obsoletes: glibc-devel-utils(pentium3)
464 Obsoletes: glibc-devel-utils(pentium4)
467 Obsoletes: glibc-devel-utils(ppc)
470 Obsoletes: glibc-devel-utils(s390)
473 Obsoletes: glibc-devel-utils(sparc)
476 %description devel-utils
477 The glibc-devel-utils package contains utilities necessary for
478 developing programs which use the standard C libraries (which are used
479 by nearly all programs). If you are developing programs which will use
480 the standard C libraries, your system needs to have these utilities
483 Install glibc-devel-utils if you are going to develop programs which
484 will use the standard C libraries.
486 %description devel-utils -l pl.UTF-8
487 Pakiet glibc-devel-utils zawiera narzędzia niezbędne do rozwijania
488 programów używających standardowych bibliotek C (używanych przez
489 prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
490 standardowych bibliotek C, system wymaga dostępności tych narzędzi do
491 tworzenia programów wykonywalnych.
493 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
494 korzystające ze standardowych bibliotek C.
497 Summary: Documentation needed for development using standard C libraries
498 Summary(pl.UTF-8): Dokumentacja do tworzenia programów przy użyciu standardowych bibliotek C
500 Provides: %{name}-devel-doc(%{_target_cpu}) = %{epoch}:%{version}-%{release}
502 # If both -m32 and -m64 is to be supported on x86_64, x86_64 package
503 # have to be installed, not ix86 one.
504 Obsoletes: glibc-devel-doc(athlon)
505 Obsoletes: glibc-devel-doc(i386)
506 Obsoletes: glibc-devel-doc(i486)
507 Obsoletes: glibc-devel-doc(i586)
508 Obsoletes: glibc-devel-doc(i686)
509 Obsoletes: glibc-devel-doc(pentium3)
510 Obsoletes: glibc-devel-doc(pentium4)
513 Obsoletes: glibc-devel-doc(ppc)
516 Obsoletes: glibc-devel-doc(s390)
519 Obsoletes: glibc-devel-doc(sparc)
522 %description devel-doc
523 The glibc-devel-doc package contains info and manual pages necessary
524 for developing programs which use the standard C libraries (which are
525 used by nearly all programs).
527 Install glibc-devel-doc if you are going to develop programs which
528 will use the standard C libraries.
530 %description devel-doc -l pl.UTF-8
531 Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
532 rozwijania programów używających standardowych bibliotek C (używanych
533 przez prawie wszystkie programy).
535 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
536 korzystające ze standardowych bibliotek C.
539 Summary: Name Service Caching Daemon
540 Summary(es.UTF-8): Demonio de caché del servicio de nombres
541 Summary(ja.UTF-8): ネームサービスキャッシングデーモン (nacd)
542 Summary(pl.UTF-8): Demon zapamiętujący odpowiedzi serwisów nazw
543 Summary(ru.UTF-8): Кэширующий демон сервисов имен
544 Summary(uk.UTF-8): Кешуючий демон севісів імен
546 Group: Networking/Daemons
547 Requires(post): fileutils
548 Requires(post,preun): /sbin/chkconfig
549 Requires(postun): /usr/sbin/groupdel
550 Requires(postun): /usr/sbin/userdel
551 Requires(pre): /bin/id
552 Requires(pre): /usr/bin/getgid
553 Requires(pre): /usr/sbin/groupadd
554 Requires(pre): /usr/sbin/useradd
555 Requires: %{name} = %{epoch}:%{version}-%{release}
556 %{?with_selinux:Requires: libselinux >= 1.18}
557 Requires: rc-scripts >= 0.2.0
558 Provides: group(nscd)
562 nscd caches name service lookups; it can dramatically improve
563 performance with NIS+, and may help with DNS as well.
565 %description -n nscd -l es.UTF-8
566 nscd guarda las peticiones del servicio de nombres en una caché; eso
567 puede aumentar drásticamente las prestaciones de NIS+, y también puede
570 %description -n nscd -l ja.UTF-8
571 Nscd はネームサービス参照をキャッシュし、NIS+ のパフォーマンスを
572 ドラマティックに改善することができ、DNS を同様に補助します。
574 %description -n nscd -l pl.UTF-8
575 nscd zapamiętuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
576 drastycznie poprawić szybkość działania NIS+.
578 %description -n nscd -l ru.UTF-8
579 nscd кэширует результаты запросов к сервисам имен; это может резко
580 увеличить производительность работы с NIS+ и, также, может помочь с
583 %description -n nscd -l uk.UTF-8
584 nscd кешує результати запросів до сервісів імен; це може сильно
585 збільшити швидкість роботи з NIS+ і, також, може допомогти з DNS.
587 %package -n localedb-src
588 Summary: locale database source code
589 Summary(es.UTF-8): Código fuente de la base de datos de los locales
590 Summary(pl.UTF-8): Kod źródłowy bazy locale
592 Requires: %{name} = %{epoch}:%{version}-%{release}
597 %description -n localedb-src
598 This add-on package contains the data needed to build the locale data
599 files to use the internationalization features of the GNU libc.
601 %description -n localedb-src -l es.UTF-8
602 Este paquete adicional contiene los datos necesarios para construir
603 los ficheros de locale, imprescindibles para usar las cualidades de
604 internacionalización de GNU libc.
606 %description -n localedb-src -l pl.UTF-8
607 Pakiet ten zawiera dane niezbędne do zbudowania binarnych plików
608 lokalizacyjnych, by móc wykorzystać możliwości oferowane przez GNU
611 %package localedb-all
612 Summary: locale database for all locales supported by glibc
613 Summary(es.UTF-8): Base de datos de todos los locales soportados por glibc
614 Summary(pl.UTF-8): Baza danych locale dla wszystkich lokalizacji obsługiwanych przez glibc
616 Requires: %{name} = %{epoch}:%{version}-%{release}
617 Requires: iconv = %{epoch}:%{version}-%{release}
620 %description localedb-all
621 This package contains locale database for all locales supported by
622 glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
623 something smaller with support for chosen locales only, consider
624 installing localedb-src and regenerating database using localedb-gen
625 script (when database is generated, localedb-src can be uninstalled).
627 %description localedb-all -l es.UTF-8
628 Este paquete contiene una base de datos de todos los locales
629 soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
630 39 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
631 locales elegidos, considérese instalar localedb-src y regenerar la
632 base de datos usando el escript localedb-gen (una vez que la base de
633 datos esté creada, localedb-src se podrá desinstalar).
635 %description localedb-all -l pl.UTF-8
636 Ten pakiet zawiera bazę danych locale dla wszystkich lokalizacji
637 obsługiwanych przez glibc. W glibc 2.3.x jest to jeden duży plik
638 (około 39MB); aby mieć coś mniejszego, z obsługą tylko wybranych
639 lokalizacji, należy zainstalować pakiet localedb-src i przegenerować
640 bazę danych przy użyciu skryptu localedb-gen (po wygenerowaniu bazy
641 pakiet localedb-src można odinstalować).
644 Summary: Convert encoding of given files from one encoding to another
645 Summary(es.UTF-8): Convierte entre varias codificaciones de los ficheros dados
646 Summary(pl.UTF-8): Moduły do konwersji plików tekstowych z jednego kodowania do innego
648 Requires: %{name} = %{epoch}:%{version}-%{release}
649 Provides: iconv(%{_target_base_arch})
651 %description -n iconv
652 Convert encoding of given files from one encoding to another. You need
653 this package if you want to convert some document from one encoding to
654 another or if you have installed some programs which use Generic
655 Character Set Conversion Interface.
657 %description -n iconv -l es.UTF-8
658 Convierte la codificación de dados ficheros. Necesita este paquete si
659 quiere convertir un documento entre una codificación (juego de
660 caracteres) y otra, o si tiene instalado algún programa que usa el
661 Generic Character Set Conversion Interface (interfaz genérica de
662 conversión de juegos de caracteres).
664 %description -n iconv -l pl.UTF-8
665 Moduły do konwersji plików tekstowych z jednego kodowania do innego.
666 Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
667 dokumentów z jednego kodowania do innego lub do używania programów
668 korzystających z Generic Character Set Conversion Interface w glibc,
669 czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
670 kodowania danych z poziomu dowolnego programu.
673 Summary: Static libraries
674 Summary(es.UTF-8): Bibliotecas estáticas
675 Summary(pl.UTF-8): Biblioteki statyczne
676 Summary(ru.UTF-8): Статические библиотеки glibc
677 Summary(uk.UTF-8): Статичні бібліотеки glibc
678 Group: Development/Libraries
679 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
680 Provides: %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
681 Obsoletes: libiconv-static
684 GNU libc static libraries.
686 %description static -l es.UTF-8
687 Bibliotecas estáticas de GNU libc.
689 %description static -l pl.UTF-8
690 Biblioteki statyczne GNU libc.
692 %description static -l ru.UTF-8
693 Это отдельный пакет со статическими библиотеками, которые больше не
694 входят в glibc-devel.
696 %description static -l uk.UTF-8
697 Це окремий пакет зі статичними бібліотеками, що більше не входять в
701 Summary: glibc with profiling support
702 Summary(de.UTF-8): glibc mit Profil-Unterstützung
703 Summary(es.UTF-8): glibc con soporte de perfilamiento
704 Summary(fr.UTF-8): glibc avec support pour profiling
705 Summary(pl.UTF-8): glibc ze wsparciem dla profilowania
706 Summary(ru.UTF-8): GNU libc с поддержкой профайлера
707 Summary(tr.UTF-8): Ölçüm desteği olan glibc
708 Summary(uk.UTF-8): GNU libc з підтримкою профайлера
709 Group: Development/Libraries/Libc
710 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
711 Obsoletes: libc-profile
714 When programs are being profiled using gprof, they must use these
715 libraries instead of the standard C libraries for gprof to be able to
716 profile them correctly.
718 %description profile -l de.UTF-8
719 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
720 Libraries anstelle der üblichen C-Libraries verwendet werden.
722 %description profile -l es.UTF-8
723 Cuando programas son perfilidas usando gprof, tienen que usar estas
724 biblioteces en vez de las estándares para que gprof pueda perfilarlas
727 %description profile -l pl.UTF-8
728 Programy profilowane za pomocą gprof muszą używać tych bibliotek
729 zamiast standardowych bibliotek C, aby gprof mógł odpowiednio je
732 %description profile -l uk.UTF-8
733 Коли програми досліджуються профайлером gprof, вони повинні
734 використовувати замість стандартних бібліотек бібліотеки, що містяться
735 в цьому пакеті. При використанні стандартних бібліотек gprof замість
736 реальних результатів буде показувати ціни на папайю в Гонолулу в
739 %description profile -l tr.UTF-8
740 gprof kullanılarak ölçülen programlar standart C kitaplığı yerine bu
741 kitaplığı kullanmak zorundadırlar.
743 %description profile -l ru.UTF-8
744 Когда программы исследуются профайлером gprof, они должны
745 использовать, вместо стандартных библиотек, библиотеки, включенные в
746 этот пакет. При использовании стандартных библиотек gprof вместо
747 реальных результатов будет показывать цены на папайю в Гонолулу в
751 Summary: glibc PIC archive
752 Summary(es.UTF-8): Archivo PIC de glibc
753 Summary(pl.UTF-8): Archiwum PIC glibc
754 Group: Development/Libraries/Libc
755 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
758 GNU C Library PIC archive contains an archive library (ar file)
759 composed of individual shared objects. This is used for creating a
760 library which is a smaller subset of the standard libc shared library.
762 %description pic -l es.UTF-8
763 El archivo PIC de la biblioteca glibc contiene una biblioteca
764 archivada (un fichero ar) compuesta de individuales objetos
765 compartidos. Es usado para crear una biblioteca que sea un subconjunto
766 más pequeño de la biblioteca libc compartida estándar.
768 %description pic -l pl.UTF-8
769 Archiwum PIC biblioteki GNU C zawiera archiwalną bibliotekę (plik ar)
770 złożoną z pojedynczych obiektów współdzielonych. Używana jest do
771 tworzenia biblioteki będącej mniejszym podzestawem standardowej
772 biblioteki współdzielonej libc.
774 %package -n nss_compat
775 Summary: Old style NYS NSS glibc module
776 Summary(es.UTF-8): El antiguo módulo NYS NSS de glibc
777 Summary(pl.UTF-8): Stary moduł NYS NSS glibc
779 Requires: %{name} = %{epoch}:%{version}-%{release}
781 %description -n nss_compat
782 Old style NYS NSS glibc module.
784 %description -n nss_compat -l es.UTF-8
785 El antiguo módulo NYS NSS de glibc
787 %description -n nss_compat -l pl.UTF-8
788 Stary moduł NYS NSS glibc.
791 Summary: BIND NSS glibc module
792 Summary(es.UTF-8): Módulo BIND NSS de glibc
793 Summary(pl.UTF-8): Moduł BIND NSS glibc
795 Requires: %{name} = %{epoch}:%{version}-%{release}
797 %description -n nss_dns
798 BIND NSS glibc module.
800 %description -n nss_dns -l es.UTF-8
801 Módulo BIND NSS de glibc.
803 %description -n nss_dns -l pl.UTF-8
804 Moduł BIND NSS glibc.
806 %package -n nss_files
807 Summary: Traditional files databases NSS glibc module
808 Summary(es.UTF-8): Módulo de tradicionales bases de datos en ficheros para glibc
809 Summary(pl.UTF-8): Moduł tradycyjnych plikowych baz danych NSS glibc
811 Requires: %{name} = %{epoch}:%{version}-%{release}
813 %description -n nss_files
814 Traditional files databases NSS glibc module.
816 %description -n nss_files -l es.UTF-8
817 Módulo de tradicionales bases de datos en ficheros para glibc.
819 %description -n nss_files -l pl.UTF-8
820 Moduł tradycyjnych plikowych baz danych NSS glibc.
822 %package -n nss_hesiod
823 Summary: hesiod NSS glibc module
824 Summary(es.UTF-8): Módulo hesiod NSS de glibc
825 Summary(pl.UTF-8): Moduł hesiod NSS glibc
827 Requires: %{name} = %{epoch}:%{version}-%{release}
829 %description -n nss_hesiod
830 glibc NSS (Name Service Switch) module for databases access.
832 %description -n nss_hesiod -l es.UTF-8
833 Módulo hesiod NSS de glibc.
835 %description -n nss_hesiod -l pl.UTF-8
836 Moduł glibc NSS (Name Service Switch) dostępu do baz danych.
839 Summary: NIS(YP) NSS glibc module
840 Summary(es.UTF-8): Módulo NIS(YP) NSS de glibc
841 Summary(pl.UTF-8): Moduł NIS(YP) NSS glibc
843 Requires: %{name} = %{epoch}:%{version}-%{release}
845 %description -n nss_nis
846 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
848 %description -n nss_nis -l es.UTF-8
849 Módulo NSS de glibc para acceder las bases de datos NIS(YP).
851 %description -n nss_nis -l pl.UTF-8
852 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS(YP).
854 %package -n nss_nisplus
855 Summary: NIS+ NSS module
856 Summary(es.UTF-8): Módulo NIS+ NSS
857 Summary(pl.UTF-8): Moduł NIS+ NSS
859 Requires: %{name} = %{epoch}:%{version}-%{release}
861 %description -n nss_nisplus
862 glibc NSS (Name Service Switch) module for NIS+ databases access.
864 %description -n nss_nisplus -l es.UTF-8
865 Módulo NSS (Name Service Switch) de glibc para acceder las bases de
868 %description -n nss_nisplus -l pl.UTF-8
869 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
873 Summary(es.UTF-8): Un juguete
874 Summary(pl.UTF-8): Zabawka
876 Requires: %{name} = %{epoch}:%{version}-%{release}
878 %description memusage
881 %description memusage -l es.UTF-8
884 %description memusage -l pl.UTF-8
906 %{?with_cross:%patch21 -p1}
912 # cleanup backups after patching
913 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
917 # i786 (aka pentium4) hack
918 ln -s i686 nptl/sysdeps/i386/i786
919 ln -s i686 nptl/sysdeps/unix/sysv/linux/i386/i786
922 # glibc has its own way to remove PLT relocations. / H. J. Lu.
923 unset LD_SYMBOLIC_FUNCTIONS || :
925 cp -f /usr/share/automake/config.sub scripts
933 CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
937 --enable-kernel="%{min_kernel}" \
939 --with-headers=%{_includedir} \
940 --with%{!?with_selinux:out}-selinux \
942 --enable-add-ons=nptl,libidn \
943 %if "%{pld_release}" != "ti"
946 --enable-stackguard-randomization \
947 --enable-hidden-plt \
959 env LANGUAGE=C LC_ALL=C \
960 %{__make} tests 2>&1 | awk '
963 if (($0 ~ /\*\*\* \[.*\.out\] Error/) && ($0 !~ /annexc/) && (file == "")) {
965 gsub(/.*\[/, NIL, file);
966 gsub(/\].*/, NIL, file);
970 END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
977 diet ${CC#*ccache } %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
981 rm -rf $RPM_BUILD_ROOT
982 install -d $RPM_BUILD_ROOT{/etc/{default,logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd,/var/cache/ldconfig}
985 env LANGUAGE=C LC_ALL=C \
987 install_root=$RPM_BUILD_ROOT \
988 infodir=%{_infodir} \
992 env LANGUAGE=C LC_ALL=C \
993 %{__make} localedata/install-locales \
994 install_root=$RPM_BUILD_ROOT
997 PICFILES="libc_pic.a libc.map
998 math/libm_pic.a libm.map
999 resolv/libresolv_pic.a"
1001 install -p $PICFILES $RPM_BUILD_ROOT%{_libdir}
1002 install -p elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
1003 install -p elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
1005 # Include %{_libdir}/gconv/gconv-modules.cache
1006 ./iconv/iconvconfig --nostdlib --prefix=$RPM_BUILD_ROOT %{_libdir}/gconv -o $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
1009 %if %{without cross}
1010 install -p glibc-postinst $RPM_BUILD_ROOT/sbin
1013 %{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
1014 mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
1016 # moved to tzdata package
1017 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
1018 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo
1020 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
1022 # make symlinks across top-level directories absolute
1023 for l in BrokenLocale anl cidn crypt dl m nsl resolv rt thread_db util; do
1024 test -L $RPM_BUILD_ROOT%{_libdir}/lib${l}.so || exit 1
1025 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
1026 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${l}.so.*) $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
1029 # linking nss modules directly is not supported
1030 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
1032 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1033 cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
1034 cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
1035 cp -a nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
1036 cp -a posix/gai.conf $RPM_BUILD_ROOT%{_sysconfdir}
1037 cp -a nis/nss $RPM_BUILD_ROOT/etc/default/nss
1038 sed -e 's#\([ \t]\)db\([ \t]\)#\1#g' nss/nsswitch.conf > $RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.conf
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 : > $RPM_BUILD_ROOT/var/cache/ldconfig/aux-cache
1046 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
1048 # doesn't fit with out tzdata concept and configure.in is stupid assuming bash
1049 # is first posix compatible shell making this script depend on bash.
1050 rm -f $RPM_BUILD_ROOT%{_bindir}/tzselect
1051 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tzselect.8*
1052 rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/tzselect.8*
1054 : > $RPM_BUILD_ROOT/var/log/nscd
1055 : > $RPM_BUILD_ROOT/var/lib/nscd/passwd
1056 : > $RPM_BUILD_ROOT/var/lib/nscd/group
1057 : > $RPM_BUILD_ROOT/var/lib/nscd/hosts
1059 rm -rf documentation
1060 install -d documentation
1062 for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing}; do
1063 cp -af nptl/$f documentation/$f.nptl
1065 cp -af crypt/README.ufc-crypt ChangeLog* documentation
1067 # Collect locale files and mark them with %%lang()
1068 echo '%defattr(644,root,root,755)' > glibc.lang
1069 for i in $RPM_BUILD_ROOT%{_datadir}/locale/*; do
1072 dir="${i#$RPM_BUILD_ROOT}"
1073 echo "%lang($lang) $dir" >> glibc.lang
1078 # Languages not supported by glibc locales, but usable via $LANGUAGE:
1079 # ang - Old English (gtk+, gnome)
1080 # ca@valencia (gtk+, gnome; as ca_ES@valencia in FileZilla; locale exists in Debian)
1081 # tlh - Klingon (bzflag)
1083 # sr@ije (use LANGUAGE=sr_ME@ije/sr_RS@ije) (gnome)
1085 # To be added when they become supported by glibc:
1087 # bal (newt,pessulus)
1088 # ckb [or ku_IQ/ku_IR] (vlc)
1090 # gn (gn_BR in gnome, maybe gn_PY)
1095 # man (ccsm; incorrectly named md)
1097 # sco (gnomad2, picard)
1102 # bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
1105 # Omitted here - already existing (with libc.mo):
1106 # 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
1109 for i in aa aa@saaho af am an ang ar ar_TN as ast az be@alternative be@latin \
1110 bg bn bn_IN br bs byn ca@valencia crh csb cy de_AT de_CH dv dz en \
1111 en@boldquot en@quot en_AU en_CA en_NZ en_US eo es_AR es_CL es_CO es_CR \
1112 es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY \
1113 es_VE et eu fa fil fo fr_BE fr_CA fr_CH fur fy ga gd gez gu gv ha he \
1114 hi hne hsb hy ia id ig ik is it_CH iu ka kk kl km kn ks ku kw ky la \
1115 lg li lo lt lv mai mg mi mk ml mn mr ms mt my nds ne nl_BE nn nr nso \
1116 oc om or pa pap ps pt ps rm ro sa sc se si sid sl so sq sr sr@Latn \
1117 sr@ije sr@latin ss st sw ta te tg th ti tig tk tl tlh tn ts tt ug uk \
1118 ur uz uz@cyrillic ve vi wa wal wo xh yi yo zh_HK zu; do
1119 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
1120 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
1121 # use lang() tags with ll_CC@variant (stripping charset and @quot|@boldquot)
1122 lang=$(echo $i | sed -e 's/@quot\>\|@boldquot\>//')
1123 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
1127 # LC_TIME category, used for localized date formats (at least by coreutils)
1128 for i in af be bg ca cs da de el en es et eu fi fr ga gl hu id it ja ko lg lt \
1129 ms nb nl pl pt pt_BR ru rw sk sl sv tr uk vi zh_CN zh_TW; do
1130 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i ]; then
1131 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
1133 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_TIME
1136 # localedb-gen infrastructure
1137 sed -e 's,@localedir@,%{_libdir}/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1138 chmod +x $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1139 install localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
1141 # shutup check-files
1142 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
1143 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
1144 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1145 # we don't support kernel without ptys support
1146 rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
1148 rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/rpcinfo.8
1149 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpcinfo.8
1150 rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo
1153 rm -rf $RPM_BUILD_ROOT
1155 %if %{without cross}
1156 %post -p /sbin/postshell
1157 /sbin/glibc-postinst /%{_lib}/%{_host_cpu} /%{_lib}/tls
1160 %postun -p /sbin/ldconfig
1162 %triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
1163 -/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1164 -/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
1167 %post libcrypt -p /sbin/ldconfig
1168 %postun libcrypt -p /sbin/ldconfig
1170 %post memusage -p /sbin/ldconfig
1171 %postun memusage -p /sbin/ldconfig
1173 %post -n localedb-src
1175 [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
1176 [ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
1177 if [ "$SUPPORTED_LOCALES" ]; then
1181 %post devel -p /sbin/postshell
1182 -/usr/sbin/fix-info-dir -c %{_infodir}
1184 %postun devel -p /sbin/postshell
1185 -/usr/sbin/fix-info-dir -c %{_infodir}
1188 %groupadd -P nscd -g 144 -r nscd
1189 %useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "Name Service Cache Daemon" -g nscd nscd
1192 if [ ! -f /var/log/nscd ]; then
1195 chown root:root /var/log/nscd
1196 chmod 640 /var/log/nscd
1198 /sbin/chkconfig --add nscd
1199 %service nscd restart "Name Service Cache Daemon"
1202 if [ "$1" = "0" ]; then
1204 /sbin/chkconfig --del nscd
1208 if [ "$1" = "0" ]; then
1213 %files -f %{name}.lang
1214 %defattr(644,root,root,755)
1215 %doc README NEWS FAQ BUGS
1216 %if %{without cross}
1217 %attr(755,root,root) /sbin/glibc-postinst
1219 # TODO: package ldconfig symlinks as %ghost
1220 %attr(755,root,root) /%{_lib}/ld-%{version}.so
1221 # wildly arch-dependent ld.so SONAME symlink
1222 %ifarch %{ix86} sparc sparcv9 sparc64 alpha sh
1223 %attr(755,root,root) /%{_lib}/ld-linux.so.2
1226 %attr(755,root,root) /%{_lib}/ld-linux-ia64.so.2
1229 %attr(755,root,root) /%{_lib}/ld-linux-x86-64.so.2
1232 %attr(755,root,root) /%{_lib}/ld64.so.1
1234 %ifnarch %{ix86} sparc sparcv9 sparc64 alpha sh ia64 %{x8664} ppc64 s390x
1235 %attr(755,root,root) /%{_lib}/ld.so.1
1237 %attr(755,root,root) /%{_lib}/libBrokenLocale-%{version}.so
1239 %attr(755,root,root) /%{_lib}/libBrokenLocale.so.1.1
1241 %attr(755,root,root) /%{_lib}/libBrokenLocale.so.1
1243 %attr(755,root,root) /%{_lib}/libSegFault.so
1244 %attr(755,root,root) /%{_lib}/libanl-%{version}.so
1245 %attr(755,root,root) /%{_lib}/libanl.so.1
1246 %attr(755,root,root) /%{_lib}/libc-%{version}.so
1248 %attr(755,root,root) /%{_lib}/libc.so.6.1
1250 %attr(755,root,root) /%{_lib}/libc.so.6
1252 %attr(755,root,root) /%{_lib}/libcidn-%{version}.so
1253 %attr(755,root,root) /%{_lib}/libcidn.so.1
1254 %attr(755,root,root) /%{_lib}/libdl-%{version}.so
1256 %attr(755,root,root) /%{_lib}/libdl.so.2.1
1258 %attr(755,root,root) /%{_lib}/libdl.so.2
1260 %attr(755,root,root) /%{_lib}/libm-%{version}.so
1262 %attr(755,root,root) /%{_lib}/libm.so.6.1
1264 %attr(755,root,root) /%{_lib}/libm.so.6
1266 %attr(755,root,root) /%{_lib}/libnsl-%{version}.so
1268 %attr(755,root,root) /%{_lib}/libnsl.so.1.1
1270 %attr(755,root,root) /%{_lib}/libnsl.so.1
1272 %attr(755,root,root) /%{_lib}/libpthread-%{version}.so
1273 %attr(755,root,root) /%{_lib}/libpthread.so.0
1274 %attr(755,root,root) /%{_lib}/libresolv-%{version}.so
1276 %attr(755,root,root) /%{_lib}/libresolv.so.2.1
1278 %attr(755,root,root) /%{_lib}/libresolv.so.2
1280 %attr(755,root,root) /%{_lib}/librt-%{version}.so
1281 %attr(755,root,root) /%{_lib}/librt.so.1
1282 %attr(755,root,root) /%{_lib}/libthread_db-1.0.so
1283 %attr(755,root,root) /%{_lib}/libthread_db.so.1
1284 %attr(755,root,root) /%{_lib}/libutil-%{version}.so
1286 %attr(755,root,root) /%{_lib}/libutil.so.1.1
1288 %attr(755,root,root) /%{_lib}/libutil.so.1
1290 %{?with_localedb:%dir %{_libdir}/locale}
1293 %defattr(644,root,root,755)
1294 %attr(755,root,root) /%{_lib}/libnss_dns-%{version}.so
1295 %attr(755,root,root) /%{_lib}/libnss_dns.so.2
1297 #%files -n nss_files
1298 %defattr(644,root,root,755)
1299 %attr(755,root,root) /%{_lib}/libnss_files-%{version}.so
1300 %attr(755,root,root) /%{_lib}/libnss_files.so.2
1302 %defattr(644,root,root,755)
1304 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
1305 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
1306 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/nss
1308 %config %{_sysconfdir}/rpc
1310 %attr(755,root,root) /sbin/sln
1311 %attr(755,root,root) %{_bindir}/getconf
1312 %attr(755,root,root) %{_bindir}/getent
1313 %attr(755,root,root) %{_bindir}/iconv
1314 %ifarch %{ix86} m68k sparc sparcv9
1315 %attr(755,root,root) %{_bindir}/lddlibc4
1317 %attr(755,root,root) %{_bindir}/locale
1318 %attr(755,root,root) %{_bindir}/rpcgen
1320 %attr(755,root,root) %{_sbindir}/zdump
1321 %attr(755,root,root) %{_sbindir}/zic
1323 %dir %{_libexecdir}/getconf
1324 %attr(755,root,root) %{_libexecdir}/getconf/*
1326 %dir %{_datadir}/locale
1327 %{_datadir}/locale/locale.alias
1329 %{_mandir}/man1/getconf.1*
1330 %{_mandir}/man1/getent.1*
1331 %{_mandir}/man1/iconv.1*
1332 %{_mandir}/man1/locale.1*
1333 %{_mandir}/man1/rpcgen.1*
1334 %{_mandir}/man5/locale.5*
1335 %{_mandir}/man5/nsswitch.conf.5*
1336 %{_mandir}/man5/tzfile.5*
1338 %{_mandir}/man8/ld-linux.8*
1339 %{_mandir}/man8/ld-linux.so.8*
1340 %{_mandir}/man8/ld.so.8*
1341 %{_mandir}/man8/sln.8*
1342 %{_mandir}/man8/zdump.8*
1343 %{_mandir}/man8/zic.8*
1344 %lang(cs) %{_mandir}/cs/man7/*
1345 %lang(de) %{_mandir}/de/man5/tzfile.5*
1346 %lang(de) %{_mandir}/de/man7/*
1347 %lang(es) %{_mandir}/es/man5/locale.5*
1348 %lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
1349 %lang(es) %{_mandir}/es/man5/tzfile.5*
1350 %lang(es) %{_mandir}/es/man7/*
1351 %lang(es) %{_mandir}/es/man8/ld-linux.8*
1352 %lang(es) %{_mandir}/es/man8/ld-linux.so.8*
1353 %lang(es) %{_mandir}/es/man8/ld.so.8*
1354 %lang(es) %{_mandir}/es/man8/zdump.8*
1355 %lang(es) %{_mandir}/es/man8/zic.8*
1356 %lang(fr) %{_mandir}/fr/man5/locale.5*
1357 %lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
1358 %lang(fr) %{_mandir}/fr/man5/tzfile.5*
1359 %lang(fr) %{_mandir}/fr/man7/*
1360 %lang(fr) %{_mandir}/fr/man8/ld-linux.8*
1361 %lang(fr) %{_mandir}/fr/man8/ld-linux.so.8*
1362 %lang(fr) %{_mandir}/fr/man8/ld.so.8*
1363 %lang(fr) %{_mandir}/fr/man8/zdump.8*
1364 %lang(fr) %{_mandir}/fr/man8/zic.8*
1365 %lang(hu) %{_mandir}/hu/man7/*
1366 %lang(hu) %{_mandir}/hu/man8/ld-linux.8*
1367 %lang(hu) %{_mandir}/hu/man8/ld-linux.so.8*
1368 %lang(hu) %{_mandir}/hu/man8/ld.so.8*
1369 %lang(hu) %{_mandir}/hu/man8/zdump.8*
1370 %lang(it) %{_mandir}/it/man5/locale.5*
1371 %lang(it) %{_mandir}/it/man7/*
1372 %lang(it) %{_mandir}/it/man8/zdump.8*
1373 %lang(ja) %{_mandir}/ja/man1/rpcgen.1*
1374 %lang(ja) %{_mandir}/ja/man5/locale.5*
1375 %lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
1376 %lang(ja) %{_mandir}/ja/man5/tzfile.5*
1377 %lang(ja) %{_mandir}/ja/man7/*
1378 %lang(ja) %{_mandir}/ja/man8/ld-linux.8*
1379 %lang(ja) %{_mandir}/ja/man8/ld-linux.so.8*
1380 %lang(ja) %{_mandir}/ja/man8/ld.so.8*
1381 %lang(ja) %{_mandir}/ja/man8/sln.8*
1382 %lang(ja) %{_mandir}/ja/man8/zdump.8*
1383 %lang(ja) %{_mandir}/ja/man8/zic.8*
1384 %lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
1385 %lang(ko) %{_mandir}/ko/man5/tzfile.5*
1386 %lang(ko) %{_mandir}/ko/man7/*
1387 %lang(ko) %{_mandir}/ko/man8/zdump.8*
1388 %lang(pl) %{_mandir}/pl/man5/locale.5*
1389 %lang(pl) %{_mandir}/pl/man7/*
1390 %lang(pl) %{_mandir}/pl/man8/ld-linux.8*
1391 %lang(pl) %{_mandir}/pl/man8/ld-linux.so.8*
1392 %lang(pl) %{_mandir}/pl/man8/ld.so.8*
1393 %lang(pt) %{_mandir}/pt/man5/locale.5*
1394 %lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
1395 %lang(pt) %{_mandir}/pt/man5/tzfile.5*
1396 %lang(pt) %{_mandir}/pt/man7/*
1397 %lang(pt) %{_mandir}/pt/man8/zdump.8*
1398 %lang(pt) %{_mandir}/pt/man8/zic.8*
1399 %lang(ru) %{_mandir}/ru/man1/getent.1*
1400 %lang(ru) %{_mandir}/ru/man1/iconv.1*
1401 %lang(ru) %{_mandir}/ru/man1/locale.1*
1402 %lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1403 %lang(ru) %{_mandir}/ru/man5/locale.5*
1404 %lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
1405 %lang(ru) %{_mandir}/ru/man5/tzfile.5*
1406 %lang(ru) %{_mandir}/ru/man7/*
1407 %lang(ru) %{_mandir}/ru/man8/ld-linux.so.8*
1408 %lang(ru) %{_mandir}/ru/man8/ld.so.8*
1409 %lang(ru) %{_mandir}/ru/man8/zdump.8*
1410 %lang(ru) %{_mandir}/ru/man8/zic.8*
1411 %lang(tr) %{_mandir}/tr/man1/iconv.1*
1412 %lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
1413 %lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
1414 %lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
1415 %lang(zh_CN) %{_mandir}/zh_CN/man7/*
1416 %lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1417 %lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
1420 %defattr(644,root,root,755)
1421 %attr(755,root,root) %{_bindir}/catchsegv
1422 %attr(755,root,root) %{_bindir}/ldd
1423 %{_mandir}/man1/catchsegv.1*
1424 %{_mandir}/man1/ldd.1*
1425 %lang(es) %{_mandir}/es/man1/ldd.1*
1426 %lang(fi) %{_mandir}/fi/man1/ldd.1*
1427 %lang(fr) %{_mandir}/fr/man1/ldd.1*
1428 %lang(hu) %{_mandir}/hu/man1/ldd.1*
1429 %lang(ja) %{_mandir}/ja/man1/ldd.1*
1430 %lang(ko) %{_mandir}/ko/man1/ldd.1*
1431 %lang(pl) %{_mandir}/pl/man1/ldd.1*
1432 %lang(ru) %{_mandir}/ru/man1/ldd.1*
1433 %lang(tr) %{_mandir}/tr/man1/ldd.1*
1434 %lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
1437 %defattr(644,root,root,755)
1438 %attr(755,root,root) /%{_lib}/libcrypt-%{version}.so
1440 %ghost %attr(755,root,root) /%{_lib}/libcrypt.so.1.1
1442 %ghost %attr(755,root,root) /%{_lib}/libcrypt.so.1
1446 %defattr(644,root,root,755)
1447 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
1448 %dir %{_sysconfdir}/ld.so.conf.d
1449 %ghost %{_sysconfdir}/ld.so.cache
1450 %attr(755,root,root) /sbin/ldconfig
1451 %{_mandir}/man8/ldconfig.8*
1452 %lang(es) %{_mandir}/es/man8/ldconfig.8*
1453 %lang(fr) %{_mandir}/fr/man8/ldconfig.8*
1454 %lang(hu) %{_mandir}/hu/man8/ldconfig.8*
1455 %lang(ja) %{_mandir}/ja/man8/ldconfig.8*
1456 %lang(pl) %{_mandir}/pl/man8/ldconfig.8*
1457 %lang(pt) %{_mandir}/pt/man8/ldconfig.8*
1458 %lang(ru) %{_mandir}/ru/man8/ldconfig.8*
1459 %dir %attr(700,root,root) /var/cache/ldconfig
1460 %ghost %attr(600,root,root) /var/cache/ldconfig/aux-cache
1462 %files -n nss_compat
1463 %defattr(644,root,root,755)
1464 %attr(755,root,root) /%{_lib}/libnss_compat-%{version}.so
1465 %attr(755,root,root) /%{_lib}/libnss_compat.so.2
1467 %files -n nss_hesiod
1468 %defattr(644,root,root,755)
1469 %attr(755,root,root) /%{_lib}/libnss_hesiod-%{version}.so
1470 %attr(755,root,root) /%{_lib}/libnss_hesiod.so.2
1473 %defattr(644,root,root,755)
1474 %attr(755,root,root) /%{_lib}/libnss_nis-%{version}.so
1475 %attr(755,root,root) /%{_lib}/libnss_nis.so.2
1477 %files -n nss_nisplus
1478 %defattr(644,root,root,755)
1479 %attr(755,root,root) /%{_lib}/libnss_nisplus-%{version}.so
1480 %attr(755,root,root) /%{_lib}/libnss_nisplus.so.2
1482 %if %{with memusage}
1484 %defattr(644,root,root,755)
1485 %attr(755,root,root) %{_bindir}/memusage*
1486 %attr(755,root,root) %{_libdir}/libmemusage.so
1490 %defattr(644,root,root,755)
1491 %attr(755,root,root) %{_libdir}/libBrokenLocale.so
1492 %attr(755,root,root) %{_libdir}/libanl.so
1493 %attr(755,root,root) %{_libdir}/libcrypt.so
1494 %attr(755,root,root) %{_libdir}/libcidn.so
1495 %attr(755,root,root) %{_libdir}/libdl.so
1496 %attr(755,root,root) %{_libdir}/libm.so
1497 %attr(755,root,root) %{_libdir}/libnsl.so
1498 %attr(755,root,root) %{_libdir}/libpcprofile.so
1499 %attr(755,root,root) %{_libdir}/libresolv.so
1500 %attr(755,root,root) %{_libdir}/librt.so
1501 %attr(755,root,root) %{_libdir}/libthread_db.so
1502 %attr(755,root,root) %{_libdir}/libutil.so
1503 %{_libdir}/crt[1in].o
1504 %{_libdir}/[MSg]crt1.o
1507 %{_libdir}/libpthread.so
1509 %{_libdir}/libbsd-compat.a
1511 %{_libdir}/libc_nonshared.a
1513 %{_libdir}/libieee.a
1514 %ifarch alpha ppc sparc
1515 %{_libdir}/libnldbl_nonshared.a
1517 %{_libdir}/libpthread_nonshared.a
1518 %{_libdir}/librpcsvc.a
1519 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
1520 # ABI-dependent headers
1521 %{_includedir}/gnu/stubs-*.h
1525 %defattr(644,root,root,755)
1528 %{_includedir}/alpha
1532 %dir %{_includedir}/gnu
1533 %{_includedir}/gnu/lib*.h
1534 %{_includedir}/gnu/stubs.h
1536 %{_includedir}/netash
1537 %{_includedir}/netatalk
1538 %{_includedir}/netax25
1539 %{_includedir}/neteconet
1540 %{_includedir}/netiucv
1541 %{_includedir}/netinet
1542 %{_includedir}/netipx
1543 %{_includedir}/netpacket
1544 %{_includedir}/netrom
1545 %{_includedir}/netrose
1547 %{_includedir}/protocols
1549 %{_includedir}/rpcsvc
1554 %defattr(644,root,root,755)
1555 %attr(755,root,root) %{_bindir}/gencat
1556 %attr(755,root,root) %{_bindir}/*prof*
1557 %attr(755,root,root) %{_bindir}/*trace
1560 %defattr(644,root,root,755)
1561 %doc documentation/* NOTES PROJECTS
1562 %{_infodir}/libc.info*
1564 %{_mandir}/man1/sprof.1*
1566 %lang(cs) %{_mandir}/cs/man3/*
1567 %lang(de) %{_mandir}/de/man3/*
1568 %lang(es) %{_mandir}/es/man3/*
1569 %lang(fr) %{_mandir}/fr/man3/*
1570 %lang(hu) %{_mandir}/hu/man3/*
1571 %lang(it) %{_mandir}/it/man3/*
1572 %lang(ja) %{_mandir}/ja/man3/*
1573 %lang(ko) %{_mandir}/ko/man3/*
1574 %lang(nl) %{_mandir}/nl/man3/*
1575 %lang(pl) %{_mandir}/pl/man3/*
1576 %lang(pt) %{_mandir}/pt/man3/*
1577 %lang(ru) %{_mandir}/ru/man1/sprof.1*
1578 %lang(ru) %{_mandir}/ru/man3/*
1579 %lang(tr) %{_mandir}/tr/man3/*
1580 %lang(uk) %{_mandir}/uk/man3/*
1581 %lang(zh_CN) %{_mandir}/zh_CN/man3/*
1584 %defattr(644,root,root,755)
1585 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
1586 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
1587 %attr(754,root,root) /etc/rc.d/init.d/nscd
1588 %attr(755,root,root) %{_sbindir}/nscd*
1589 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
1590 %attr(640,root,root) %ghost /var/log/nscd
1593 %attr(600,root,root) %ghost /var/lib/nscd/passwd
1594 %attr(600,root,root) %ghost /var/lib/nscd/group
1595 %attr(600,root,root) %ghost /var/lib/nscd/hosts
1596 %{_mandir}/man5/nscd.conf.5*
1597 %{_mandir}/man8/nscd.8*
1598 %{_mandir}/man8/nscd_nischeck.8*
1599 %lang(es) %{_mandir}/es/man5/nscd.conf.5*
1600 %lang(es) %{_mandir}/es/man8/nscd.8*
1601 %lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
1602 %lang(fr) %{_mandir}/fr/man8/nscd.8*
1603 %lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
1604 %lang(ja) %{_mandir}/ja/man8/nscd.8*
1605 %lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
1606 %lang(pt) %{_mandir}/pt/man8/nscd.8*
1607 %lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
1608 %lang(ru) %{_mandir}/ru/man8/nscd.8*
1609 %lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
1611 %files -n localedb-src
1612 %defattr(644,root,root,755)
1613 %attr(755,root,root) %{_bindir}/localedef
1614 %attr(755,root,root) %{_bindir}/localedb-gen
1616 %{_mandir}/man1/localedef.1*
1617 %lang(ru) %{_mandir}/ru/man1/localedef.1*
1619 %if %{with localedb}
1621 %defattr(644,root,root,755)
1622 %{_libdir}/locale/locale-archive
1626 %defattr(644,root,root,755)
1627 %attr(755,root,root) %{_sbindir}/iconvconfig
1628 %dir %{_libdir}/gconv
1629 %{_libdir}/gconv/gconv-modules
1630 %verify(not md5 mtime size) %{_libdir}/gconv/gconv-modules.cache
1631 %attr(755,root,root) %{_libdir}/gconv/*.so
1634 %defattr(644,root,root,755)
1636 %{_libdir}/libBrokenLocale.a
1638 %{_libdir}/libcrypt.a
1641 %{_libdir}/libmcheck.a
1643 %{_libdir}/libpthread.a
1644 %{_libdir}/libresolv.a
1646 %{_libdir}/libutil.a
1649 %defattr(644,root,root,755)
1653 %defattr(644,root,root,755)
1654 %{_libdir}/lib*_pic.a