]> git.pld-linux.org Git - packages/glibc.git/blame - glibc.spec
- up to 2.31
[packages/glibc.git] / glibc.spec
CommitLineData
d4a9e47c 1# TODO:
2aa88ecf 2# - restore --with-pkgversion when tcl upstream fixes the #3599098 (broken platform::identify).
7600054c 3# - --enable-systemtap
d4a9e47c
PG
4# - look at locale fixes/updates in bugzilla
5# - no more chicken-egg problem (postshell is no more dynamically linked with libc), remove SONAME symlinks? see files section.
6# [OLD]
7# - localedb-gen man pages(?)
da89b000 8# - math/{test-fenv,test-tgmath,test-float,test-ifloat}, debug/backtrace-tst(SEGV) fail on alpha
98a7741e 9#
b287d865 10# Conditional build:
7361da6b 11# min_kernel (default is 3.4.0 except for x86/x86_64 where 3.2.0 suffices)
fd1d4127 12%bcond_without memusage # don't build memusage utility
757f96eb 13%bcond_without selinux # without SELinux support (in nscd)
c9d8e545 14%bcond_with tests # perform "make test"
0a85848c 15%bcond_without localedb # don't build localedb-all (is time consuming)
d96a9968 16%bcond_with cross # make a cross build, skip native programs
b3886756 17%bcond_without nss_crypt # disable crypt features based on Mozilla NSS library
982cc116 18%bcond_with bash_nls # use bash NLS in shell scripts (ldd, sotruss); restores /bin/bash dep
a8a52a51 19%bcond_without cet # Intel Control-flow Enforcement Technology (CET)
b287d865 20#
3c58caae 21%ifarch %{ix86} %{x8664}
7361da6b 22%{!?min_kernel:%global min_kernel 3.2.0}
78588f7a 23%else
3c58caae 24%{!?min_kernel:%global min_kernel 3.4.0}
78588f7a 25%endif
f3f771b7 26
e24149ab
PS
27%ifarch sparc64
28%undefine with_memusage
29%endif
a8a52a51
JB
30%ifnarch i686 %{x8664} x32
31%undefine with_cet
32%endif
e24149ab 33
75051ff3 34%define core_version 2.31
c0c7ef32 35%define llh_version 7:2.6.32.1-1
e8c60795 36
236a5027 37Summary: GNU libc
32ba7e9f
ER
38Summary(de.UTF-8): GNU libc
39Summary(es.UTF-8): GNU libc
40Summary(fr.UTF-8): GNU libc
41Summary(ja.UTF-8): GNU libc ライブラリ
42Summary(pl.UTF-8): GNU libc
f55430af 43Summary(ru.UTF-8): GNU libc версии
32ba7e9f 44Summary(tr.UTF-8): GNU libc
f55430af 45Summary(uk.UTF-8): GNU libc версії
5240d049 46Name: glibc
ccca7e27 47Version: %{core_version}
75051ff3 48Release: 0.1
f98eacd6 49Epoch: 6
c0367bf8 50License: LGPL v2.1+
236a5027 51Group: Libraries
4b008351 52Source0: http://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.xz
75051ff3 53# Source0-md5: 78a720f17412f3c3282be5a6f3363ec6
4206408a 54Source2: nscd.init
55Source3: nscd.sysconfig
56Source4: nscd.logrotate
7bd184c8
JB
57# from man-pages.spec --with tars
58Source5: %{name}-man-pages.tar.xz
bdc8bc9b 59# Source5-md5: 852c1c77c7435615c0b17d8e4acf05d8
49ead7a0
JB
60Source6: %{name}-localedb-gen
61Source7: %{name}-LD-path.c
3b9b60ff 62Source9: nscd.tmpfiles
15716c93 63# use branch.sh to update glibc-git.patch
e087d9b1 64Patch0: glibc-git.patch
083f707c 65# Patch0-md5: 30c72a537fc2b2b893832985d7c41f1f
7787abf3 66# against GNU TP (libc domain)
12601ca4 67#Patch1: %{name}-pl.po-update.patch
4206408a 68Patch2: %{name}-pld.patch
69Patch3: %{name}-crypt-blowfish.patch
982cc116 70Patch4: %{name}-no-bash-nls.patch
364cdb7c 71
4b000c98 72Patch6: %{name}-paths.patch
0f6642e8 73
f2d222e0 74Patch10: %{name}-info.patch
ccca7e27 75Patch11: %{name}-autoconf.patch
48876fe6 76
ba326c24 77Patch14: %{name}-sparc-errno_fix.patch
c150d6cc
JB
78Patch15: %{name}-new-charsets.patch
79Patch16: %{name}-tzfile-noassert.patch
5fc41cda 80# additions pending for upstream merge or taken from other distros
c150d6cc 81Patch17: %{name}-morelocales.patch
5fc41cda 82# fixes mostly pending for upstream merge
c150d6cc
JB
83Patch18: %{name}-locale_fixes.patch
84Patch19: %{name}-ZA_collate.patch
954aec4b 85
c150d6cc 86Patch23: %{name}-pt_pax.patch
954aec4b 87
8c8ce180
AM
88# http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-c-utf8-locale.patch
89Patch27: %{name}-c-utf8-locale.patch
6815c86f 90
f789abee 91Patch29: %{name}-arm-alignment-fix.patch
e3539860 92Patch30: glibc-rh1124987.patch
959d1cc7 93URL: http://www.gnu.org/software/libc/
f70abfbb 94%{?with_selinux:BuildRequires: audit-libs-devel}
48fdf5d6 95BuildRequires: autoconf >= 2.69
69afb5a6 96BuildRequires: automake
4928f174
AM
97BuildRequires: binutils >= 2:2.29
98BuildRequires: bison >= 2.7
141e8ae3 99%{!?with_cross:BuildRequires: dietlibc-static}
5145b9c7 100BuildRequires: gawk
a8a52a51 101%if %{with cet}
364cdb7c 102BuildRequires: gcc >= 6:8.0
a8a52a51 103%else
644847e2 104BuildRequires: gcc >= 6:6.2
a8a52a51 105%endif
fd1d4127 106%{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
78588f7a 107BuildRequires: gettext-tools >= 0.10.36
757f96eb 108%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
f65fa240 109BuildRequires: linux-libc-headers >= %{llh_version}
b3886756 110%{?with_nss_crypt:BuildRequires: nss-devel >= 1:3.15.1-2}
c1db9e72 111BuildRequires: perl-base
33560f7e
AM
112BuildRequires: python3 >= 1:3.4
113BuildRequires: python3-modules >= 1:3.4
42a6983a 114BuildRequires: rpm-build >= 4.3-0.20030610.28
f789abee 115BuildRequires: rpmbuild(macros) >= 1.567
9597ca56 116BuildRequires: sed >= 4.0.5
54e3db45 117BuildRequires: texinfo
89d0df3c 118Requires: %{name}-ld = %{epoch}:%{version}-%{release}
4fa784f5 119Requires: filesystem
5145b9c7 120Requires: uname(release) >= %{min_kernel}
c2e03274 121Provides: %{name}(%{_target_cpu}) = %{epoch}:%{version}-%{release}
58304b60
JR
122%ifarch %{ix86}
123Provides: %{name}(ix86) = %{epoch}:%{version}-%{release}
124%endif
5145b9c7
JB
125Provides: glibc(nptl)
126Provides: glibc(tls)
e217c7d2
JB
127Obsoletes: glibc-common
128Obsoletes: glibc-debug
ed2a4886 129%ifarch %{x8664} sparc64 ppc64
bd3ecfb5
AM
130Provides: glibc64
131Obsoletes: glibc64
132%endif
2eac239d
ER
133Suggests: localedb
134Suggests: tzdata
0223ee0f 135Conflicts: %{name}-misc < %{epoch}:%{version}-%{release}
67cc5af0 136Conflicts: SysVinit < 2.86-11
ea3a228f 137Conflicts: kernel < %{min_kernel}
5145b9c7
JB
138Conflicts: kernel24
139Conflicts: kernel24-smp
4377d843 140Conflicts: ld.so < 1.9.9-10
7bd184c8 141Conflicts: man-pages < 4.00
3a73e452 142Conflicts: poldek < 0.30.1-9
06fed0d7 143Conflicts: rc-scripts < 0.3.1-13
bd975df5 144Conflicts: rpm < 4.1
0c48ee45 145Conflicts: xorg-driver-video-nvidia-libs < 1:295.33
d96a9968 146ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32 ia64 alpha s390 s390x sparc sparc64 sparcv9 ppc ppc64 armv5tel
a0eebe50 147BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d90a3b13 148
cf7b4302 149# avoid -s here (ld.so must not be stripped to allow any program debugging)
f620b835 150%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
e87628ab
JR
151# disable -D_FORTIFY_SOURCE=X and -fstack-protector
152%define _fortify_cflags %{nil}
153%define _ssp_cflags %{nil}
9189fea3 154
355db1aa 155%define specflags_sparcv9 -mcpu=ultrasparc -mvis -fcall-used-g6
87a4ec26 156%define specflags_sparc64 -mcpu=ultrasparc -mvis -fcall-used-g6
5145b9c7 157
b96231b6
JB
158# ld.so needs not to be stripped to work
159# gdb needs unstripped libpthread for some threading support
160# ...but we can strip at least debuginfo from them
b99e5008 161%define _autostripdebug .*/ld-[0-9.]*so\\|.*/libpthread-[0-9.]*so
b96231b6 162
37f910e8
JB
163# -m from CFLAGS or even LDFLAGS is not propagated to some *.o linking
164%ifarch sparc sparcv9
165%{expand:%%define __cc %{__cc} -m32}
166%endif
167
5145b9c7
JB
168# Xen-friendly glibc
169%define specflags_ia32 -mno-tls-direct-seg-refs
ffb5bcf1
AM
170%define specflags_x86_64 -mno-tls-direct-seg-refs -fasynchronous-unwind-tables
171%define specflags_amd64 -mno-tls-direct-seg-refs -fasynchronous-unwind-tables
5145b9c7
JB
172%define specflags_ia32e -mno-tls-direct-seg-refs
173
ff9a9e81
JB
174# we don't want perl dependency in glibc-devel
175%define _noautoreqfiles %{_bindir}/mtrace
42a6983a
JB
176# hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
177# (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
178# patched not to crash on partial hardlinks too)
179%define _hack_dontneed_PartialHardlinkSets 1
26e88040 180%define _noautochrpath .*\\(ldconfig\\|sln\\)
31aa574a
AM
181# private symbols
182%define _noautoprov .*\(GLIBC_PRIVATE\)
183%define _noautoreq .*\(GLIBC_PRIVATE\)
b88b18eb 184
24d600bc
AM
185# to avoid multi-arch conflicts on getconf/* files
186%define _libexecdir %{_libdir}
187
d90a3b13 188%description
7a3b906b 189Contains the standard libraries that are used by multiple programs on
190the system. In order to save disk space and memory, as well as to ease
602a978a 191upgrades, common system code is kept in one place and shared between
192programs. This package contains the most important sets of shared
7a3b906b 193libraries, the standard C library and the standard math library.
194Without these, a Linux system will not function. It also contains
b1414da6 195national language (locale) support.
76f01b70 196
1cb6acca 197Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 198
94008272
JR
199%description -l es.UTF-8
200Contiene las bibliotecas estándared que son usadas por varios
d22b4284 201programas del sistema. Para ahorrar el espacio en el disco y la
94008272 202memoria, igual que para facilitar actualizaciones, código común del
d22b4284 203sistema se guarda en un sitio y es compartido entre los programas.
94008272
JR
204Este paquete contiene las bibliotecas compartidas más importantes, es
205decir la biblioteca C estándar y la biblioteca estándar de matemática.
206Sin éstas, un sistema Linux no podrá funcionar. También está incluido
b1414da6 207soporte de idiomas nacionales (locale).
4a04bb32 208
94008272 209Puede usarse con: núcleo Linux >= %{min_kernel}.
4a04bb32 210
94008272
JR
211%description -l de.UTF-8
212Enthält die Standard-Libraries, die von verschiedenen Programmen im
7a3b906b 213System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
214und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
215einer einzigen Stelle gespeichert und wird von den Programmen
94008272 216gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
7a3b906b 217shared Libraries, die Standard-C-Library und die
218Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
94008272 219Ferner enthält es den Support für die verschiedenen Sprachgregionen
b1414da6 220(locale).
76f01b70 221
1cb6acca 222Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 223
94008272
JR
224%description -l fr.UTF-8
225Contient les bibliothèques standards utilisées par de nombreux
226programmes du système. Afin d'économiser l'espace disque et mémoire,
227et de faciliter les mises à jour, le code commun au système est mis à
228un endroit et partagé entre les programmes. Ce paquetage contient les
229bibliothèques partagées les plus importantes, la bibliothèque standard
230du C et la bibliothèque mathématique standard. Sans celles-ci, un
231système Linux ne peut fonctionner. Il contient aussi la gestion des
b1414da6 232langues nationales (locales).
76f01b70 233
1cb6acca 234Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 235
94008272 236%description -l ja.UTF-8
c5387ad5 237glibc
94008272
JR
238パッケージはシステム上の複数のプログラムで使われる標準ライブラリを
239ふくみます。ディスクスペースとメモリを節約したり、アップグレードを
240用意にするために、共通のシステムコードは一つの場所におかれ、プログラム
241間で共有されます。この部分的なパッケージはシェアドライブラリのかなり
242重要なセットをふくみます: 標準 C ライブラリと標準数値ライブラリです。
243この二つのライブラリ抜きでは、Linux システムは機能しません。 glibc
244パッケージはまた地域言語 (locale) サポートとタイムゾーンデータベース
245サポートをふくみます。
76f01b70 246
1cb6acca 247Can be used on: Linux kernel >= %{min_kernel}.
e50f6fb1 248
94008272
JR
249%description -l pl.UTF-8
250W pakiecie znajdują się podstawowe biblioteki, używane przez różne
251programy w Twoim systemie. Używanie przez programy bibliotek z tego
252pakietu oszczędza miejsce na dysku i pamięć. Większość kodu
253systemowego jest usytuowane w jednym miejscu i dzielone między wieloma
254programami. Pakiet ten zawiera bardzo ważny zbiór bibliotek
255standardowych, współdzielonych (dynamicznych) bibliotek C i
256matematycznych. Bez glibc system Linux nie jest w stanie funkcjonować.
257Znajdują się tutaj również definicje różnych informacji dla wielu
258języków (locale).
259
260Pakiet jest przeznaczony dla jądra Linuksa >= %{min_kernel}.
261
262%description -l ru.UTF-8
263Содержит стандартные библиотеки, используемые многочисленными
264программами в системе. Для того, чтобы сохранить дисковое пространство
265и память, а также для простоты обновления, системный код, общий для
266всех программ, хранится в одном месте и коллективно используется всеми
267программами. Этот пакет содержит наиболее важные из разделяемых
268библиотек - стандартную библиотеку C и стандартную библиотеку
269математики. Без этих библиотек Linux функционировать не будет. Также
270пакет содержит поддержку национальных языков (locale).
76f01b70 271
1cb6acca 272Can be used on: Linux kernel >= %{min_kernel}.
98a7741e 273
94008272
JR
274%description -l tr.UTF-8
275Bu paket, birçok programın kullandığı standart kitaplıkları içerir.
276Disk alanı ve bellek kullanımını azaltmak ve aynı zamanda güncelleme
277işlemlerini kolaylaştırmak için ortak sistem kodları tek bir yerde
278tutulup programlar arasında paylaştırılır. Bu paket en önemli ortak
279kitaplıkları, standart C kitaplığını ve standart matematik kitaplığını
280içerir. Bu kitaplıklar olmadan Linux sistemi çalışmayacaktır. Yerel
281dil desteği ve zaman dilimi veri tabanı da bu pakette yer alır.
76f01b70 282
1cb6acca 283Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 284
94008272
JR
285%description -l uk.UTF-8
286Містить стандартні бібліотеки, котрі використовуються численними
287програмами в системі. Для того, щоб зберегти дисковий простір та
288пам'ять, а також для простоти поновлення системи, системний код,
289спільний для всіх програм, зберігається в одному місці і колективно
290використовується всіма програмами. Цей пакет містить найбільш важливі
291з динамічних бібліотек - стандартну бібліотеку С та стандартну
292бібліотеку математики. Без цих бібліотек Linux функціонувати не буде.
293Також пакет містить підтримку національних мов (locale).
76f01b70 294
1cb6acca 295Can be used on: Linux kernel >= %{min_kernel}.
98a7741e 296
c4fea372
JK
297%package misc
298Summary: Utilities and data used by glibc
32ba7e9f 299Summary(pl.UTF-8): Narzędzia i dane używane przez glibc
e44a2813 300Group: Applications/System
10395c33 301Suggests: libidn2 >= 2.0.5
71181534 302Requires: %{name} = %{epoch}:%{version}-%{release}
c2e03274 303%ifarch %{ix86}
58304b60 304Conflicts: %{name}(x32)
c2e03274
AM
305Conflicts: %{name}(x86_64)
306%endif
7bd184c8 307Conflicts: man-pages < 4.00
c4fea372
JK
308
309%description misc
fd1d4127
JB
310Utilities and data used by glibc.
311
94008272
JR
312%description misc -l pl.UTF-8
313Narzędzia i dane używane przez glibc.
c4fea372 314
2eac239d
ER
315%package libcrypt
316Summary: glibc library for crypt(3)
33f26cf9 317Summary(pl.UTF-8): Biblioteka glibc z funkcją crypt(3)
2eac239d
ER
318Group: Libraries
319Requires: %{name} = %{epoch}:%{version}-%{release}
5191213e 320Provides: %{name}-libcrypt(%{_target_cpu}) = %{epoch}:%{version}-%{release}
e87628ab
JR
321%ifarch %{ix86}
322Provides: %{name}-libcrypt(ix86) = %{epoch}:%{version}-%{release}
323%endif
050e821f 324Provides: crypt(blowfish)
2eac239d
ER
325
326%description libcrypt
327glibc library for crypt(3).
328
33f26cf9
JB
329%description libcrypt -l pl.UTF-8
330Biblioteka glibc z funkcją crypt(3).
331
4139e845
JK
332%package ld
333Summary: Dynamic linker
085d921e 334Summary(pl.UTF-8): Linker (konsolidator) dynamiczny
cf408212 335Group: Applications/System
03b5396e 336Requires: uname(release) >= %{min_kernel}
085d921e
JB
337# we want FHS being installed before ldconfig, altho they are both unrelated to each-other.
338Requires: FHS
339Provides: rtld(GNU_HASH)
cf408212
ER
340# This is needed because previous package (glibc) had autoreq false and had
341# provided this manually. Probably poldek bug that have to have it here.
342Provides: /sbin/ldconfig
4139e845
JK
343Provides: ldconfig = %{epoch}:%{version}-%{release}
344Obsoletes: ldconfig < 6:2.28-6.1
cf408212 345
4139e845 346%description ld
085d921e
JB
347The dynamic linker is used to load shared libraries used by
348executables linked dynamically.
349
350The package also contains the ldconfig tool used to maintain shared
351library cache for the linker.
352
353%description ld -l pl.UTF-8
354Linker (konsolidator) dynamiczny służy do ładowania bibliotek
355współdzielonych używanych przez programy wykonywalne konsolidowane
356dynamicznie.
4139e845 357
085d921e
JB
358Pakiet zawiera także narzędzie ldconfig, służące do utrzymywania
359pamięci podręcznej bibliotek współdzielonych dla linkera.
cf408212 360
7bd184c8
JB
361%package -n nss_compat
362Summary: Old style NYS NSS glibc module
363Summary(es.UTF-8): El antiguo módulo NYS NSS de glibc
364Summary(pl.UTF-8): Stary moduł NYS NSS glibc
365Group: Base
366Requires: %{name} = %{epoch}:%{version}-%{release}
367
368%description -n nss_compat
369Old style NYS NSS glibc module.
370
371%description -n nss_compat -l es.UTF-8
372El antiguo módulo NYS NSS de glibc
373
374%description -n nss_compat -l pl.UTF-8
375Stary moduł NYS NSS glibc.
376
9a39df8d 377%package -n nss_db
2b8d8276
JB
378Summary: NSS glibc module that uses hashed key-value database
379Summary(pl.UTF-8): Moduł NSS glibc wykorzystujący haszowaną bazę danych klucz-wartość
9a39df8d
ER
380Group: Base
381Requires: %{name} = %{epoch}:%{version}-%{release}
382
383%description -n nss_db
2b8d8276
JB
384NSS glibc module that uses hashed key-value database.
385
386%description -n nss_db -l pl.UTF-8
387Moduł NSS glibc wykorzystujący haszowaną bazę danych klucz-wartość.
9a39df8d 388
7bd184c8
JB
389%package -n nss_dns
390Summary: BIND NSS glibc module
391Summary(es.UTF-8): Módulo BIND NSS de glibc
392Summary(pl.UTF-8): Moduł BIND NSS glibc
393Group: Base
394Requires: %{name} = %{epoch}:%{version}-%{release}
395
396%description -n nss_dns
397BIND NSS glibc module.
398
399%description -n nss_dns -l es.UTF-8
400Módulo BIND NSS de glibc.
401
402%description -n nss_dns -l pl.UTF-8
403Moduł BIND NSS glibc.
404
405%package -n nss_files
406Summary: Traditional files databases NSS glibc module
407Summary(es.UTF-8): Módulo de tradicionales bases de datos en ficheros para glibc
408Summary(pl.UTF-8): Moduł tradycyjnych plikowych baz danych NSS glibc
409Group: Base
410Requires: %{name} = %{epoch}:%{version}-%{release}
411
412%description -n nss_files
413Traditional files databases NSS glibc module.
414
415%description -n nss_files -l es.UTF-8
416Módulo de tradicionales bases de datos en ficheros para glibc.
417
418%description -n nss_files -l pl.UTF-8
419Moduł tradycyjnych plikowych baz danych NSS glibc.
420
421%package -n nss_hesiod
422Summary: hesiod NSS glibc module
423Summary(es.UTF-8): Módulo hesiod NSS de glibc
424Summary(pl.UTF-8): Moduł hesiod NSS glibc
425Group: Base
426Requires: %{name} = %{epoch}:%{version}-%{release}
427
428%description -n nss_hesiod
429glibc NSS (Name Service Switch) module for databases access.
430
431%description -n nss_hesiod -l es.UTF-8
432Módulo hesiod NSS de glibc.
433
434%description -n nss_hesiod -l pl.UTF-8
435Moduł glibc NSS (Name Service Switch) dostępu do baz danych.
436
437%package -n nss_nis
438Summary: NIS(YP) NSS glibc module
439Summary(es.UTF-8): Módulo NIS(YP) NSS de glibc
440Summary(pl.UTF-8): Moduł NIS(YP) NSS glibc
441Group: Base
442Requires: %{name} = %{epoch}:%{version}-%{release}
443
444%description -n nss_nis
445glibc NSS (Name Service Switch) module for NIS(YP) databases access.
446
447%description -n nss_nis -l es.UTF-8
448Módulo NSS de glibc para acceder las bases de datos NIS(YP).
449
450%description -n nss_nis -l pl.UTF-8
451Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS(YP).
452
453%package -n nss_nisplus
454Summary: NIS+ NSS module
455Summary(es.UTF-8): Módulo NIS+ NSS
456Summary(pl.UTF-8): Moduł NIS+ NSS
457Group: Base
458Requires: %{name} = %{epoch}:%{version}-%{release}
459
460%description -n nss_nisplus
461glibc NSS (Name Service Switch) module for NIS+ databases access.
462
463%description -n nss_nisplus -l es.UTF-8
464Módulo NSS (Name Service Switch) de glibc para acceder las bases de
465datos NIS+.
466
467%description -n nss_nisplus -l pl.UTF-8
468Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
469
470%package memusage
471Summary: Memory usage profiler
472Summary(pl.UTF-8): Narzędzie do profilowania zużycia pamięci
473Group: Development/Tools
474Requires: %{name} = %{epoch}:%{version}-%{release}
475Conflicts: man-pages < 4.00
476
477%description memusage
478Memory usage profiler.
479
480%description memusage -l pl.UTF-8
481Narzędzie do profilowania zużycia pamięci.
482
fb120840 483%package devel
959d1cc7 484Summary: Additional libraries required to compile
32ba7e9f
ER
485Summary(de.UTF-8): Weitere Libraries zum Kompilieren
486Summary(es.UTF-8): Bibliotecas adicionales necesarias para la compilación
487Summary(fr.UTF-8): Librairies supplémentaires nécessaires à la compilation
488Summary(ja.UTF-8): 標準 C ライブラリで使われるヘッダーとオブジェクトファイル
489Summary(pl.UTF-8): Dodatkowe biblioteki wymagane podczas kompilacji
490Summary(ru.UTF-8): Дополнительные библиотеки, необходимые для компиляции
491Summary(tr.UTF-8): Geliştirme için gerekli diğer kitaplıklar
492Summary(uk.UTF-8): Додаткові бібліотеки, потрібні для компіляції
959d1cc7 493Group: Development/Libraries
69afb5a6 494Requires: %{name} = %{epoch}:%{version}-%{release}
9be42309 495Requires: %{name}-devel-utils = %{epoch}:%{version}-%{release}
9b9eac8d 496Requires: %{name}-headers = %{epoch}:%{version}-%{release}
03b5396e 497Requires: %{name}-libcrypt(%{_target_cpu}) = %{epoch}:%{version}-%{release}
5b00029e 498Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
e87628ab
JR
499%ifarch %{ix86}
500Provides: %{name}-devel(ix86) = %{epoch}:%{version}-%{release}
501%endif
b34a4e03 502Obsoletes: libiconv-devel
e566b629
ER
503%ifarch %{x8664}
504# see http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2016-May/024902.html
505%if "%(rpm -q --qf '%{E}:%{V}' binutils)" >= "4:2.26"
506Conflicts: binutils < 4:2.26
507%endif
508%endif
959d1cc7 509
510%description devel
7a3b906b 511To develop programs which use the standard C libraries (which nearly
512all programs do), the system needs to have these standard header files
513and object files available for creating the executables.
959d1cc7 514
94008272 515%description devel -l de.UTF-8
7a3b906b 516Bei der Entwicklung von Programmen, die die Standard-C-Libraries
94008272
JR
517verwenden (also fast alle), benötigt das System diese Standard-Header-
518und Objektdateien zum Erstellen der ausführbaren Programme.
d90a3b13 519
94008272
JR
520%description devel -l es.UTF-8
521Para desarrollar programas que utilizan las bibliotecas C estándar (lo
522cual hacen prácticamente todos los programas), el sistema necesita
4a04bb32 523disponer de estos ficheros de cabecera y de objetos para crear los
524ejecutables.
525
94008272
JR
526%description devel -l fr.UTF-8
527Pour développer des programmes utilisant les bibliothèques standard du
528C (ce que presque tous les programmes font), le système doit posséder
529ces fichiers en-têtes et objets standards pour créer les exécutables.
530
531%description devel -l ja.UTF-8
532glibc-devel パッケージは(ほとんどすべてのプログラムで使われる)標準 C
533ライブラリを使用したプログラムを開発するためのヘッダーとオブジェクト
534ファイルを含みます。もし標準 C
535ライブラリを使用するプログラムを開発するなら
536実行ファイルを作成する目的でこれらの標準ヘッダとオブジェクトファイル
537が使用できます。
538
539%description devel -l pl.UTF-8
540Pakiet ten jest niezbędny przy tworzeniu własnych programów
541korzystających ze standardowej biblioteki C. Znajdują się tutaj pliki
542nagłówkowe oraz pliki obiektowe, niezbędne do kompilacji programów
7a3b906b 543wykonywalnych i innych bibliotek.
d90a3b13 544
94008272
JR
545%description devel -l ru.UTF-8
546Для разработки программ, использующих стандартные библиотеки C (а
547практически все программы их используют), системе НЕОБХОДИМЫ хедеры и
548объектные файлы, содержащиеся в этом пакете, чтобы создавать
549исполняемые файлы.
98a7741e 550
94008272
JR
551%description devel -l tr.UTF-8
552C kitaplığını kullanan (ki hemen hemen hepsi kullanıyor) programlar
553geliştirmek için gereken standart başlık dosyaları ve statik
554kitaplıklar.
d90a3b13 555
94008272
JR
556%description devel -l uk.UTF-8
557Для розробки програм, що використовують стандартні бібліотеки C
558(практично всі програми їх використовують), системі НЕОБХІДНІ хедери
559та об'єктні файли, що містяться в цьому пакеті, цоб створювати
560виконувані файли.
98a7741e 561
5b00029e
JB
562%package headers
563Summary: Header files for development using standard C libraries
32ba7e9f 564Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu standardowych bibliotek C
e44a2813 565Group: Development/Building
5b00029e 566Provides: %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
e87628ab
JR
567%ifarch %{ix86}
568Provides: %{name}-headers(ix86) = %{epoch}:%{version}-%{release}
569%endif
58304b60 570%ifarch %{x8664} x32
5145b9c7 571# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
5b00029e 572# have to be installed, not ix86 one.
ae2d70c9
ER
573Obsoletes: glibc-headers(athlon)
574Obsoletes: glibc-headers(i386)
575Obsoletes: glibc-headers(i486)
576Obsoletes: glibc-headers(i586)
577Obsoletes: glibc-headers(i686)
03b5396e 578Obsoletes: glibc-headers(ix86)
ae2d70c9
ER
579Obsoletes: glibc-headers(pentium3)
580Obsoletes: glibc-headers(pentium4)
58304b60
JR
581%endif
582%ifarch x32
583Obsoletes: glibc-headers(x86_64)
5b00029e 584%endif
f70abfbb 585%ifarch ppc64
ae2d70c9 586Obsoletes: glibc-headers(ppc)
f70abfbb
JB
587%endif
588%ifarch s390x
ae2d70c9 589Obsoletes: glibc-headers(s390)
f70abfbb
JB
590%endif
591%ifarch sparc64
ae2d70c9 592Obsoletes: glibc-headers(sparc)
f70abfbb 593%endif
f65fa240 594Requires: linux-libc-headers >= %{llh_version}
5b00029e
JB
595
596%description headers
597The glibc-headers package contains the header files necessary for
598developing programs which use the standard C libraries (which are used
599by nearly all programs). If you are developing programs which will use
600the standard C libraries, your system needs to have these standard
601header files available in order to create the executables.
602
603Install glibc-headers if you are going to develop programs which will
604use the standard C libraries.
605
94008272
JR
606%description headers -l pl.UTF-8
607Pakiet glibc-headers zawiera pliki nagłówkowe niezbędne do rozwijania
608programów używających standardowych bibliotek C (używanych przez
609prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
610standardowych bibliotek C, system wymaga dostępności tych
611standardowych plików nagłówkowych do tworzenia programów
5b00029e
JB
612wykonywalnych.
613
94008272
JR
614Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
615korzystające ze standardowych bibliotek C.
5b00029e
JB
616
617%package devel-utils
618Summary: Utilities needed for development using standard C libraries
32ba7e9f 619Summary(pl.UTF-8): Narzędzia do tworzenia programów przy użyciu standardowych bibliotek C
5b00029e
JB
620Group: Development/Libraries
621Provides: %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
e87628ab
JR
622%ifarch %{ix86}
623Provides: %{name}-devel-utils(ix86) = %{epoch}:%{version}-%{release}
624%endif
58304b60 625%ifarch %{x8664} x32
5b00029e
JB
626# If both -m32 and -m64 is to be supported on AMD64, x86_64 package
627# have to be installed, not ix86 one.
ae2d70c9
ER
628Obsoletes: glibc-devel-utils(athlon)
629Obsoletes: glibc-devel-utils(i386)
630Obsoletes: glibc-devel-utils(i486)
631Obsoletes: glibc-devel-utils(i586)
632Obsoletes: glibc-devel-utils(i686)
03b5396e 633Obsoletes: glibc-devel-utils(ix86)
ae2d70c9
ER
634Obsoletes: glibc-devel-utils(pentium3)
635Obsoletes: glibc-devel-utils(pentium4)
58304b60
JR
636%endif
637%ifarch x32
638Obsoletes: glibc-devel-utils(x86_64)
5b00029e 639%endif
f70abfbb 640%ifarch ppc64
ae2d70c9 641Obsoletes: glibc-devel-utils(ppc)
f70abfbb
JB
642%endif
643%ifarch s390x
ae2d70c9 644Obsoletes: glibc-devel-utils(s390)
f70abfbb
JB
645%endif
646%ifarch sparc64
ae2d70c9 647Obsoletes: glibc-devel-utils(sparc)
f70abfbb 648%endif
7bd184c8 649Conflicts: man-pages < 4.00
5b00029e
JB
650
651%description devel-utils
652The glibc-devel-utils package contains utilities necessary for
653developing programs which use the standard C libraries (which are used
654by nearly all programs). If you are developing programs which will use
655the standard C libraries, your system needs to have these utilities
656available.
657
658Install glibc-devel-utils if you are going to develop programs which
659will use the standard C libraries.
660
94008272
JR
661%description devel-utils -l pl.UTF-8
662Pakiet glibc-devel-utils zawiera narzędzia niezbędne do rozwijania
663programów używających standardowych bibliotek C (używanych przez
664prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
665standardowych bibliotek C, system wymaga dostępności tych narzędzi do
666tworzenia programów wykonywalnych.
5b00029e 667
94008272
JR
668Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
669korzystające ze standardowych bibliotek C.
5b00029e
JB
670
671%package devel-doc
672Summary: Documentation needed for development using standard C libraries
32ba7e9f 673Summary(pl.UTF-8): Dokumentacja do tworzenia programów przy użyciu standardowych bibliotek C
5b00029e 674Group: Documentation
b6fd0f3f 675Conflicts: man-pages < 4.09
ed559739
ER
676%if "%{_rpmversion}" >= "5"
677BuildArch: noarch
678%endif
5b00029e
JB
679
680%description devel-doc
681The glibc-devel-doc package contains info and manual pages necessary
682for developing programs which use the standard C libraries (which are
683used by nearly all programs).
684
685Install glibc-devel-doc if you are going to develop programs which
686will use the standard C libraries.
687
94008272 688%description devel-doc -l pl.UTF-8
5b00029e 689Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
94008272 690rozwijania programów używających standardowych bibliotek C (używanych
5b00029e
JB
691przez prawie wszystkie programy).
692
94008272
JR
693Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
694korzystające ze standardowych bibliotek C.
5b00029e 695
7bd184c8
JB
696%package static
697Summary: Static GNU libc libraries
698Summary(es.UTF-8): Bibliotecas estáticas
699Summary(pl.UTF-8): Biblioteki statyczne GNU libc
700Summary(ru.UTF-8): Статические библиотеки glibc
701Summary(uk.UTF-8): Статичні бібліотеки glibc
702Group: Development/Libraries
703Requires: %{name}-devel = %{epoch}:%{version}-%{release}
704Provides: %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
705%ifarch %{ix86}
706Provides: %{name}-static(ix86) = %{epoch}:%{version}-%{release}
707%endif
708Obsoletes: libiconv-static
709
710%description static
711GNU libc static libraries.
712
713%description static -l es.UTF-8
714Bibliotecas estáticas de GNU libc.
715
716%description static -l pl.UTF-8
717Biblioteki statyczne GNU libc.
718
719%description static -l ru.UTF-8
720Это отдельный пакет со статическими библиотеками, которые больше не
721входят в glibc-devel.
722
723%description static -l uk.UTF-8
724Це окремий пакет зі статичними бібліотеками, що більше не входять в
725склад glibc-devel.
726
727%package profile
728Summary: glibc with profiling support
729Summary(de.UTF-8): glibc mit Profil-Unterstützung
730Summary(es.UTF-8): glibc con soporte de perfilamiento
731Summary(fr.UTF-8): glibc avec support pour profiling
732Summary(pl.UTF-8): glibc ze wsparciem dla profilowania
733Summary(ru.UTF-8): GNU libc с поддержкой профайлера
734Summary(tr.UTF-8): Ölçüm desteği olan glibc
735Summary(uk.UTF-8): GNU libc з підтримкою профайлера
736Group: Development/Libraries/Libc
737Requires: %{name}-devel = %{epoch}:%{version}-%{release}
738Obsoletes: libc-profile
739
740%description profile
741When programs are being profiled using gprof, they must use these
742libraries instead of the standard C libraries for gprof to be able to
743profile them correctly.
744
745%description profile -l de.UTF-8
746Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
747Libraries anstelle der üblichen C-Libraries verwendet werden.
748
749%description profile -l es.UTF-8
750Cuando programas son perfilidas usando gprof, tienen que usar estas
751biblioteces en vez de las estándares para que gprof pueda perfilarlas
752correctamente.
753
754%description profile -l pl.UTF-8
755Programy profilowane za pomocą gprof muszą używać tych bibliotek
756zamiast standardowych bibliotek C, aby gprof mógł odpowiednio je
757wyprofilować.
758
759%description profile -l uk.UTF-8
760Коли програми досліджуються профайлером gprof, вони повинні
761використовувати замість стандартних бібліотек бібліотеки, що містяться
762в цьому пакеті. При використанні стандартних бібліотек gprof замість
763реальних результатів буде показувати ціни на папайю в Гонолулу в
764позаминулому році...
765
766%description profile -l tr.UTF-8
767gprof kullanılarak ölçülen programlar standart C kitaplığı yerine bu
768kitaplığı kullanmak zorundadırlar.
769
770%description profile -l ru.UTF-8
771Когда программы исследуются профайлером gprof, они должны
772использовать, вместо стандартных библиотек, библиотеки, включенные в
773этот пакет. При использовании стандартных библиотек gprof вместо
774реальных результатов будет показывать цены на папайю в Гонолулу в
775позапрошлом году...
776
777%package pic
778Summary: glibc PIC archive
779Summary(es.UTF-8): Archivo PIC de glibc
780Summary(pl.UTF-8): Archiwum PIC glibc
781Group: Development/Libraries/Libc
782Requires: %{name}-devel = %{epoch}:%{version}-%{release}
783
784%description pic
785GNU C Library PIC archive contains an archive library (ar file)
786composed of individual shared objects. This is used for creating a
787library which is a smaller subset of the standard libc shared library.
788
789%description pic -l es.UTF-8
790El archivo PIC de la biblioteca glibc contiene una biblioteca
791archivada (un fichero ar) compuesta de individuales objetos
792compartidos. Es usado para crear una biblioteca que sea un subconjunto
793más pequeño de la biblioteca libc compartida estándar.
794
795%description pic -l pl.UTF-8
796Archiwum PIC biblioteki GNU C zawiera archiwalną bibliotekę (plik ar)
797złożoną z pojedynczych obiektów współdzielonych. Używana jest do
798tworzenia biblioteki będącej mniejszym podzestawem standardowej
799biblioteki współdzielonej libc.
800
fb120840 801%package -n nscd
bab19d4a 802Summary: Name Service Caching Daemon
32ba7e9f
ER
803Summary(es.UTF-8): Demonio de caché del servicio de nombres
804Summary(ja.UTF-8): ネームサービスキャッシングデーモン (nacd)
805Summary(pl.UTF-8): Demon zapamiętujący odpowiedzi serwisów nazw
806Summary(ru.UTF-8): Кэширующий демон сервисов имен
807Summary(uk.UTF-8): Кешуючий демон севісів імен
c0367bf8 808License: GPL v2
141e8ae3 809Group: Networking/Daemons
9b9eac8d
ER
810Requires(post): fileutils
811Requires(post,preun): /sbin/chkconfig
812Requires(postun): /usr/sbin/groupdel
813Requires(postun): /usr/sbin/userdel
da7cc665
JB
814Requires(pre): /bin/id
815Requires(pre): /usr/bin/getgid
816Requires(pre): /usr/sbin/groupadd
817Requires(pre): /usr/sbin/useradd
69afb5a6 818Requires: %{name} = %{epoch}:%{version}-%{release}
da7cc665 819%{?with_selinux:Requires: libselinux >= 1.18}
84e798db 820Requires: rc-scripts >= 0.4.3.0
da7cc665
JB
821Provides: group(nscd)
822Provides: user(nscd)
973b10f6
ER
823Obsoletes: gnscd
824Obsoletes: unscd
bab19d4a 825
826%description -n nscd
7a3b906b 827nscd caches name service lookups; it can dramatically improve
90ff660b 828performance with NIS+, and may help with DNS as well.
bab19d4a 829
94008272
JR
830%description -n nscd -l es.UTF-8
831nscd guarda las peticiones del servicio de nombres en una caché; eso
832puede aumentar drásticamente las prestaciones de NIS+, y también puede
90ff660b 833ayudar con DNS.
4a04bb32 834
94008272
JR
835%description -n nscd -l ja.UTF-8
836Nscd はネームサービス参照をキャッシュし、NIS+ のパフォーマンスを
837ドラマティックに改善することができ、DNS を同様に補助します。
c5387ad5 838
94008272
JR
839%description -n nscd -l pl.UTF-8
840nscd zapamiętuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
841drastycznie poprawić szybkość działania NIS+.
c43e39f5 842
94008272
JR
843%description -n nscd -l ru.UTF-8
844nscd кэширует результаты запросов к сервисам имен; это может резко
845увеличить производительность работы с NIS+ и, также, может помочь с
98a7741e 846DNS.
847
94008272
JR
848%description -n nscd -l uk.UTF-8
849nscd кешує результати запросів до сервісів імен; це може сильно
850збільшити швидкість роботи з NIS+ і, також, може допомогти з DNS.
98a7741e 851
d34cb8bc 852%package -n localedb-src
c5895f38 853Summary: locale database source code
32ba7e9f
ER
854Summary(es.UTF-8): Código fuente de la base de datos de los locales
855Summary(pl.UTF-8): Kod źródłowy bazy locale
2abb6d39 856Group: Libraries
69afb5a6 857Requires: %{name} = %{epoch}:%{version}-%{release}
860ccbf5 858Requires: gzip
a22f09bc 859Requires: sed
3fb16489 860Provides: localedb
d34cb8bc 861
862%description -n localedb-src
7a3b906b 863This add-on package contains the data needed to build the locale data
40430bed 864files to use the internationalization features of the GNU libc.
d34cb8bc 865
94008272 866%description -n localedb-src -l es.UTF-8
4a04bb32 867Este paquete adicional contiene los datos necesarios para construir
868los ficheros de locale, imprescindibles para usar las cualidades de
94008272 869internacionalización de GNU libc.
4a04bb32 870
94008272
JR
871%description -n localedb-src -l pl.UTF-8
872Pakiet ten zawiera dane niezbędne do zbudowania binarnych plików
873lokalizacyjnych, by móc wykorzystać możliwości oferowane przez GNU
40430bed
JB
874libc.
875
876%package localedb-all
877Summary: locale database for all locales supported by glibc
32ba7e9f
ER
878Summary(es.UTF-8): Base de datos de todos los locales soportados por glibc
879Summary(pl.UTF-8): Baza danych locale dla wszystkich lokalizacji obsługiwanych przez glibc
40430bed 880Group: Libraries
69afb5a6 881Requires: %{name} = %{epoch}:%{version}-%{release}
9b9eac8d 882Requires: iconv = %{epoch}:%{version}-%{release}
3fb16489 883Provides: localedb
40430bed
JB
884
885%description localedb-all
886This package contains locale database for all locales supported by
420cf057 887glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
40430bed
JB
888something smaller with support for chosen locales only, consider
889installing localedb-src and regenerating database using localedb-gen
890script (when database is generated, localedb-src can be uninstalled).
891
94008272 892%description localedb-all -l es.UTF-8
d22b4284 893Este paquete contiene una base de datos de todos los locales
94008272
JR
894soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
89539 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
896locales elegidos, considérese instalar localedb-src y regenerar la
d22b4284 897base de datos usando el escript localedb-gen (una vez que la base de
94008272 898datos esté creada, localedb-src se podrá desinstalar).
4a04bb32 899
94008272
JR
900%description localedb-all -l pl.UTF-8
901Ten pakiet zawiera bazę danych locale dla wszystkich lokalizacji
902obsługiwanych przez glibc. W glibc 2.3.x jest to jeden duży plik
903(około 39MB); aby mieć coś mniejszego, z obsługą tylko wybranych
904lokalizacji, należy zainstalować pakiet localedb-src i przegenerować
905bazę danych przy użyciu skryptu localedb-gen (po wygenerowaniu bazy
906pakiet localedb-src można odinstalować).
d34cb8bc 907
908%package -n iconv
909Summary: Convert encoding of given files from one encoding to another
32ba7e9f
ER
910Summary(es.UTF-8): Convierte entre varias codificaciones de los ficheros dados
911Summary(pl.UTF-8): Moduły do konwersji plików tekstowych z jednego kodowania do innego
2abb6d39 912Group: Libraries
69afb5a6 913Requires: %{name} = %{epoch}:%{version}-%{release}
175873de 914Provides: iconv(%{_target_base_arch})
7bd184c8 915Conflicts: man-pages < 4.00
d34cb8bc 916
917%description -n iconv
7a3b906b 918Convert encoding of given files from one encoding to another. You need
4a04bb32 919this package if you want to convert some document from one encoding to
c5895f38 920another or if you have installed some programs which use Generic
7a3b906b 921Character Set Conversion Interface.
d34cb8bc 922
94008272
JR
923%description -n iconv -l es.UTF-8
924Convierte la codificación de dados ficheros. Necesita este paquete si
925quiere convertir un documento entre una codificación (juego de
926caracteres) y otra, o si tiene instalado algún programa que usa el
927Generic Character Set Conversion Interface (interfaz genérica de
928conversión de juegos de caracteres).
929
930%description -n iconv -l pl.UTF-8
931Moduły do konwersji plików tekstowych z jednego kodowania do innego.
932Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
933dokumentów z jednego kodowania do innego lub do używania programów
934korzystających z Generic Character Set Conversion Interface w glibc,
935czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
2abb6d39 936kodowania danych z poziomu dowolnego programu.
d34cb8bc 937
602a978a 938%prep
ccca7e27
AM
939%setup -q
940
3724f17a
AM
941%if "%{min_kernel}" < "3.2.0"
942echo "Minimal supported kernel is 3.2.0" >&2
ccca7e27
AM
943exit 1
944%endif
dac4060d 945
75051ff3 946#patch0 -p1
0cd3962f 947
d36b187a 948%patch2 -p1
6c231cd2 949%patch3 -p0
982cc116 950%{!?with_bash_nls:%patch4 -p1}
364cdb7c 951
16c630b5 952%patch6 -p1
0f6642e8 953
f2d222e0 954%patch10 -p1
150f255c 955%patch11 -p1
48876fe6 956
75051ff3 957%patch14 -p1
238dd942 958%patch15 -p1
c150d6cc 959%patch16 -p1
8db99e58
JB
960%patch17 -p1
961%patch18 -p1
c150d6cc 962%patch19 -p1
954aec4b 963
c150d6cc 964%patch23 -p0
5c6502d1 965
dcd77541 966%patch27 -p1
8c8ce180 967
f789abee 968%patch29 -p1
e3539860 969%patch30 -p1
6bb391cf 970
cbf1c4bb
ER
971# cleanup backups after patching
972find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
de1c7a1b 973
98a7741e 974chmod +x scripts/cpp
d90a3b13 975
976%build
0469b7fd 977# glibc has its own way to remove PLT relocations. / H. J. Lu.
28a2e091 978unset LD_SYMBOLIC_FUNCTIONS || :
0469b7fd 979
9b9d0010 980cp -f /usr/share/automake/config.sub scripts
68ed41fd
PS
981%{__aclocal}
982%{__autoconf}
5145b9c7 983
2ed7b994 984rm -rf builddir
cfac0d25 985install -d builddir
e2a5184e 986cd builddir
472e31ee
JB
987%ifarch sparc64
988CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
989%endif
f789abee 990
9d0a498b
AM
991# force ld bfd (instead of gold)
992install -d alt-tools
993ln -sf %{_bindir}/ld.bfd alt-tools/ld
994PATH=$(pwd)/alt-tools:$PATH; export PATH
995
5145b9c7 996AWK="gawk" \
e2a5184e 997../%configure \
a8a52a51 998%if %{with cet}
364cdb7c
AM
999 --enable-cet \
1000%endif
5a5649cb
JB
1001 --enable-bind-now \
1002 --enable-experimental-malloc \
1003 --enable-hidden-plt \
49db3d50 1004 --enable-kernel="%{min_kernel}" \
5a5649cb 1005 --enable-nss-crypt%{!?with_nss_crypt:=no} \
7361da6b 1006 --enable-obsolete-nsl \
558a1d88 1007 --enable-obsolete-rpc \
5a5649cb 1008 --enable-profile \
87cbe0ad 1009 --enable-stack-protector=strong \
5145b9c7 1010 --enable-stackguard-randomization \
4928f174 1011 --enable-static-pie \
87cbe0ad 1012 --enable-tunables \
5a5649cb
JB
1013 --with-binutils=$(pwd)/alt-tools \
1014 --with-bugurl=http://bugs.pld-linux.org/ \
1015 --with-headers=%{_includedir} \
1016 --with-selinux%{!?with_selinux:=no} \
1017 --with-tls
55463a82 1018
cd44d11e
JB
1019# hack: libgd (used by memusagestat) requires librt, which is built after malloc/ subdir.
1020# First build all without libgd-dependent components (LIBGD=no)...
1021%{__make} \
1022 AWK="gawk" \
1023 complocaledir=%{_prefix}/lib/locale \
1024 sLIBdir=%{_libdir} \
1025 LIBGD=no
1026
1027# ...then, when librt is ready, rerun make to build memusagestat
f3cc1845 1028%{__make} \
87a4ec26 1029 AWK="gawk" \
954aec4b 1030 complocaledir=%{_prefix}/lib/locale \
87a4ec26 1031 sLIBdir=%{_libdir}
f3cc1845 1032
5145b9c7 1033cd ..
cfac0d25 1034
e81552c8
AM
1035%if %{with tests}
1036env LANGUAGE=C LC_ALL=C \
76188843 1037%{__make} -j1 -C builddir tests
e81552c8 1038%endif
adfd3b3d 1039
cf408212
ER
1040%if %{without cross}
1041CC="%{__cc}"
35c7912e
ER
1042CC=${CC#*ccache }
1043CC=${CC#%{_libdir}/ccache/}
1044diet ${CC} %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
f70abfbb 1045%endif
b6bedda4 1046
d90a3b13 1047%install
1048rm -rf $RPM_BUILD_ROOT
4e3bda50 1049install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,default,logrotate.d} \
7bd184c8 1050 $RPM_BUILD_ROOT{%{_mandir},/var/log,/var/{lib,run}/nscd} \
4fa784f5 1051 $RPM_BUILD_ROOT{/var/cache/ldconfig,%{systemdtmpfilesdir}}
f8865a58 1052
e2a5184e 1053cd builddir
5240d049 1054env LANGUAGE=C LC_ALL=C \
1739e791 1055%{__make} install \
bab19d4a 1056 install_root=$RPM_BUILD_ROOT \
954aec4b 1057 complocaledir=%{_prefix}/lib/locale \
bab19d4a 1058 infodir=%{_infodir} \
1059 mandir=%{_mandir}
f8865a58 1060
0a85848c 1061%if %{with localedb}
5240d049 1062env LANGUAGE=C LC_ALL=C \
8ab3a6c9 1063%{__make} localedata/install-locales \
954aec4b 1064 complocaledir=%{_prefix}/lib/locale \
bab19d4a 1065 install_root=$RPM_BUILD_ROOT
d6e3a99e
JK
1066%else
1067install -d $RPM_BUILD_ROOT%{_prefix}/lib/locale
0a85848c 1068%endif
d90a3b13 1069
5240d049
TP
1070PICFILES="libc_pic.a libc.map
1071 math/libm_pic.a libm.map
1072 resolv/libresolv_pic.a"
71a76fad 1073
6dd5516a
ER
1074install -p $PICFILES $RPM_BUILD_ROOT%{_libdir}
1075install -p elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
1076install -p elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
17a1a2af
ER
1077
1078# Include %{_libdir}/gconv/gconv-modules.cache
aca0117e 1079$(pwd)/elf/ld.so --library-path $(pwd) ./iconv/iconvconfig --nostdlib --prefix=$RPM_BUILD_ROOT %{_libdir}/gconv -o $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
cfac0d25 1080cd ..
8ab3a6c9 1081
cf408212 1082%if %{without cross}
6dd5516a 1083install -p glibc-postinst $RPM_BUILD_ROOT/sbin
f70abfbb 1084%endif
b6bedda4 1085
4c3586c2 1086%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
c4fea372 1087mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
77d92b8b 1088
277c4a9d 1089# make symlinks across top-level directories absolute
364cdb7c 1090for l in BrokenLocale anl crypt dl \
ba143d99 1091%ifarch %{x8664} x32
a90add74
AM
1092 mvec \
1093%endif
1094 nsl resolv rt thread_db util; do
b96231b6 1095 test -L $RPM_BUILD_ROOT%{_libdir}/lib${l}.so || exit 1
5a5649cb 1096 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
b96231b6 1097 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${l}.so.*) $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
277c4a9d
JB
1098done
1099
b96231b6 1100# linking nss modules directly is not supported
5a5649cb 1101%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
b96231b6 1102
6dd5516a
ER
1103install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1104cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
1105cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
1106cp -a nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
1107cp -a posix/gai.conf $RPM_BUILD_ROOT%{_sysconfdir}
1108cp -a nis/nss $RPM_BUILD_ROOT/etc/default/nss
bebe21cc 1109sed -e 's#\([ \t]\)db\([ \t]\)#\1#g' nss/nsswitch.conf > $RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.conf
16c630b5 1110
7bd184c8 1111xz -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
aca59b69 1112: > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
60d03a9f 1113install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
5145b9c7 1114echo 'include ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
aca59b69 1115: > $RPM_BUILD_ROOT/var/cache/ldconfig/aux-cache
1116
bc9012d1
ER
1117# doesn't fit with out tzdata concept and configure.in is stupid assuming bash
1118# is first posix compatible shell making this script depend on bash.
5a5649cb
JB
1119%{__rm} $RPM_BUILD_ROOT%{_bindir}/tzselect
1120%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tzselect.8*
1121%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/tzselect.8*
bc9012d1 1122
aca59b69 1123: > $RPM_BUILD_ROOT/var/log/nscd
1124: > $RPM_BUILD_ROOT/var/lib/nscd/passwd
1125: > $RPM_BUILD_ROOT/var/lib/nscd/group
1126: > $RPM_BUILD_ROOT/var/lib/nscd/hosts
236a5027 1127
03b5396e 1128cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/nscd.conf
3b9b60ff 1129
cfac0d25
JB
1130rm -rf documentation
1131install -d documentation
16c630b5 1132
4928f174 1133for f in DESIGN-systemtap-probes.txt TODO{,-kernel,-testing}; do
6dd5516a 1134 cp -af nptl/$f documentation/$f.nptl
3cc9adfc 1135done
6dd5516a 1136cp -af crypt/README.ufc-crypt ChangeLog* documentation
d90a3b13 1137
503c0862 1138# Collect locale files and mark them with %%lang()
cfac0d25 1139echo '%defattr(644,root,root,755)' > glibc.lang
4fa784f5 1140for i in $RPM_BUILD_ROOT%{_localedir}/*; do
503c0862 1141 if [ -d $i ]; then
aba67afa
JB
1142 lang=$(basename $i)
1143 dir="${i#$RPM_BUILD_ROOT}"
cfac0d25 1144 echo "%lang($lang) $dir" >> glibc.lang
503c0862
JR
1145 fi
1146done
84dca6d3 1147
4b000c98 1148# NOTES:
429f21ad 1149# Languages not supported by glibc locales, but usable via $LANGUAGE:
1150# ang - Old English (gtk+, gnome)
73dbfadc 1151# en@shaw - English with Shavian alphabet (gnome)
a0bcd2f8 1152# la - Latin
429f21ad 1153# tlh - Klingon (bzflag)
1154#
84dca6d3 1155# To be added when they become supported by glibc:
085d921e
JB
1156# ace (iso-codes)
1157# ach (iso-codes, libreport, vlc)
1158# aln (libreport, vlc)
b5e27f9d 1159# bal (libosinfo, libreport, newt, pessulus)
085d921e 1160# bar (iso-codes)
8015969d 1161# cgg (vlc)
085d921e 1162# ch (iso-codes)
24a58f05 1163# co (FileZilla, libfilezilla, vlc)
8e6a6ab7 1164# es_419 (alpm - common "Spanish (Latin America)")
085d921e
JB
1165# frp (iso-codes, lxlauncher, mate, xfce)
1166# gn (iso-codes, gnome; gn_BR in gnome, maybe gn_PY)
6f084c6e 1167# guc (gtk-vnc)
8015969d
JB
1168# haw (iso-codes, stellarium)
1169# hrx (stellarium)
644847e2 1170# ie (xfce)
b5e27f9d 1171# ilo (kudzu, libosinfo, libreport)
085d921e
JB
1172# io (alacarte, gtk+2, gnome, iso-codes)
1173# jam (iso-codes)
1174# jv (avant-window-navigator, gmpc, kdesudo, mate)
085d921e 1175# ki (iso-codes)
777c9b6a 1176# kok@latin (inkscape)
8015969d 1177# kmr (vlc)
5a356604 1178# ku_IQ (mate)
085d921e 1179# kv (iso-codes)
40403fd2 1180# kw@kkcor, kw@uccor (libosinfo - currently empty) - add as supported variants when non-empty?
8015969d 1181# man (ccsm; incorrectly named md)
777c9b6a 1182# mni@beng[ali] (inkscape)
085d921e 1183# mo (iso-codes)
8015969d 1184# mus (bluez-gnome)
085d921e
JB
1185# na (iso-codes)
1186# nah (iso-codes, mate)
5a356604 1187# nqo (mate)
085d921e
JB
1188# nv (iso-codes)
1189# pi (iso-codes)
5a356604 1190# pms (deluge, mate-tweak)
777c9b6a 1191# sat@deva[nagari] (inkscape)
085d921e
JB
1192# sco (gnomad2, mate, picard, stellarium)
1193# son (gtkspell3, iso-codes)
42e8838f 1194# su (terminator)
8015969d
JB
1195# swg (sim)
1196# syr (iso-codes)
1197# tet (vlc)
40403fd2 1198# tw (libosinfo)
8015969d 1199# vec (mate-applet-indicator)
40403fd2 1200# wba (libosinfo)
84dca6d3 1201#
f8d57f3f
JB
1202# To be removed (after fixing packages still using it):
1203# sr@Latn (use sr@latin instead)
3e7420f7 1204# sr@ije (use sr@ijekavian instead)
a7515877 1205#
62733160
JB
1206# Short forms (omitted country code, used instead of long form) for ambiguous or unclear cases:
1207# aa=aa_ER
48fdf5d6 1208# ak=ak_GH
40403fd2 1209# anp=anp_IN
62733160 1210# ar=common? (AE, BH, DZ, EG, IQ, JO, KW, LB, LY, MA, OM, QA, SA, SD, SY, TN, YE)
67d9f7fa 1211# az=az_AZ
62733160 1212# bn=bn_BD
f3bbc3df 1213# bo=bo_CN? (or common for CN, IN?)
62733160 1214# ca=ca_ES
085d921e
JB
1215# ce=ce_RU
1216# chr=chr_US
62733160 1217# ckb=ckb_IQ
d3810057 1218# cv=cv_RU
62733160 1219# de=de_DE
783b475d 1220# en=common? (en_AU, en_CA, en_GB, en_NZ, en_US are used for particular variants)
62733160
JB
1221# eo=common
1222# es=es_ES
1223# eu=eu_ES
7b38eb5c 1224# fa=fa_IR
d7c950ea 1225# ff=ff_SN
62733160
JB
1226# fr=fr_FR
1227# fy=fy_NL
1228# gez=gez_ET (?)
1229# it=it_IT
f4a12a64 1230# kab=kab_DZ
777c9b6a
JB
1231# ks=ks_IN
1232# ks@devanagari=ks_IN@devanagari
8015969d 1233# ku=ku_TR
62733160 1234# li=li_NL
781fe839 1235# ln=ln_CD
43573da1 1236# lo=lo_LA
644847e2 1237# mjw=mjw_IN
62733160
JB
1238# nds=nds_DE
1239# nl=nl_NL
1240# om=om_ET
934648e1 1241# or=or_IN
62733160
JB
1242# pa=pa_IN
1243# pt=pt_PT
6ed15d9a 1244# quz=quz_PE
62733160 1245# ru=ru_RU
d3810057 1246# sd=sd_IN
777c9b6a 1247# sd@devanagari=sd_IN@devanagari
a18ccaaa 1248# shn=shn_MM
62733160
JB
1249# so=so_SO
1250# sr=sr_RS [cyrillic]
3e7420f7
JB
1251# sr@latin=sr_RS@latin
1252# sr@ijekavian=sr_BA@ijekavian
1253# sr@ijekavianlatin=sr_BA@ijekavianlatin
62733160
JB
1254# sv=sv_SE
1255# sw=sw_TZ (or common for KE, TZ, UG?)
cf955c04
JB
1256# ta=ta_IN
1257# te=te_IN
62733160 1258# ti=ti_ER (?)
f4a12a64 1259# tpi=tpi_PG
62733160
JB
1260# tr=tr_TR
1261# ur=ur_PK (?)
1262# zh: no short code used (use zh_CN, zh_HK, zh_SG[not included yet], zh_TW)
b4ec8e5c 1263#
84dca6d3 1264# Omitted here - already existing (with libc.mo):
1265# 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
1266# sv tr zh_CN zh_TW
b4ec8e5c 1267#
b92ad7a0
JB
1268for i in aa aa@saaho af ak am an ang anp ar ar_TN as ast az az_IR \
1269 be@latin be@tarask bem bg bho bn bn_IN bo br brx bs byn \
1270 ca@valencia ce chr ckb cmn crh csb cv cy de_AT de_CH doi dv dz \
1271 en en@boldquot en@quot en@shaw en_AU en_CA en_NZ en_US eo \
1272 es_AR es_CL es_CO es_CR es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY es_VE \
1273 et eu fa ff fil fo fr_BE fr_CA fr_CH fur fy ga gd gez gu gv \
1274 ha he hi hne ht hsb hy ia id ig ik is it_CH iu \
1275 ka kab kg kk kl km kn kok ks ks@devanagari ku kw ky la lb lg li ln lo lt lv \
644847e2 1276 mai mg mhr mi mjw mk ml mn mni mr ms mt my nds ne nl_BE nn nr nso oc om or \
b92ad7a0
JB
1277 pa pap ps pt ps quz rm ro \
1278 sa sat sc sd sd@devanagari se shn si sid sl so sq \
1279 sr sr@Latn sr@ije sr@ijekavian sr@ijekavianlatin sr@latin ss st sw szl \
1280 ta te tg th ti tig tk tl tlh tn tpi ts tt tt@iqtelif \
1281 ug uk ur uz uz@cyrillic ve vi wa wal wo xh yi yo zh_HK zu; do
4fa784f5
ER
1282 if [ ! -d $RPM_BUILD_ROOT%{_localedir}/$i/LC_MESSAGES ]; then
1283 install -d $RPM_BUILD_ROOT%{_localedir}/$i/LC_MESSAGES
aba67afa 1284 # use lang() tags with ll_CC@variant (stripping charset and @quot|@boldquot)
6dd5516a 1285 lang=$(echo $i | sed -e 's/@quot\>\|@boldquot\>//')
4fa784f5 1286 echo "%lang($lang) %{_localedir}/$i" >> glibc.lang
5b2b5619 1287 fi
1288done
503c0862 1289
a2e4eb0a 1290# LC_TIME category, used for localized date formats (at least by coreutils)
320e0a01 1291for i in af be bg ca cs da de el en eo es et eu fi fr ga gl hr hu ia id it ja kk ko lg lt \
952d3a0d 1292 ms nb nl pl pt pt_BR ro ru rw sk sl sr sv tr uk vi zh_CN zh_TW; do
4fa784f5
ER
1293 if [ ! -d $RPM_BUILD_ROOT%{_localedir}/$i ]; then
1294 echo "%lang($lang) %{_localedir}/$i" >> glibc.lang
a2e4eb0a 1295 fi
4fa784f5 1296 install -d $RPM_BUILD_ROOT%{_localedir}/$i/LC_TIME
a2e4eb0a
JB
1297done
1298
40430bed 1299# localedb-gen infrastructure
09df111e 1300install -p %{SOURCE6} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
03b5396e 1301cp -p localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
40430bed 1302
8ab3a6c9 1303# shutup check-files
06849217 1304%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.*
8bc00675 1305rm -f $RPM_BUILD_ROOT%{_infodir}/dir
88300fde 1306
57ef4505
JR
1307# stub for man page from man-pages package to make rpm consistency check happy
1308# don't package them here
7bd184c8 1309install -d $RPM_BUILD_ROOT%{_mandir}{,/ru,/es,/fr,/ja}/man2
57ef4505 1310:>$RPM_BUILD_ROOT%{_mandir}/man2/syslog.2
57ef4505
JR
1311:>$RPM_BUILD_ROOT%{_mandir}/es/man2/syslog.2
1312:>$RPM_BUILD_ROOT%{_mandir}/fr/man2/syslog.2
1313:>$RPM_BUILD_ROOT%{_mandir}/ja/man2/syslog.2
cb6a4019 1314:>$RPM_BUILD_ROOT%{_mandir}/ru/man2/syslog.2
57ef4505
JR
1315
1316# remove links to non existant translations
1317%{__rm} $RPM_BUILD_ROOT%{_mandir}/pl/man3/{alphasort,cfgetispeed,cfgetospeed,cfmakeraw,cfsetispeed,cfsetospeed,closelog,dn_comp,dn_expand,fscanf}.3
7bd184c8 1318%{__rm} $RPM_BUILD_ROOT%{_mandir}/tr/man3/{encrypt_r,setkey,setkey_r}.3
57ef4505 1319
ea870772
JB
1320%clean
1321rm -rf $RPM_BUILD_ROOT
1322
cf408212 1323%if %{without cross}
d326d834 1324%post -p /sbin/postshell
3a32e57b 1325/sbin/glibc-postinst /%{_lib}/%{_host_cpu} /%{_lib}/tls
4139e845 1326-/sbin/ldconfig
88300fde 1327
4139e845
JK
1328%postun -p /sbin/postshell
1329-/sbin/ldconfig
d90a3b13 1330
4139e845
JK
1331%post ld -p /sbin/postshell
1332-/sbin/ldconfig
1333
1334%postun ld -p /sbin/postshell
1335-/sbin/ldconfig
1336
1337%triggerpostun ld -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
60d03a9f
JB
1338-/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1339-/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
f70abfbb 1340%endif
60d03a9f 1341
c305d730
ER
1342%triggerin -- cronie,vixie-cron,hc-cron,fcron,mcron
1343# restart crond if glibc is upgraded, LP#721338
1344if [ "$1" != 1 ]; then
1345 %service -q crond restart
1346fi
1347
11d95e41
ER
1348%triggerin -- apache-base
1349if [ "$1" != 1 ]; then
1350 %service -q httpd restart
1351fi
1352
119e8d05
JK
1353%ifarch %{x8664}
1354# when upgrading from glibc < 6:2.19-3 copy locale-archive
1355# from /usr/lib64/locale to /usr/lib/locale
1356# but only if the latter doesn't already exist
1357%triggerpostun -p /sbin/postshell -- %{name} < 6:2.19-3
1358-/bin/cp -an %{_libdir}/locale/locale-archive %{_prefix}/lib/locale/locale-archive
1359%endif
1360
2eac239d
ER
1361%post libcrypt -p /sbin/ldconfig
1362%postun libcrypt -p /sbin/ldconfig
1363
5240d049 1364%post memusage -p /sbin/ldconfig
5145b9c7 1365%postun memusage -p /sbin/ldconfig
05486726 1366
c7640575 1367%post -n localedb-src
c73a611f
ER
1368SUPPORTED_LOCALES=
1369[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
1370[ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
1371if [ "$SUPPORTED_LOCALES" ]; then
1372 localedb-gen || :
1373fi
4fdef2e6 1374
7ccce023 1375%post devel-doc -p /sbin/postshell
bd37152b 1376-/usr/sbin/fix-info-dir -c %{_infodir}
d90a3b13 1377
7ccce023 1378%postun devel-doc -p /sbin/postshell
bd37152b 1379-/usr/sbin/fix-info-dir -c %{_infodir}
d90a3b13 1380
da7cc665 1381%pre -n nscd
e9351fa5 1382%groupadd -P nscd -g 144 -r nscd
b7ce3475 1383%useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "Name Service Cache Daemon" -g nscd nscd
da7cc665 1384
8912a874 1385%post -n nscd
6dd5516a
ER
1386if [ ! -f /var/log/nscd ]; then
1387 umask 027
1388 touch /var/log/nscd
1389 chown root:root /var/log/nscd
1390 chmod 640 /var/log/nscd
1391fi
19cc9468 1392/sbin/chkconfig --add nscd
6dd5516a 1393%service nscd restart "Name Service Cache Daemon"
8912a874 1394
1395%preun -n nscd
19cc9468 1396if [ "$1" = "0" ]; then
9b9eac8d 1397 %service nscd stop
19cc9468 1398 /sbin/chkconfig --del nscd
1399fi
8912a874 1400
da7cc665
JB
1401%postun -n nscd
1402if [ "$1" = "0" ]; then
1403 %userremove nscd
1404 %groupremove nscd
1405fi
1406
2eac239d 1407%files -f %{name}.lang
d22b4284 1408%defattr(644,root,root,755)
4928f174 1409%doc README NEWS
175873de 1410%if %{without cross}
b6bedda4 1411%attr(755,root,root) /sbin/glibc-postinst
f70abfbb 1412%endif
6d1ad2d5 1413# wildly arch-dependent ld.so SONAME symlink
ce3b1100 1414%attr(755,root,root) /%{_lib}/libBrokenLocale-%{core_version}.so
6d1ad2d5 1415%ifarch alpha
d3708d98 1416%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1.1
6d1ad2d5 1417%else
d3708d98 1418%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1
6d1ad2d5
JB
1419%endif
1420%attr(755,root,root) /%{_lib}/libSegFault.so
ce3b1100 1421%attr(755,root,root) /%{_lib}/libanl-%{core_version}.so
6d1ad2d5 1422%attr(755,root,root) /%{_lib}/libanl.so.1
ce3b1100 1423%attr(755,root,root) /%{_lib}/libc-%{core_version}.so
6d1ad2d5
JB
1424%ifarch alpha ia64
1425%attr(755,root,root) /%{_lib}/libc.so.6.1
1426%else
1427%attr(755,root,root) /%{_lib}/libc.so.6
1428%endif
ce3b1100 1429%attr(755,root,root) /%{_lib}/libdl-%{core_version}.so
6d1ad2d5
JB
1430%ifarch alpha
1431%attr(755,root,root) /%{_lib}/libdl.so.2.1
1432%else
1433%attr(755,root,root) /%{_lib}/libdl.so.2
1434%endif
ce3b1100 1435%attr(755,root,root) /%{_lib}/libm-%{core_version}.so
6d1ad2d5
JB
1436%ifarch alpha ia64
1437%attr(755,root,root) /%{_lib}/libm.so.6.1
1438%else
1439%attr(755,root,root) /%{_lib}/libm.so.6
1440%endif
ba143d99 1441%ifarch %{x8664} x32
ed35cb32
AM
1442%attr(755,root,root) /%{_lib}/libmvec-%{core_version}.so
1443%attr(755,root,root) /%{_lib}/libmvec.so.1
a90add74 1444%endif
ce3b1100 1445%attr(755,root,root) /%{_lib}/libnsl-%{core_version}.so
6d1ad2d5
JB
1446%ifarch alpha
1447%attr(755,root,root) /%{_lib}/libnsl.so.1.1
1448%else
1449%attr(755,root,root) /%{_lib}/libnsl.so.1
1450%endif
ce3b1100 1451%attr(755,root,root) /%{_lib}/libpthread-%{core_version}.so
6d1ad2d5 1452%attr(755,root,root) /%{_lib}/libpthread.so.0
ce3b1100 1453%attr(755,root,root) /%{_lib}/libresolv-%{core_version}.so
6d1ad2d5
JB
1454%ifarch alpha
1455%attr(755,root,root) /%{_lib}/libresolv.so.2.1
1456%else
1457%attr(755,root,root) /%{_lib}/libresolv.so.2
1458%endif
ce3b1100 1459%attr(755,root,root) /%{_lib}/librt-%{core_version}.so
6d1ad2d5
JB
1460%attr(755,root,root) /%{_lib}/librt.so.1
1461%attr(755,root,root) /%{_lib}/libthread_db-1.0.so
1462%attr(755,root,root) /%{_lib}/libthread_db.so.1
ce3b1100 1463%attr(755,root,root) /%{_lib}/libutil-%{core_version}.so
6d1ad2d5
JB
1464%ifarch alpha
1465%attr(755,root,root) /%{_lib}/libutil.so.1.1
1466%else
1467%attr(755,root,root) /%{_lib}/libutil.so.1
1468%endif
d6e3a99e 1469%dir %{_prefix}/lib/locale
c4fea372 1470
0b0bde94
JK
1471#%files -n nss_dns
1472%defattr(644,root,root,755)
ce3b1100 1473%attr(755,root,root) /%{_lib}/libnss_dns-%{core_version}.so
6d1ad2d5 1474%attr(755,root,root) /%{_lib}/libnss_dns.so.2
0b0bde94
JK
1475
1476#%files -n nss_files
1477%defattr(644,root,root,755)
ce3b1100 1478%attr(755,root,root) /%{_lib}/libnss_files-%{core_version}.so
6d1ad2d5 1479%attr(755,root,root) /%{_lib}/libnss_files.so.2
0b0bde94 1480
c4fea372 1481%defattr(644,root,root,755)
236a5027 1482
f307cfc5 1483%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
87d5a0d2 1484%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
e8a20a65 1485%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/nss
87d5a0d2 1486
4206408a 1487%config %{_sysconfdir}/rpc
c37d4a8e 1488
fea833d1 1489%attr(755,root,root) /sbin/sln
72549d49 1490%attr(755,root,root) %{_bindir}/getconf
ba697d79 1491%attr(755,root,root) %{_bindir}/getent
3abcf615 1492%attr(755,root,root) %{_bindir}/iconv
ba697d79 1493%attr(755,root,root) %{_bindir}/locale
ba697d79 1494%attr(755,root,root) %{_bindir}/rpcgen
bab19d4a 1495%attr(755,root,root) %{_sbindir}/zdump
1496%attr(755,root,root) %{_sbindir}/zic
236a5027 1497
72549d49
JB
1498%dir %{_libexecdir}/getconf
1499%attr(755,root,root) %{_libexecdir}/getconf/*
1500
4fa784f5
ER
1501%dir %{_localedir}
1502%{_localedir}/locale.alias
236a5027 1503
72549d49 1504%{_mandir}/man1/getconf.1*
4377d843 1505%{_mandir}/man1/getent.1*
fa0f5e25 1506%{_mandir}/man1/iconv.1*
fa0f5e25
JB
1507%{_mandir}/man1/locale.1*
1508%{_mandir}/man1/rpcgen.1*
7bd184c8 1509%{_mandir}/man5/gai.conf.5*
fa0f5e25 1510%{_mandir}/man5/locale.5*
7bd184c8 1511%{_mandir}/man5/nss.5*
fa0f5e25 1512%{_mandir}/man5/nsswitch.conf.5*
7bd184c8
JB
1513%{_mandir}/man5/repertoiremap.5*
1514%{_mandir}/man5/rpc.5*
fa0f5e25 1515%{_mandir}/man5/tzfile.5*
7bd184c8 1516%{_mandir}/man7/armscii-8.7*
da89b000
JB
1517%{_mandir}/man7/ascii.7*
1518%{_mandir}/man7/charsets.7*
7bd184c8
JB
1519%{_mandir}/man7/cp1251.7*
1520%{_mandir}/man7/cp1252.7*
da89b000
JB
1521%{_mandir}/man7/iso-8859-*.7*
1522%{_mandir}/man7/iso_8859-*.7*
1523%{_mandir}/man7/iso_8859_*.7*
7bd184c8 1524%{_mandir}/man7/koi8-*.7*
da89b000
JB
1525%{_mandir}/man7/latin*.7*
1526%{_mandir}/man7/locale.7*
7bd184c8 1527%{_mandir}/man7/tis-620.7*
da89b000
JB
1528%{_mandir}/man7/unicode.7*
1529%{_mandir}/man7/utf-8.7*
1530%{_mandir}/man7/utf8.7*
fa0f5e25 1531%{_mandir}/man8/sln.8*
fa0f5e25
JB
1532%{_mandir}/man8/zdump.8*
1533%{_mandir}/man8/zic.8*
7bd184c8
JB
1534%lang(cs) %{_mandir}/cs/man7/ascii.7*
1535%lang(cs) %{_mandir}/cs/man7/locale.7*
1536%lang(cs) %{_mandir}/cs/man7/unicode.7*
1537%lang(cs) %{_mandir}/cs/man7/utf-8.7*
1538%lang(cs) %{_mandir}/cs/man7/utf8.7*
1539%lang(de) %{_mandir}/de/man5/rpc.5*
fa0f5e25 1540%lang(de) %{_mandir}/de/man5/tzfile.5*
7bd184c8
JB
1541%lang(de) %{_mandir}/de/man7/ascii.7*
1542%lang(de) %{_mandir}/de/man7/iso-8859-*.7*
1543%lang(de) %{_mandir}/de/man7/iso_8859-*.7*
1544%lang(de) %{_mandir}/de/man7/iso_8859_*.7*
1545%lang(de) %{_mandir}/de/man7/latin*.7*
1546%lang(de) %{_mandir}/de/man7/locale.7*
1547%lang(de) %{_mandir}/de/man7/unicode.7*
1548%lang(de) %{_mandir}/de/man7/utf-8.7*
1549%lang(de) %{_mandir}/de/man7/utf8.7*
fa0f5e25
JB
1550%lang(es) %{_mandir}/es/man5/locale.5*
1551%lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
7bd184c8 1552%lang(es) %{_mandir}/es/man5/rpc.5*
fa0f5e25 1553%lang(es) %{_mandir}/es/man5/tzfile.5*
7bd184c8
JB
1554%lang(es) %{_mandir}/es/man7/ascii.7*
1555%lang(es) %{_mandir}/es/man7/charsets.7*
1556%lang(es) %{_mandir}/es/man7/iso-8859-*.7*
1557%lang(es) %{_mandir}/es/man7/iso_8859-*.7*
1558%lang(es) %{_mandir}/es/man7/iso_8859_*.7*
1559%lang(es) %{_mandir}/es/man7/latin*.7*
1560%lang(es) %{_mandir}/es/man7/locale.7*
1561%lang(es) %{_mandir}/es/man7/unicode.7*
1562%lang(es) %{_mandir}/es/man7/utf-8.7*
1563%lang(es) %{_mandir}/es/man7/utf8.7*
fa0f5e25
JB
1564%lang(es) %{_mandir}/es/man8/zdump.8*
1565%lang(es) %{_mandir}/es/man8/zic.8*
cb6a4019
JB
1566%lang(fr) %{_mandir}/fr/man1/getent.1*
1567%lang(fr) %{_mandir}/fr/man1/locale.1*
1568%lang(fr) %{_mandir}/fr/man5/gai.conf.5*
fa0f5e25 1569%lang(fr) %{_mandir}/fr/man5/locale.5*
cb6a4019 1570%lang(fr) %{_mandir}/fr/man5/nss.5*
fa0f5e25 1571%lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
7bd184c8 1572%lang(fr) %{_mandir}/fr/man5/rpc.5*
fa0f5e25 1573%lang(fr) %{_mandir}/fr/man5/tzfile.5*
cb6a4019 1574%lang(fr) %{_mandir}/fr/man7/armscii-8.7*
7bd184c8
JB
1575%lang(fr) %{_mandir}/fr/man7/ascii.7*
1576%lang(fr) %{_mandir}/fr/man7/charsets.7*
cb6a4019 1577%lang(fr) %{_mandir}/fr/man7/cp1251.7*
7bd184c8
JB
1578%lang(fr) %{_mandir}/fr/man7/iso-8859-*.7*
1579%lang(fr) %{_mandir}/fr/man7/iso_8859-*.7*
1580%lang(fr) %{_mandir}/fr/man7/iso_8859_*.7*
1581%lang(fr) %{_mandir}/fr/man7/koi8-r.7*
cb6a4019 1582%lang(fr) %{_mandir}/fr/man7/koi8-u.7*
7bd184c8
JB
1583%lang(fr) %{_mandir}/fr/man7/latin*.7*
1584%lang(fr) %{_mandir}/fr/man7/locale.7*
1585%lang(fr) %{_mandir}/fr/man7/unicode.7*
1586%lang(fr) %{_mandir}/fr/man7/utf-8.7*
1587%lang(fr) %{_mandir}/fr/man7/utf8.7*
cb6a4019 1588%lang(fr) %{_mandir}/fr/man8/sln.8*
fa0f5e25
JB
1589%lang(fr) %{_mandir}/fr/man8/zdump.8*
1590%lang(fr) %{_mandir}/fr/man8/zic.8*
7bd184c8
JB
1591%lang(hu) %{_mandir}/hu/man7/ascii.7*
1592%lang(hu) %{_mandir}/hu/man7/iso-8859-*.7*
1593%lang(hu) %{_mandir}/hu/man7/iso_8859-*.7*
1594%lang(hu) %{_mandir}/hu/man7/iso_8859_*.7*
1595%lang(hu) %{_mandir}/hu/man7/latin*.7*
1596%lang(hu) %{_mandir}/hu/man7/locale.7*
1597%lang(hu) %{_mandir}/hu/man7/utf-8.7*
1598%lang(hu) %{_mandir}/hu/man7/utf8.7*
fa0f5e25
JB
1599%lang(hu) %{_mandir}/hu/man8/zdump.8*
1600%lang(it) %{_mandir}/it/man5/locale.5*
7bd184c8
JB
1601%lang(it) %{_mandir}/it/man7/ascii.7*
1602%lang(it) %{_mandir}/it/man7/charsets.7*
1603%lang(it) %{_mandir}/it/man7/iso-8859-*.7*
1604%lang(it) %{_mandir}/it/man7/iso_8859-*.7*
1605%lang(it) %{_mandir}/it/man7/iso_8859_*.7*
1606%lang(it) %{_mandir}/it/man7/latin*.7*
1607%lang(it) %{_mandir}/it/man7/locale.7*
1608%lang(it) %{_mandir}/it/man7/unicode.7*
1609%lang(it) %{_mandir}/it/man7/utf-8.7*
1610%lang(it) %{_mandir}/it/man7/utf8.7*
fa0f5e25 1611%lang(it) %{_mandir}/it/man8/zdump.8*
7bd184c8
JB
1612%lang(ja) %{_mandir}/ja/man1/getent.1*
1613%lang(ja) %{_mandir}/ja/man1/iconv.1*
1614%lang(ja) %{_mandir}/ja/man1/locale.1*
fa0f5e25 1615%lang(ja) %{_mandir}/ja/man1/rpcgen.1*
7bd184c8 1616%lang(ja) %{_mandir}/ja/man5/gai.conf.5*
fa0f5e25 1617%lang(ja) %{_mandir}/ja/man5/locale.5*
7bd184c8 1618%lang(ja) %{_mandir}/ja/man5/nss.5*
fa0f5e25 1619%lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
7bd184c8
JB
1620%lang(ja) %{_mandir}/ja/man5/repertoiremap.5*
1621%lang(ja) %{_mandir}/ja/man5/rpc.5*
fa0f5e25 1622%lang(ja) %{_mandir}/ja/man5/tzfile.5*
7bd184c8
JB
1623%lang(ja) %{_mandir}/ja/man7/armscii-8.7*
1624%lang(ja) %{_mandir}/ja/man7/ascii.7*
1625%lang(ja) %{_mandir}/ja/man7/charsets.7*
1626%lang(ja) %{_mandir}/ja/man7/cp1251.7*
1627%lang(ja) %{_mandir}/ja/man7/cp1252.7*
1628%lang(ja) %{_mandir}/ja/man7/iso-8859-*.7*
1629%lang(ja) %{_mandir}/ja/man7/iso_8859-*.7*
1630%lang(ja) %{_mandir}/ja/man7/iso_8859_*.7*
1631%lang(ja) %{_mandir}/ja/man7/koi8-*.7*
1632%lang(ja) %{_mandir}/ja/man7/latin*.7*
1633%lang(ja) %{_mandir}/ja/man7/locale.7*
1634%lang(ja) %{_mandir}/ja/man7/tis-620.7*
1635%lang(ja) %{_mandir}/ja/man7/unicode.7*
1636%lang(ja) %{_mandir}/ja/man7/utf-8.7*
1637%lang(ja) %{_mandir}/ja/man7/utf8.7*
fa0f5e25 1638%lang(ja) %{_mandir}/ja/man8/sln.8*
fa0f5e25
JB
1639%lang(ja) %{_mandir}/ja/man8/zdump.8*
1640%lang(ja) %{_mandir}/ja/man8/zic.8*
1641%lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
7bd184c8 1642%lang(ko) %{_mandir}/ko/man5/rpc.5*
fa0f5e25 1643%lang(ko) %{_mandir}/ko/man5/tzfile.5*
7bd184c8
JB
1644%lang(ko) %{_mandir}/ko/man7/ascii.7*
1645%lang(ko) %{_mandir}/ko/man7/iso-8859-*.7*
1646%lang(ko) %{_mandir}/ko/man7/iso_8859-*.7*
1647%lang(ko) %{_mandir}/ko/man7/iso_8859_*.7*
1648%lang(ko) %{_mandir}/ko/man7/latin*.7*
fa0f5e25 1649%lang(ko) %{_mandir}/ko/man8/zdump.8*
fa0f5e25 1650%lang(pl) %{_mandir}/pl/man5/locale.5*
7bd184c8
JB
1651%lang(pl) %{_mandir}/pl/man5/rpc.5*
1652%lang(pl) %{_mandir}/pl/man7/ascii.7*
1653%lang(pl) %{_mandir}/pl/man7/iso-8859-*.7*
1654%lang(pl) %{_mandir}/pl/man7/iso_8859-*.7*
1655%lang(pl) %{_mandir}/pl/man7/iso_8859_*.7*
1656%lang(pl) %{_mandir}/pl/man7/koi8-*.7*
1657%lang(pl) %{_mandir}/pl/man7/latin*.7*
1658%lang(pl) %{_mandir}/pl/man7/locale.7*
1659%lang(pl) %{_mandir}/pl/man7/unicode.7*
1660%lang(pl) %{_mandir}/pl/man7/utf-8.7*
1661%lang(pl) %{_mandir}/pl/man7/utf8.7*
fa0f5e25
JB
1662%lang(pt) %{_mandir}/pt/man5/locale.5*
1663%lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
7bd184c8 1664%lang(pt) %{_mandir}/pt/man5/rpc.5*
fa0f5e25 1665%lang(pt) %{_mandir}/pt/man5/tzfile.5*
7bd184c8
JB
1666%lang(pt) %{_mandir}/pt/man7/ascii.7*
1667%lang(pt) %{_mandir}/pt/man7/charsets.7*
1668%lang(pt) %{_mandir}/pt/man7/iso-8859-*.7*
1669%lang(pt) %{_mandir}/pt/man7/iso_8859-*.7*
1670%lang(pt) %{_mandir}/pt/man7/iso_8859_*.7*
1671%lang(pt) %{_mandir}/pt/man7/koi8-*.7*
1672%lang(pt) %{_mandir}/pt/man7/latin*.7*
1673%lang(pt) %{_mandir}/pt/man7/locale.7*
1674%lang(pt) %{_mandir}/pt/man7/unicode.7*
1675%lang(pt) %{_mandir}/pt/man7/utf-8.7*
1676%lang(pt) %{_mandir}/pt/man7/utf8.7*
fa0f5e25
JB
1677%lang(pt) %{_mandir}/pt/man8/zdump.8*
1678%lang(pt) %{_mandir}/pt/man8/zic.8*
49ead7a0
JB
1679%lang(ru) %{_mandir}/ru/man1/getent.1*
1680%lang(ru) %{_mandir}/ru/man1/iconv.1*
49ead7a0
JB
1681%lang(ru) %{_mandir}/ru/man1/locale.1*
1682%lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1683%lang(ru) %{_mandir}/ru/man5/locale.5*
fa0f5e25 1684%lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
7bd184c8 1685%lang(ru) %{_mandir}/ru/man5/rpc.5*
fa0f5e25 1686%lang(ru) %{_mandir}/ru/man5/tzfile.5*
7bd184c8
JB
1687%lang(ru) %{_mandir}/ru/man7/ascii.7*
1688%lang(ru) %{_mandir}/ru/man7/charsets.7*
1689%lang(ru) %{_mandir}/ru/man7/iso-8859-*.7*
1690%lang(ru) %{_mandir}/ru/man7/iso_8859-*.7*
1691%lang(ru) %{_mandir}/ru/man7/iso_8859_*.7*
1692%lang(ru) %{_mandir}/ru/man7/koi8-*.7*
1693%lang(ru) %{_mandir}/ru/man7/latin*.7*
1694%lang(ru) %{_mandir}/ru/man7/locale.7*
1695%lang(ru) %{_mandir}/ru/man7/unicode.7*
1696%lang(ru) %{_mandir}/ru/man7/utf-8.7*
1697%lang(ru) %{_mandir}/ru/man7/utf8.7*
fa0f5e25
JB
1698%lang(ru) %{_mandir}/ru/man8/zdump.8*
1699%lang(ru) %{_mandir}/ru/man8/zic.8*
49ead7a0 1700%lang(tr) %{_mandir}/tr/man1/iconv.1*
7bd184c8 1701%lang(uk) %{_mandir}/uk/man5/rpc.5*
fa0f5e25 1702%lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
fa0f5e25 1703%lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
7bd184c8 1704%lang(zh_CN) %{_mandir}/zh_CN/man5/rpc.5*
fa0f5e25 1705%lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
7bd184c8
JB
1706%lang(zh_CN) %{_mandir}/zh_CN/man7/ascii.7*
1707%lang(zh_CN) %{_mandir}/zh_CN/man7/charsets.7*
1708%lang(zh_CN) %{_mandir}/zh_CN/man7/locale.7*
1709%lang(zh_CN) %{_mandir}/zh_CN/man7/unicode.7*
1710%lang(zh_CN) %{_mandir}/zh_CN/man7/utf-8.7*
1711%lang(zh_CN) %{_mandir}/zh_CN/man7/utf8.7*
fa0f5e25
JB
1712%lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1713%lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
cb6a4019
JB
1714%lang(zh_TW) %{_mandir}/zh_TW/man1/iconv.1*
1715%lang(zh_TW) %{_mandir}/zh_TW/man5/locale.5*
1716%lang(zh_TW) %{_mandir}/zh_TW/man5/rpc.5*
1717%lang(zh_TW) %{_mandir}/zh_TW/man5/tzfile.5*
1718%lang(zh_TW) %{_mandir}/zh_TW/man7/ascii.7*
1719%lang(zh_TW) %{_mandir}/zh_TW/man7/charsets.7*
1720%lang(zh_TW) %{_mandir}/zh_TW/man7/locale.7*
1721%lang(zh_TW) %{_mandir}/zh_TW/man7/unicode.7*
1722%lang(zh_TW) %{_mandir}/zh_TW/man7/utf-8.7*
1723%lang(zh_TW) %{_mandir}/zh_TW/man7/utf8.7*
1724%lang(zh_TW) %{_mandir}/zh_TW/man8/zdump.8*
1725%lang(zh_TW) %{_mandir}/zh_TW/man8/zic.8*
4206408a 1726
cbf1c4bb 1727%files misc
2eac239d
ER
1728%defattr(644,root,root,755)
1729%attr(755,root,root) %{_bindir}/catchsegv
1730%attr(755,root,root) %{_bindir}/ldd
63820e4e 1731%attr(755,root,root) %{_bindir}/pldd
c2e03274
AM
1732%ifarch %{ix86} m68k sparc sparcv9
1733%attr(755,root,root) %{_bindir}/lddlibc4
1734%endif
af53f596
ER
1735%attr(755,root,root) %{_bindir}/sotruss
1736%dir %{_libdir}/audit
1737%attr(755,root,root) %{_libdir}/audit/sotruss-lib.so
1738
2eac239d
ER
1739%{_mandir}/man1/catchsegv.1*
1740%{_mandir}/man1/ldd.1*
7bd184c8
JB
1741%{_mandir}/man1/pldd.1*
1742%lang(cs) %{_mandir}/cs/man1/ldd.1*
2eac239d 1743%lang(es) %{_mandir}/es/man1/ldd.1*
2eac239d
ER
1744%lang(fi) %{_mandir}/fi/man1/ldd.1*
1745%lang(fr) %{_mandir}/fr/man1/ldd.1*
2eac239d 1746%lang(hu) %{_mandir}/hu/man1/ldd.1*
7bd184c8 1747%lang(it) %{_mandir}/it/man1/ldd.1*
2eac239d 1748%lang(ja) %{_mandir}/ja/man1/ldd.1*
7bd184c8 1749%lang(ja) %{_mandir}/ja/man1/pldd.1*
2eac239d 1750%lang(ko) %{_mandir}/ko/man1/ldd.1*
2eac239d 1751%lang(pl) %{_mandir}/pl/man1/ldd.1*
2eac239d 1752%lang(ru) %{_mandir}/ru/man1/ldd.1*
2eac239d
ER
1753%lang(tr) %{_mandir}/tr/man1/ldd.1*
1754%lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
cb6a4019 1755%lang(zh_TW) %{_mandir}/zh_TW/man1/ldd.1*
2eac239d
ER
1756
1757%files libcrypt
1758%defattr(644,root,root,755)
ce3b1100 1759%attr(755,root,root) /%{_lib}/libcrypt-%{core_version}.so
2eac239d 1760%ifarch alpha
2f715077 1761%attr(755,root,root) %ghost /%{_lib}/libcrypt.so.1.1
2eac239d 1762%else
2f715077 1763%attr(755,root,root) %ghost /%{_lib}/libcrypt.so.1
2eac239d
ER
1764%endif
1765
4139e845 1766%files ld
2eac239d
ER
1767%defattr(644,root,root,755)
1768%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
1769%dir %{_sysconfdir}/ld.so.conf.d
1770%ghost %{_sysconfdir}/ld.so.cache
4139e845
JK
1771# TODO: package ldconfig symlinks as %ghost
1772%attr(755,root,root) /%{_lib}/ld-%{core_version}.so
1773%ifarch %{ix86} sparc sparcv9 sparc64 alpha sh
1774%attr(755,root,root) /%{_lib}/ld-linux.so.2
1775%endif
1776%ifarch ia64
1777%attr(755,root,root) /%{_lib}/ld-linux-ia64.so.2
1778%endif
1779%ifarch %{x8664}
1780%attr(755,root,root) /%{_lib}/ld-linux-x86-64.so.2
1781%endif
1782%ifarch x32
1783%attr(755,root,root) /%{_lib}/ld-linux-x32.so.2
1784%endif
1785%ifarch ppc64 s390x
1786%attr(755,root,root) /%{_lib}/ld64.so.1
1787%endif
1788%ifnarch %{ix86} sparc sparcv9 sparc64 alpha sh ia64 %{x8664} x32 ppc64 s390x %{arm}
1789%attr(755,root,root) /%{_lib}/ld.so.1
1790%endif
2eac239d 1791%attr(755,root,root) /sbin/ldconfig
4139e845
JK
1792%{_mandir}/man8/ld-linux.8*
1793%{_mandir}/man8/ld-linux.so.8*
1794%{_mandir}/man8/ld.so.8*
2eac239d 1795%{_mandir}/man8/ldconfig.8*
4139e845
JK
1796%lang(es) %{_mandir}/es/man8/ld-linux.8*
1797%lang(es) %{_mandir}/es/man8/ld-linux.so.8*
1798%lang(es) %{_mandir}/es/man8/ld.so.8*
2eac239d 1799%lang(es) %{_mandir}/es/man8/ldconfig.8*
4139e845
JK
1800%lang(fr) %{_mandir}/fr/man8/ld-linux.8*
1801%lang(fr) %{_mandir}/fr/man8/ld-linux.so.8*
1802%lang(fr) %{_mandir}/fr/man8/ld.so.8*
2eac239d 1803%lang(fr) %{_mandir}/fr/man8/ldconfig.8*
4139e845
JK
1804%lang(hu) %{_mandir}/hu/man8/ld-linux.8*
1805%lang(hu) %{_mandir}/hu/man8/ld-linux.so.8*
1806%lang(hu) %{_mandir}/hu/man8/ld.so.8*
2eac239d 1807%lang(hu) %{_mandir}/hu/man8/ldconfig.8*
4139e845
JK
1808%lang(ja) %{_mandir}/ja/man8/ld-linux.8*
1809%lang(ja) %{_mandir}/ja/man8/ld-linux.so.8*
1810%lang(ja) %{_mandir}/ja/man8/ld.so.8*
2eac239d 1811%lang(ja) %{_mandir}/ja/man8/ldconfig.8*
4139e845
JK
1812%lang(pl) %{_mandir}/pl/man8/ld-linux.8*
1813%lang(pl) %{_mandir}/pl/man8/ld-linux.so.8*
1814%lang(pl) %{_mandir}/pl/man8/ld.so.8*
2eac239d
ER
1815%lang(pl) %{_mandir}/pl/man8/ldconfig.8*
1816%lang(pt) %{_mandir}/pt/man8/ldconfig.8*
4139e845
JK
1817%lang(ru) %{_mandir}/ru/man8/ld-linux.so.8*
1818%lang(ru) %{_mandir}/ru/man8/ld.so.8*
2eac239d 1819%lang(ru) %{_mandir}/ru/man8/ldconfig.8*
239a2604 1820%dir %attr(700,root,root) /var/cache/ldconfig
2f715077 1821%attr(600,root,root) %ghost /var/cache/ldconfig/aux-cache
2eac239d 1822
94655bd2 1823%files -n nss_compat
1824%defattr(644,root,root,755)
ce3b1100 1825%attr(755,root,root) /%{_lib}/libnss_compat-%{core_version}.so
6d1ad2d5 1826%attr(755,root,root) /%{_lib}/libnss_compat.so.2
94655bd2 1827
9a39df8d
ER
1828%files -n nss_db
1829%defattr(644,root,root,755)
1830%attr(755,root,root) %{_bindir}/makedb
1831%attr(755,root,root) /%{_lib}/libnss_db-%{core_version}.so
1832%attr(755,root,root) /%{_lib}/libnss_db.so.2
1833%{_var}/db/Makefile
1834
e82c8242 1835%files -n nss_hesiod
1836%defattr(644,root,root,755)
ce3b1100 1837%attr(755,root,root) /%{_lib}/libnss_hesiod-%{core_version}.so
6d1ad2d5 1838%attr(755,root,root) /%{_lib}/libnss_hesiod.so.2
e82c8242 1839
1840%files -n nss_nis
1841%defattr(644,root,root,755)
ce3b1100 1842%attr(755,root,root) /%{_lib}/libnss_nis-%{core_version}.so
6d1ad2d5 1843%attr(755,root,root) /%{_lib}/libnss_nis.so.2
e82c8242 1844
1845%files -n nss_nisplus
1846%defattr(644,root,root,755)
ce3b1100 1847%attr(755,root,root) /%{_lib}/libnss_nisplus-%{core_version}.so
6d1ad2d5 1848%attr(755,root,root) /%{_lib}/libnss_nisplus.so.2
e82c8242 1849
fd1d4127 1850%if %{with memusage}
4206408a 1851%files memusage
1852%defattr(644,root,root,755)
7bd184c8
JB
1853%attr(755,root,root) %{_bindir}/memusage
1854%attr(755,root,root) %{_bindir}/memusagestat
fd1d4127 1855%attr(755,root,root) %{_libdir}/libmemusage.so
7bd184c8
JB
1856%{_mandir}/man1/memusage.1*
1857%{_mandir}/man1/memusagestat.1*
1858%lang(ja) %{_mandir}/ja/man1/memusage.1*
1859%lang(ja) %{_mandir}/ja/man1/memusagestat.1*
5ea2d863 1860%endif
4206408a 1861
462c36a3 1862%files devel
236a5027 1863%defattr(644,root,root,755)
6d1ad2d5
JB
1864%attr(755,root,root) %{_libdir}/libBrokenLocale.so
1865%attr(755,root,root) %{_libdir}/libanl.so
40240acb 1866%attr(755,root,root) %{_libdir}/libcrypt.so
6d1ad2d5 1867%attr(755,root,root) %{_libdir}/libdl.so
40240acb 1868%attr(755,root,root) %{_libdir}/libm.so
ba143d99 1869%ifarch %{x8664} x32
ed35cb32 1870%attr(755,root,root) %{_libdir}/libmvec.so
a90add74 1871%endif
6d1ad2d5 1872%attr(755,root,root) %{_libdir}/libnsl.so
40240acb 1873%attr(755,root,root) %{_libdir}/libpcprofile.so
6d1ad2d5
JB
1874%attr(755,root,root) %{_libdir}/libresolv.so
1875%attr(755,root,root) %{_libdir}/librt.so
1876%attr(755,root,root) %{_libdir}/libthread_db.so
1877%attr(755,root,root) %{_libdir}/libutil.so
a8a2db2c 1878%{_libdir}/crt[1in].o
4928f174
AM
1879%{_libdir}/[MSgr]crt1.o
1880%{_libdir}/grcrt1.o
40240acb
JB
1881# ld scripts
1882%{_libdir}/libc.so
1883%{_libdir}/libpthread.so
6d1ad2d5 1884# static-only libs
40240acb
JB
1885%{_libdir}/libc_nonshared.a
1886%{_libdir}/libg.a
5145b9c7
JB
1887%ifarch alpha ppc sparc
1888%{_libdir}/libnldbl_nonshared.a
1889%endif
40240acb 1890%{_libdir}/librpcsvc.a
d96a9968 1891%ifarch %{ix86} %{x8664} x32 ppc ppc64 s390 s390x sparc sparcv9 sparc64
6d1ad2d5 1892# ABI-dependent headers
5b00029e 1893%{_includedir}/gnu/stubs-*.h
fb46cf23 1894%endif
5b00029e
JB
1895
1896%files headers
1897%defattr(644,root,root,755)
462c36a3 1898%{_includedir}/*.h
3c882bd9
JB
1899%ifarch alpha
1900%{_includedir}/alpha
1901%endif
462c36a3 1902%{_includedir}/arpa
1903%{_includedir}/bits
644847e2
JB
1904%dir %{_includedir}/finclude
1905%{_includedir}/finclude/math-vector-fortran.h
5b00029e
JB
1906%dir %{_includedir}/gnu
1907%{_includedir}/gnu/lib*.h
1908%{_includedir}/gnu/stubs.h
462c36a3 1909%{_includedir}/net
1910%{_includedir}/netash
1911%{_includedir}/netatalk
1912%{_includedir}/netax25
1913%{_includedir}/neteconet
d410ca53 1914%{_includedir}/netiucv
462c36a3 1915%{_includedir}/netinet
1916%{_includedir}/netipx
1917%{_includedir}/netpacket
1918%{_includedir}/netrom
1919%{_includedir}/netrose
1920%{_includedir}/nfs
1921%{_includedir}/protocols
1922%{_includedir}/rpc
1923%{_includedir}/rpcsvc
1924%{_includedir}/scsi
1925%{_includedir}/sys
1926
5b00029e
JB
1927%files devel-utils
1928%defattr(644,root,root,755)
1929%attr(755,root,root) %{_bindir}/gencat
7bd184c8
JB
1930%attr(755,root,root) %{_bindir}/mtrace
1931%attr(755,root,root) %{_bindir}/pcprofiledump
1932%attr(755,root,root) %{_bindir}/sprof
1933%attr(755,root,root) %{_bindir}/xtrace
1934%{_mandir}/man1/mtrace.1*
1935%lang(ja) %{_mandir}/ja/man1/mtrace.1*
5b00029e
JB
1936
1937%files devel-doc
1938%defattr(644,root,root,755)
87cbe0ad 1939%doc documentation/*
900994f2 1940%{_infodir}/libc.info*
d90a3b13 1941
fa0f5e25 1942%{_mandir}/man1/sprof.1*
7bd184c8
JB
1943# just a link to getcwd.3
1944%{_mandir}/man2/getcwd.2*
b6fd0f3f
JB
1945# just a link to killpg.3
1946%{_mandir}/man2/killpg.2*
2c6699cc 1947%{_mandir}/man3/*
7bd184c8
JB
1948%{_mandir}/man7/aio.7*
1949%{_mandir}/man7/attributes.7*
1950%{_mandir}/man7/complex.7*
1951%{_mandir}/man7/feature_test_macros.7*
1952%{_mandir}/man7/glibc.7*
1953%{_mandir}/man7/glob.7*
1954%{_mandir}/man7/libc.7*
1955%{_mandir}/man7/math_error.7*
1956%{_mandir}/man7/nptl.7*
1957%{_mandir}/man7/posixoptions.7*
1958%{_mandir}/man7/pthreads.7*
1959%{_mandir}/man7/rtld-audit.7*
1960%{_mandir}/man7/sem_overview.7*
1961%{_mandir}/man7/shm_overview.7*
1fc785e2 1962%lang(cs) %{_mandir}/cs/man3/*
b6fd0f3f 1963%lang(de) %{_mandir}/de/man2/killpg.2*
1fc785e2 1964%lang(de) %{_mandir}/de/man3/*
b6fd0f3f 1965%lang(es) %{_mandir}/es/man2/killpg.2*
1fc785e2 1966%lang(es) %{_mandir}/es/man3/*
7bd184c8
JB
1967%lang(es) %{_mandir}/es/man7/glob.7*
1968%lang(fr) %{_mandir}/fr/man2/getcwd.2*
b6fd0f3f 1969%lang(fr) %{_mandir}/fr/man2/killpg.2*
1fc785e2 1970%lang(fr) %{_mandir}/fr/man3/*
cb6a4019 1971%lang(fr) %{_mandir}/fr/man7/aio.7*
7bd184c8
JB
1972%lang(fr) %{_mandir}/fr/man7/complex.7*
1973%lang(fr) %{_mandir}/fr/man7/feature_test_macros.7*
cb6a4019 1974%lang(fr) %{_mandir}/fr/man7/glibc.7*
7bd184c8 1975%lang(fr) %{_mandir}/fr/man7/glob.7*
cb6a4019
JB
1976%lang(fr) %{_mandir}/fr/man7/libc.7*
1977%lang(fr) %{_mandir}/fr/man7/math_error.7*
7bd184c8
JB
1978%lang(fr) %{_mandir}/fr/man7/posixoptions.7*
1979%lang(fr) %{_mandir}/fr/man7/pthreads.7*
cb6a4019 1980%lang(fr) %{_mandir}/fr/man7/rtld-audit.7*
7bd184c8
JB
1981%lang(fr) %{_mandir}/fr/man7/sem_overview.7*
1982%lang(fr) %{_mandir}/fr/man7/shm_overview.7*
1fc785e2 1983%lang(hu) %{_mandir}/hu/man3/*
fa0f5e25 1984%lang(it) %{_mandir}/it/man3/*
7bd184c8
JB
1985%lang(it) %{_mandir}/it/man7/glob.7*
1986%lang(ja) %{_mandir}/ja/man1/sprof.1*
1987%lang(ja) %{_mandir}/ja/man2/getcwd.2*
b6fd0f3f 1988%lang(ja) %{_mandir}/ja/man2/killpg.2*
1145bfaf 1989%lang(ja) %{_mandir}/ja/man3/*
7bd184c8
JB
1990%lang(ja) %{_mandir}/ja/man7/aio.7*
1991%lang(ja) %{_mandir}/ja/man7/complex.7*
1992%lang(ja) %{_mandir}/ja/man7/feature_test_macros.7*
1993%lang(ja) %{_mandir}/ja/man7/glibc.7*
1994%lang(ja) %{_mandir}/ja/man7/glob.7*
1995%lang(ja) %{_mandir}/ja/man7/libc.7*
1996%lang(ja) %{_mandir}/ja/man7/math_error.7*
1997%lang(ja) %{_mandir}/ja/man7/posixoptions.7*
1998%lang(ja) %{_mandir}/ja/man7/pthreads.7*
1999%lang(ja) %{_mandir}/ja/man7/sem_overview.7*
2000%lang(ja) %{_mandir}/ja/man7/shm_overview.7*
b6fd0f3f 2001%lang(ko) %{_mandir}/ko/man2/killpg.2*
1145bfaf 2002%lang(ko) %{_mandir}/ko/man3/*
2003%lang(nl) %{_mandir}/nl/man3/*
b6fd0f3f 2004%lang(pl) %{_mandir}/pl/man2/killpg.2*
1145bfaf 2005%lang(pl) %{_mandir}/pl/man3/*
b6fd0f3f 2006%lang(pt) %{_mandir}/pt/man2/killpg.2*
1145bfaf 2007%lang(pt) %{_mandir}/pt/man3/*
7bd184c8 2008%lang(pt) %{_mandir}/pt/man7/glob.7*
49ead7a0 2009%lang(ru) %{_mandir}/ru/man1/sprof.1*
b6fd0f3f 2010%lang(ru) %{_mandir}/ru/man2/killpg.2*
1145bfaf 2011%lang(ru) %{_mandir}/ru/man3/*
7bd184c8 2012%lang(ru) %{_mandir}/ru/man7/glob.7*
49ead7a0 2013%lang(tr) %{_mandir}/tr/man3/*
fa0f5e25
JB
2014%lang(uk) %{_mandir}/uk/man3/*
2015%lang(zh_CN) %{_mandir}/zh_CN/man3/*
7bd184c8 2016%lang(zh_CN) %{_mandir}/zh_CN/man7/glob.7*
cb6a4019
JB
2017%lang(zh_TW) %{_mandir}/zh_TW/man3/*
2018%lang(zh_TW) %{_mandir}/zh_TW/man7/glob.7*
7bd184c8
JB
2019
2020%files static
2021%defattr(644,root,root,755)
2022%{_libdir}/libanl.a
2023%{_libdir}/libBrokenLocale.a
2024%{_libdir}/libc.a
2025%{_libdir}/libcrypt.a
2026%{_libdir}/libdl.a
2027%{_libdir}/libm.a
2028%{_libdir}/libmcheck.a
ba143d99 2029%ifarch %{x8664} x32
5941dd9e 2030%{_libdir}/libm-%{core_version}.a
ed35cb32 2031%{_libdir}/libmvec.a
a90add74 2032%endif
7bd184c8
JB
2033%{_libdir}/libnsl.a
2034%{_libdir}/libpthread.a
2035%{_libdir}/libresolv.a
2036%{_libdir}/librt.a
2037%{_libdir}/libutil.a
2038
2039%files profile
2040%defattr(644,root,root,755)
2041%{_libdir}/lib*_p.a
2042
2043%files pic
2044%defattr(644,root,root,755)
2045%{_libdir}/lib*_pic.a
2046%{_libdir}/lib*.map
2047%{_libdir}/soinit.o
2048%{_libdir}/sofini.o
236a5027 2049
bab19d4a 2050%files -n nscd
2051%defattr(644,root,root,755)
f307cfc5
JB
2052%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
2053%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
46b7a91b 2054%attr(754,root,root) /etc/rc.d/init.d/nscd
4206408a 2055%attr(755,root,root) %{_sbindir}/nscd*
f307cfc5 2056%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
ddf4fb34 2057%attr(640,root,root) %ghost /var/log/nscd
4fa784f5 2058%{systemdtmpfilesdir}/nscd.conf
7dc8db4b 2059%dir /var/run/nscd
f307cfc5
JB
2060%dir /var/lib/nscd
2061%attr(600,root,root) %ghost /var/lib/nscd/passwd
2062%attr(600,root,root) %ghost /var/lib/nscd/group
2063%attr(600,root,root) %ghost /var/lib/nscd/hosts
fa0f5e25
JB
2064%{_mandir}/man5/nscd.conf.5*
2065%{_mandir}/man8/nscd.8*
2066%{_mandir}/man8/nscd_nischeck.8*
49ead7a0
JB
2067%lang(es) %{_mandir}/es/man5/nscd.conf.5*
2068%lang(es) %{_mandir}/es/man8/nscd.8*
fa0f5e25
JB
2069%lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
2070%lang(fr) %{_mandir}/fr/man8/nscd.8*
2071%lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
2072%lang(ja) %{_mandir}/ja/man8/nscd.8*
2073%lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
2074%lang(pt) %{_mandir}/pt/man8/nscd.8*
49ead7a0
JB
2075%lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
2076%lang(ru) %{_mandir}/ru/man8/nscd.8*
2077%lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
cb6a4019 2078%lang(zh_TW) %{_mandir}/zh_TW/man5/nscd.conf.5*
c43e39f5 2079
d34cb8bc 2080%files -n localedb-src
2081%defattr(644,root,root,755)
ba697d79 2082%attr(755,root,root) %{_bindir}/localedef
40430bed 2083%attr(755,root,root) %{_bindir}/localedb-gen
d34cb8bc 2084%{_datadir}/i18n
fa0f5e25 2085%{_mandir}/man1/localedef.1*
49ead7a0 2086%lang(ru) %{_mandir}/ru/man1/localedef.1*
40430bed 2087
0a85848c 2088%if %{with localedb}
40430bed
JB
2089%files localedb-all
2090%defattr(644,root,root,755)
d6e3a99e 2091%{_prefix}/lib/locale/locale-archive
0a85848c 2092%endif
d34cb8bc 2093
2094%files -n iconv
2095%defattr(644,root,root,755)
436fd1ea 2096%attr(755,root,root) %{_sbindir}/iconvconfig
fbd4c876 2097%dir %{_libdir}/gconv
2098%{_libdir}/gconv/gconv-modules
17a1a2af 2099%verify(not md5 mtime size) %{_libdir}/gconv/gconv-modules.cache
fbd4c876 2100%attr(755,root,root) %{_libdir}/gconv/*.so
7bd184c8
JB
2101%{_mandir}/man8/iconvconfig.8*
2102%lang(ja) %{_mandir}/ja/man8/iconvconfig.8*
This page took 1.390924 seconds and 4 git commands to generate.