]> git.pld-linux.org Git - packages/glibc.git/blame - glibc.spec
- removed obsolete missing-nls,nss_include_dirs patches
[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
f3cc1845 1019%{__make} \
87a4ec26 1020 AWK="gawk" \
954aec4b 1021 complocaledir=%{_prefix}/lib/locale \
87a4ec26 1022 sLIBdir=%{_libdir}
f3cc1845 1023
5145b9c7 1024cd ..
cfac0d25 1025
e81552c8
AM
1026%if %{with tests}
1027env LANGUAGE=C LC_ALL=C \
76188843 1028%{__make} -j1 -C builddir tests
e81552c8 1029%endif
adfd3b3d 1030
cf408212
ER
1031%if %{without cross}
1032CC="%{__cc}"
35c7912e
ER
1033CC=${CC#*ccache }
1034CC=${CC#%{_libdir}/ccache/}
1035diet ${CC} %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
f70abfbb 1036%endif
b6bedda4 1037
d90a3b13 1038%install
1039rm -rf $RPM_BUILD_ROOT
4e3bda50 1040install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig,default,logrotate.d} \
7bd184c8 1041 $RPM_BUILD_ROOT{%{_mandir},/var/log,/var/{lib,run}/nscd} \
4fa784f5 1042 $RPM_BUILD_ROOT{/var/cache/ldconfig,%{systemdtmpfilesdir}}
f8865a58 1043
e2a5184e 1044cd builddir
5240d049 1045env LANGUAGE=C LC_ALL=C \
1739e791 1046%{__make} install \
bab19d4a 1047 install_root=$RPM_BUILD_ROOT \
954aec4b 1048 complocaledir=%{_prefix}/lib/locale \
bab19d4a 1049 infodir=%{_infodir} \
1050 mandir=%{_mandir}
f8865a58 1051
0a85848c 1052%if %{with localedb}
5240d049 1053env LANGUAGE=C LC_ALL=C \
8ab3a6c9 1054%{__make} localedata/install-locales \
954aec4b 1055 complocaledir=%{_prefix}/lib/locale \
bab19d4a 1056 install_root=$RPM_BUILD_ROOT
d6e3a99e
JK
1057%else
1058install -d $RPM_BUILD_ROOT%{_prefix}/lib/locale
0a85848c 1059%endif
d90a3b13 1060
5240d049
TP
1061PICFILES="libc_pic.a libc.map
1062 math/libm_pic.a libm.map
1063 resolv/libresolv_pic.a"
71a76fad 1064
6dd5516a
ER
1065install -p $PICFILES $RPM_BUILD_ROOT%{_libdir}
1066install -p elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
1067install -p elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
17a1a2af
ER
1068
1069# Include %{_libdir}/gconv/gconv-modules.cache
aca0117e 1070$(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 1071cd ..
8ab3a6c9 1072
cf408212 1073%if %{without cross}
6dd5516a 1074install -p glibc-postinst $RPM_BUILD_ROOT/sbin
f70abfbb 1075%endif
b6bedda4 1076
4c3586c2 1077%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
c4fea372 1078mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
77d92b8b 1079
277c4a9d 1080# make symlinks across top-level directories absolute
364cdb7c 1081for l in BrokenLocale anl crypt dl \
ba143d99 1082%ifarch %{x8664} x32
a90add74
AM
1083 mvec \
1084%endif
1085 nsl resolv rt thread_db util; do
b96231b6 1086 test -L $RPM_BUILD_ROOT%{_libdir}/lib${l}.so || exit 1
5a5649cb 1087 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
b96231b6 1088 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${l}.so.*) $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
277c4a9d
JB
1089done
1090
b96231b6 1091# linking nss modules directly is not supported
5a5649cb 1092%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
b96231b6 1093
6dd5516a
ER
1094install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1095cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
1096cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
1097cp -a nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
1098cp -a posix/gai.conf $RPM_BUILD_ROOT%{_sysconfdir}
1099cp -a nis/nss $RPM_BUILD_ROOT/etc/default/nss
bebe21cc 1100sed -e 's#\([ \t]\)db\([ \t]\)#\1#g' nss/nsswitch.conf > $RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.conf
16c630b5 1101
7bd184c8 1102xz -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
aca59b69 1103: > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
60d03a9f 1104install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
5145b9c7 1105echo 'include ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
aca59b69 1106: > $RPM_BUILD_ROOT/var/cache/ldconfig/aux-cache
1107
bc9012d1
ER
1108# doesn't fit with out tzdata concept and configure.in is stupid assuming bash
1109# is first posix compatible shell making this script depend on bash.
5a5649cb
JB
1110%{__rm} $RPM_BUILD_ROOT%{_bindir}/tzselect
1111%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/tzselect.8*
1112%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/tzselect.8*
bc9012d1 1113
aca59b69 1114: > $RPM_BUILD_ROOT/var/log/nscd
1115: > $RPM_BUILD_ROOT/var/lib/nscd/passwd
1116: > $RPM_BUILD_ROOT/var/lib/nscd/group
1117: > $RPM_BUILD_ROOT/var/lib/nscd/hosts
236a5027 1118
03b5396e 1119cp -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/nscd.conf
3b9b60ff 1120
cfac0d25
JB
1121rm -rf documentation
1122install -d documentation
16c630b5 1123
4928f174 1124for f in DESIGN-systemtap-probes.txt TODO{,-kernel,-testing}; do
6dd5516a 1125 cp -af nptl/$f documentation/$f.nptl
3cc9adfc 1126done
6dd5516a 1127cp -af crypt/README.ufc-crypt ChangeLog* documentation
d90a3b13 1128
503c0862 1129# Collect locale files and mark them with %%lang()
cfac0d25 1130echo '%defattr(644,root,root,755)' > glibc.lang
4fa784f5 1131for i in $RPM_BUILD_ROOT%{_localedir}/*; do
503c0862 1132 if [ -d $i ]; then
aba67afa
JB
1133 lang=$(basename $i)
1134 dir="${i#$RPM_BUILD_ROOT}"
cfac0d25 1135 echo "%lang($lang) $dir" >> glibc.lang
503c0862
JR
1136 fi
1137done
84dca6d3 1138
4b000c98 1139# NOTES:
429f21ad 1140# Languages not supported by glibc locales, but usable via $LANGUAGE:
1141# ang - Old English (gtk+, gnome)
73dbfadc 1142# en@shaw - English with Shavian alphabet (gnome)
a0bcd2f8 1143# la - Latin
429f21ad 1144# tlh - Klingon (bzflag)
1145#
84dca6d3 1146# To be added when they become supported by glibc:
085d921e
JB
1147# ace (iso-codes)
1148# ach (iso-codes, libreport, vlc)
1149# aln (libreport, vlc)
b5e27f9d 1150# bal (libosinfo, libreport, newt, pessulus)
085d921e 1151# bar (iso-codes)
8015969d 1152# cgg (vlc)
085d921e 1153# ch (iso-codes)
24a58f05 1154# co (FileZilla, libfilezilla, vlc)
8e6a6ab7 1155# es_419 (alpm - common "Spanish (Latin America)")
085d921e
JB
1156# frp (iso-codes, lxlauncher, mate, xfce)
1157# gn (iso-codes, gnome; gn_BR in gnome, maybe gn_PY)
6f084c6e 1158# guc (gtk-vnc)
8015969d
JB
1159# haw (iso-codes, stellarium)
1160# hrx (stellarium)
644847e2 1161# ie (xfce)
b5e27f9d 1162# ilo (kudzu, libosinfo, libreport)
085d921e
JB
1163# io (alacarte, gtk+2, gnome, iso-codes)
1164# jam (iso-codes)
1165# jv (avant-window-navigator, gmpc, kdesudo, mate)
085d921e 1166# ki (iso-codes)
777c9b6a 1167# kok@latin (inkscape)
8015969d 1168# kmr (vlc)
5a356604 1169# ku_IQ (mate)
085d921e 1170# kv (iso-codes)
40403fd2 1171# kw@kkcor, kw@uccor (libosinfo - currently empty) - add as supported variants when non-empty?
8015969d 1172# man (ccsm; incorrectly named md)
777c9b6a 1173# mni@beng[ali] (inkscape)
085d921e 1174# mo (iso-codes)
8015969d 1175# mus (bluez-gnome)
085d921e
JB
1176# na (iso-codes)
1177# nah (iso-codes, mate)
5a356604 1178# nqo (mate)
085d921e
JB
1179# nv (iso-codes)
1180# pi (iso-codes)
5a356604 1181# pms (deluge, mate-tweak)
777c9b6a 1182# sat@deva[nagari] (inkscape)
085d921e
JB
1183# sco (gnomad2, mate, picard, stellarium)
1184# son (gtkspell3, iso-codes)
42e8838f 1185# su (terminator)
8015969d
JB
1186# swg (sim)
1187# syr (iso-codes)
1188# tet (vlc)
40403fd2 1189# tw (libosinfo)
8015969d 1190# vec (mate-applet-indicator)
40403fd2 1191# wba (libosinfo)
84dca6d3 1192#
f8d57f3f
JB
1193# To be removed (after fixing packages still using it):
1194# sr@Latn (use sr@latin instead)
3e7420f7 1195# sr@ije (use sr@ijekavian instead)
a7515877 1196#
62733160
JB
1197# Short forms (omitted country code, used instead of long form) for ambiguous or unclear cases:
1198# aa=aa_ER
48fdf5d6 1199# ak=ak_GH
40403fd2 1200# anp=anp_IN
62733160 1201# ar=common? (AE, BH, DZ, EG, IQ, JO, KW, LB, LY, MA, OM, QA, SA, SD, SY, TN, YE)
67d9f7fa 1202# az=az_AZ
62733160 1203# bn=bn_BD
f3bbc3df 1204# bo=bo_CN? (or common for CN, IN?)
62733160 1205# ca=ca_ES
085d921e
JB
1206# ce=ce_RU
1207# chr=chr_US
62733160 1208# ckb=ckb_IQ
d3810057 1209# cv=cv_RU
62733160 1210# de=de_DE
783b475d 1211# en=common? (en_AU, en_CA, en_GB, en_NZ, en_US are used for particular variants)
62733160
JB
1212# eo=common
1213# es=es_ES
1214# eu=eu_ES
7b38eb5c 1215# fa=fa_IR
d7c950ea 1216# ff=ff_SN
62733160
JB
1217# fr=fr_FR
1218# fy=fy_NL
1219# gez=gez_ET (?)
1220# it=it_IT
f4a12a64 1221# kab=kab_DZ
777c9b6a
JB
1222# ks=ks_IN
1223# ks@devanagari=ks_IN@devanagari
8015969d 1224# ku=ku_TR
62733160 1225# li=li_NL
781fe839 1226# ln=ln_CD
43573da1 1227# lo=lo_LA
644847e2 1228# mjw=mjw_IN
62733160
JB
1229# nds=nds_DE
1230# nl=nl_NL
1231# om=om_ET
934648e1 1232# or=or_IN
62733160
JB
1233# pa=pa_IN
1234# pt=pt_PT
6ed15d9a 1235# quz=quz_PE
62733160 1236# ru=ru_RU
d3810057 1237# sd=sd_IN
777c9b6a 1238# sd@devanagari=sd_IN@devanagari
a18ccaaa 1239# shn=shn_MM
62733160
JB
1240# so=so_SO
1241# sr=sr_RS [cyrillic]
3e7420f7
JB
1242# sr@latin=sr_RS@latin
1243# sr@ijekavian=sr_BA@ijekavian
1244# sr@ijekavianlatin=sr_BA@ijekavianlatin
62733160
JB
1245# sv=sv_SE
1246# sw=sw_TZ (or common for KE, TZ, UG?)
cf955c04
JB
1247# ta=ta_IN
1248# te=te_IN
62733160 1249# ti=ti_ER (?)
f4a12a64 1250# tpi=tpi_PG
62733160
JB
1251# tr=tr_TR
1252# ur=ur_PK (?)
1253# zh: no short code used (use zh_CN, zh_HK, zh_SG[not included yet], zh_TW)
b4ec8e5c 1254#
84dca6d3 1255# Omitted here - already existing (with libc.mo):
1256# 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
1257# sv tr zh_CN zh_TW
b4ec8e5c 1258#
b92ad7a0
JB
1259for i in aa aa@saaho af ak am an ang anp ar ar_TN as ast az az_IR \
1260 be@latin be@tarask bem bg bho bn bn_IN bo br brx bs byn \
1261 ca@valencia ce chr ckb cmn crh csb cv cy de_AT de_CH doi dv dz \
1262 en en@boldquot en@quot en@shaw en_AU en_CA en_NZ en_US eo \
1263 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 \
1264 et eu fa ff fil fo fr_BE fr_CA fr_CH fur fy ga gd gez gu gv \
1265 ha he hi hne ht hsb hy ia id ig ik is it_CH iu \
1266 ka kab kg kk kl km kn kok ks ks@devanagari ku kw ky la lb lg li ln lo lt lv \
644847e2 1267 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
1268 pa pap ps pt ps quz rm ro \
1269 sa sat sc sd sd@devanagari se shn si sid sl so sq \
1270 sr sr@Latn sr@ije sr@ijekavian sr@ijekavianlatin sr@latin ss st sw szl \
1271 ta te tg th ti tig tk tl tlh tn tpi ts tt tt@iqtelif \
1272 ug uk ur uz uz@cyrillic ve vi wa wal wo xh yi yo zh_HK zu; do
4fa784f5
ER
1273 if [ ! -d $RPM_BUILD_ROOT%{_localedir}/$i/LC_MESSAGES ]; then
1274 install -d $RPM_BUILD_ROOT%{_localedir}/$i/LC_MESSAGES
aba67afa 1275 # use lang() tags with ll_CC@variant (stripping charset and @quot|@boldquot)
6dd5516a 1276 lang=$(echo $i | sed -e 's/@quot\>\|@boldquot\>//')
4fa784f5 1277 echo "%lang($lang) %{_localedir}/$i" >> glibc.lang
5b2b5619 1278 fi
1279done
503c0862 1280
a2e4eb0a 1281# LC_TIME category, used for localized date formats (at least by coreutils)
320e0a01 1282for 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 1283 ms nb nl pl pt pt_BR ro ru rw sk sl sr sv tr uk vi zh_CN zh_TW; do
4fa784f5
ER
1284 if [ ! -d $RPM_BUILD_ROOT%{_localedir}/$i ]; then
1285 echo "%lang($lang) %{_localedir}/$i" >> glibc.lang
a2e4eb0a 1286 fi
4fa784f5 1287 install -d $RPM_BUILD_ROOT%{_localedir}/$i/LC_TIME
a2e4eb0a
JB
1288done
1289
40430bed 1290# localedb-gen infrastructure
09df111e 1291install -p %{SOURCE6} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
03b5396e 1292cp -p localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
40430bed 1293
8ab3a6c9 1294# shutup check-files
06849217 1295%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.*
8bc00675 1296rm -f $RPM_BUILD_ROOT%{_infodir}/dir
88300fde 1297
57ef4505
JR
1298# stub for man page from man-pages package to make rpm consistency check happy
1299# don't package them here
7bd184c8 1300install -d $RPM_BUILD_ROOT%{_mandir}{,/ru,/es,/fr,/ja}/man2
57ef4505 1301:>$RPM_BUILD_ROOT%{_mandir}/man2/syslog.2
57ef4505
JR
1302:>$RPM_BUILD_ROOT%{_mandir}/es/man2/syslog.2
1303:>$RPM_BUILD_ROOT%{_mandir}/fr/man2/syslog.2
1304:>$RPM_BUILD_ROOT%{_mandir}/ja/man2/syslog.2
cb6a4019 1305:>$RPM_BUILD_ROOT%{_mandir}/ru/man2/syslog.2
57ef4505
JR
1306
1307# remove links to non existant translations
1308%{__rm} $RPM_BUILD_ROOT%{_mandir}/pl/man3/{alphasort,cfgetispeed,cfgetospeed,cfmakeraw,cfsetispeed,cfsetospeed,closelog,dn_comp,dn_expand,fscanf}.3
7bd184c8 1309%{__rm} $RPM_BUILD_ROOT%{_mandir}/tr/man3/{encrypt_r,setkey,setkey_r}.3
57ef4505 1310
ea870772
JB
1311%clean
1312rm -rf $RPM_BUILD_ROOT
1313
cf408212 1314%if %{without cross}
d326d834 1315%post -p /sbin/postshell
3a32e57b 1316/sbin/glibc-postinst /%{_lib}/%{_host_cpu} /%{_lib}/tls
4139e845 1317-/sbin/ldconfig
88300fde 1318
4139e845
JK
1319%postun -p /sbin/postshell
1320-/sbin/ldconfig
d90a3b13 1321
4139e845
JK
1322%post ld -p /sbin/postshell
1323-/sbin/ldconfig
1324
1325%postun ld -p /sbin/postshell
1326-/sbin/ldconfig
1327
1328%triggerpostun ld -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
60d03a9f
JB
1329-/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1330-/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
f70abfbb 1331%endif
60d03a9f 1332
c305d730
ER
1333%triggerin -- cronie,vixie-cron,hc-cron,fcron,mcron
1334# restart crond if glibc is upgraded, LP#721338
1335if [ "$1" != 1 ]; then
1336 %service -q crond restart
1337fi
1338
11d95e41
ER
1339%triggerin -- apache-base
1340if [ "$1" != 1 ]; then
1341 %service -q httpd restart
1342fi
1343
119e8d05
JK
1344%ifarch %{x8664}
1345# when upgrading from glibc < 6:2.19-3 copy locale-archive
1346# from /usr/lib64/locale to /usr/lib/locale
1347# but only if the latter doesn't already exist
1348%triggerpostun -p /sbin/postshell -- %{name} < 6:2.19-3
1349-/bin/cp -an %{_libdir}/locale/locale-archive %{_prefix}/lib/locale/locale-archive
1350%endif
1351
2eac239d
ER
1352%post libcrypt -p /sbin/ldconfig
1353%postun libcrypt -p /sbin/ldconfig
1354
5240d049 1355%post memusage -p /sbin/ldconfig
5145b9c7 1356%postun memusage -p /sbin/ldconfig
05486726 1357
c7640575 1358%post -n localedb-src
c73a611f
ER
1359SUPPORTED_LOCALES=
1360[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
1361[ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
1362if [ "$SUPPORTED_LOCALES" ]; then
1363 localedb-gen || :
1364fi
4fdef2e6 1365
7ccce023 1366%post devel-doc -p /sbin/postshell
bd37152b 1367-/usr/sbin/fix-info-dir -c %{_infodir}
d90a3b13 1368
7ccce023 1369%postun devel-doc -p /sbin/postshell
bd37152b 1370-/usr/sbin/fix-info-dir -c %{_infodir}
d90a3b13 1371
da7cc665 1372%pre -n nscd
e9351fa5 1373%groupadd -P nscd -g 144 -r nscd
b7ce3475 1374%useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "Name Service Cache Daemon" -g nscd nscd
da7cc665 1375
8912a874 1376%post -n nscd
6dd5516a
ER
1377if [ ! -f /var/log/nscd ]; then
1378 umask 027
1379 touch /var/log/nscd
1380 chown root:root /var/log/nscd
1381 chmod 640 /var/log/nscd
1382fi
19cc9468 1383/sbin/chkconfig --add nscd
6dd5516a 1384%service nscd restart "Name Service Cache Daemon"
8912a874 1385
1386%preun -n nscd
19cc9468 1387if [ "$1" = "0" ]; then
9b9eac8d 1388 %service nscd stop
19cc9468 1389 /sbin/chkconfig --del nscd
1390fi
8912a874 1391
da7cc665
JB
1392%postun -n nscd
1393if [ "$1" = "0" ]; then
1394 %userremove nscd
1395 %groupremove nscd
1396fi
1397
2eac239d 1398%files -f %{name}.lang
d22b4284 1399%defattr(644,root,root,755)
4928f174 1400%doc README NEWS
175873de 1401%if %{without cross}
b6bedda4 1402%attr(755,root,root) /sbin/glibc-postinst
f70abfbb 1403%endif
6d1ad2d5 1404# wildly arch-dependent ld.so SONAME symlink
ce3b1100 1405%attr(755,root,root) /%{_lib}/libBrokenLocale-%{core_version}.so
6d1ad2d5 1406%ifarch alpha
d3708d98 1407%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1.1
6d1ad2d5 1408%else
d3708d98 1409%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1
6d1ad2d5
JB
1410%endif
1411%attr(755,root,root) /%{_lib}/libSegFault.so
ce3b1100 1412%attr(755,root,root) /%{_lib}/libanl-%{core_version}.so
6d1ad2d5 1413%attr(755,root,root) /%{_lib}/libanl.so.1
ce3b1100 1414%attr(755,root,root) /%{_lib}/libc-%{core_version}.so
6d1ad2d5
JB
1415%ifarch alpha ia64
1416%attr(755,root,root) /%{_lib}/libc.so.6.1
1417%else
1418%attr(755,root,root) /%{_lib}/libc.so.6
1419%endif
ce3b1100 1420%attr(755,root,root) /%{_lib}/libdl-%{core_version}.so
6d1ad2d5
JB
1421%ifarch alpha
1422%attr(755,root,root) /%{_lib}/libdl.so.2.1
1423%else
1424%attr(755,root,root) /%{_lib}/libdl.so.2
1425%endif
ce3b1100 1426%attr(755,root,root) /%{_lib}/libm-%{core_version}.so
6d1ad2d5
JB
1427%ifarch alpha ia64
1428%attr(755,root,root) /%{_lib}/libm.so.6.1
1429%else
1430%attr(755,root,root) /%{_lib}/libm.so.6
1431%endif
ba143d99 1432%ifarch %{x8664} x32
ed35cb32
AM
1433%attr(755,root,root) /%{_lib}/libmvec-%{core_version}.so
1434%attr(755,root,root) /%{_lib}/libmvec.so.1
a90add74 1435%endif
ce3b1100 1436%attr(755,root,root) /%{_lib}/libnsl-%{core_version}.so
6d1ad2d5
JB
1437%ifarch alpha
1438%attr(755,root,root) /%{_lib}/libnsl.so.1.1
1439%else
1440%attr(755,root,root) /%{_lib}/libnsl.so.1
1441%endif
ce3b1100 1442%attr(755,root,root) /%{_lib}/libpthread-%{core_version}.so
6d1ad2d5 1443%attr(755,root,root) /%{_lib}/libpthread.so.0
ce3b1100 1444%attr(755,root,root) /%{_lib}/libresolv-%{core_version}.so
6d1ad2d5
JB
1445%ifarch alpha
1446%attr(755,root,root) /%{_lib}/libresolv.so.2.1
1447%else
1448%attr(755,root,root) /%{_lib}/libresolv.so.2
1449%endif
ce3b1100 1450%attr(755,root,root) /%{_lib}/librt-%{core_version}.so
6d1ad2d5
JB
1451%attr(755,root,root) /%{_lib}/librt.so.1
1452%attr(755,root,root) /%{_lib}/libthread_db-1.0.so
1453%attr(755,root,root) /%{_lib}/libthread_db.so.1
ce3b1100 1454%attr(755,root,root) /%{_lib}/libutil-%{core_version}.so
6d1ad2d5
JB
1455%ifarch alpha
1456%attr(755,root,root) /%{_lib}/libutil.so.1.1
1457%else
1458%attr(755,root,root) /%{_lib}/libutil.so.1
1459%endif
d6e3a99e 1460%dir %{_prefix}/lib/locale
c4fea372 1461
0b0bde94
JK
1462#%files -n nss_dns
1463%defattr(644,root,root,755)
ce3b1100 1464%attr(755,root,root) /%{_lib}/libnss_dns-%{core_version}.so
6d1ad2d5 1465%attr(755,root,root) /%{_lib}/libnss_dns.so.2
0b0bde94
JK
1466
1467#%files -n nss_files
1468%defattr(644,root,root,755)
ce3b1100 1469%attr(755,root,root) /%{_lib}/libnss_files-%{core_version}.so
6d1ad2d5 1470%attr(755,root,root) /%{_lib}/libnss_files.so.2
0b0bde94 1471
c4fea372 1472%defattr(644,root,root,755)
236a5027 1473
f307cfc5 1474%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
87d5a0d2 1475%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
e8a20a65 1476%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/nss
87d5a0d2 1477
4206408a 1478%config %{_sysconfdir}/rpc
c37d4a8e 1479
fea833d1 1480%attr(755,root,root) /sbin/sln
72549d49 1481%attr(755,root,root) %{_bindir}/getconf
ba697d79 1482%attr(755,root,root) %{_bindir}/getent
3abcf615 1483%attr(755,root,root) %{_bindir}/iconv
ba697d79 1484%attr(755,root,root) %{_bindir}/locale
ba697d79 1485%attr(755,root,root) %{_bindir}/rpcgen
bab19d4a 1486%attr(755,root,root) %{_sbindir}/zdump
1487%attr(755,root,root) %{_sbindir}/zic
236a5027 1488
72549d49
JB
1489%dir %{_libexecdir}/getconf
1490%attr(755,root,root) %{_libexecdir}/getconf/*
1491
4fa784f5
ER
1492%dir %{_localedir}
1493%{_localedir}/locale.alias
236a5027 1494
72549d49 1495%{_mandir}/man1/getconf.1*
4377d843 1496%{_mandir}/man1/getent.1*
fa0f5e25 1497%{_mandir}/man1/iconv.1*
fa0f5e25
JB
1498%{_mandir}/man1/locale.1*
1499%{_mandir}/man1/rpcgen.1*
7bd184c8 1500%{_mandir}/man5/gai.conf.5*
fa0f5e25 1501%{_mandir}/man5/locale.5*
7bd184c8 1502%{_mandir}/man5/nss.5*
fa0f5e25 1503%{_mandir}/man5/nsswitch.conf.5*
7bd184c8
JB
1504%{_mandir}/man5/repertoiremap.5*
1505%{_mandir}/man5/rpc.5*
fa0f5e25 1506%{_mandir}/man5/tzfile.5*
7bd184c8 1507%{_mandir}/man7/armscii-8.7*
da89b000
JB
1508%{_mandir}/man7/ascii.7*
1509%{_mandir}/man7/charsets.7*
7bd184c8
JB
1510%{_mandir}/man7/cp1251.7*
1511%{_mandir}/man7/cp1252.7*
da89b000
JB
1512%{_mandir}/man7/iso-8859-*.7*
1513%{_mandir}/man7/iso_8859-*.7*
1514%{_mandir}/man7/iso_8859_*.7*
7bd184c8 1515%{_mandir}/man7/koi8-*.7*
da89b000
JB
1516%{_mandir}/man7/latin*.7*
1517%{_mandir}/man7/locale.7*
7bd184c8 1518%{_mandir}/man7/tis-620.7*
da89b000
JB
1519%{_mandir}/man7/unicode.7*
1520%{_mandir}/man7/utf-8.7*
1521%{_mandir}/man7/utf8.7*
fa0f5e25 1522%{_mandir}/man8/sln.8*
fa0f5e25
JB
1523%{_mandir}/man8/zdump.8*
1524%{_mandir}/man8/zic.8*
7bd184c8
JB
1525%lang(cs) %{_mandir}/cs/man7/ascii.7*
1526%lang(cs) %{_mandir}/cs/man7/locale.7*
1527%lang(cs) %{_mandir}/cs/man7/unicode.7*
1528%lang(cs) %{_mandir}/cs/man7/utf-8.7*
1529%lang(cs) %{_mandir}/cs/man7/utf8.7*
1530%lang(de) %{_mandir}/de/man5/rpc.5*
fa0f5e25 1531%lang(de) %{_mandir}/de/man5/tzfile.5*
7bd184c8
JB
1532%lang(de) %{_mandir}/de/man7/ascii.7*
1533%lang(de) %{_mandir}/de/man7/iso-8859-*.7*
1534%lang(de) %{_mandir}/de/man7/iso_8859-*.7*
1535%lang(de) %{_mandir}/de/man7/iso_8859_*.7*
1536%lang(de) %{_mandir}/de/man7/latin*.7*
1537%lang(de) %{_mandir}/de/man7/locale.7*
1538%lang(de) %{_mandir}/de/man7/unicode.7*
1539%lang(de) %{_mandir}/de/man7/utf-8.7*
1540%lang(de) %{_mandir}/de/man7/utf8.7*
fa0f5e25
JB
1541%lang(es) %{_mandir}/es/man5/locale.5*
1542%lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
7bd184c8 1543%lang(es) %{_mandir}/es/man5/rpc.5*
fa0f5e25 1544%lang(es) %{_mandir}/es/man5/tzfile.5*
7bd184c8
JB
1545%lang(es) %{_mandir}/es/man7/ascii.7*
1546%lang(es) %{_mandir}/es/man7/charsets.7*
1547%lang(es) %{_mandir}/es/man7/iso-8859-*.7*
1548%lang(es) %{_mandir}/es/man7/iso_8859-*.7*
1549%lang(es) %{_mandir}/es/man7/iso_8859_*.7*
1550%lang(es) %{_mandir}/es/man7/latin*.7*
1551%lang(es) %{_mandir}/es/man7/locale.7*
1552%lang(es) %{_mandir}/es/man7/unicode.7*
1553%lang(es) %{_mandir}/es/man7/utf-8.7*
1554%lang(es) %{_mandir}/es/man7/utf8.7*
fa0f5e25
JB
1555%lang(es) %{_mandir}/es/man8/zdump.8*
1556%lang(es) %{_mandir}/es/man8/zic.8*
cb6a4019
JB
1557%lang(fr) %{_mandir}/fr/man1/getent.1*
1558%lang(fr) %{_mandir}/fr/man1/locale.1*
1559%lang(fr) %{_mandir}/fr/man5/gai.conf.5*
fa0f5e25 1560%lang(fr) %{_mandir}/fr/man5/locale.5*
cb6a4019 1561%lang(fr) %{_mandir}/fr/man5/nss.5*
fa0f5e25 1562%lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
7bd184c8 1563%lang(fr) %{_mandir}/fr/man5/rpc.5*
fa0f5e25 1564%lang(fr) %{_mandir}/fr/man5/tzfile.5*
cb6a4019 1565%lang(fr) %{_mandir}/fr/man7/armscii-8.7*
7bd184c8
JB
1566%lang(fr) %{_mandir}/fr/man7/ascii.7*
1567%lang(fr) %{_mandir}/fr/man7/charsets.7*
cb6a4019 1568%lang(fr) %{_mandir}/fr/man7/cp1251.7*
7bd184c8
JB
1569%lang(fr) %{_mandir}/fr/man7/iso-8859-*.7*
1570%lang(fr) %{_mandir}/fr/man7/iso_8859-*.7*
1571%lang(fr) %{_mandir}/fr/man7/iso_8859_*.7*
1572%lang(fr) %{_mandir}/fr/man7/koi8-r.7*
cb6a4019 1573%lang(fr) %{_mandir}/fr/man7/koi8-u.7*
7bd184c8
JB
1574%lang(fr) %{_mandir}/fr/man7/latin*.7*
1575%lang(fr) %{_mandir}/fr/man7/locale.7*
1576%lang(fr) %{_mandir}/fr/man7/unicode.7*
1577%lang(fr) %{_mandir}/fr/man7/utf-8.7*
1578%lang(fr) %{_mandir}/fr/man7/utf8.7*
cb6a4019 1579%lang(fr) %{_mandir}/fr/man8/sln.8*
fa0f5e25
JB
1580%lang(fr) %{_mandir}/fr/man8/zdump.8*
1581%lang(fr) %{_mandir}/fr/man8/zic.8*
7bd184c8
JB
1582%lang(hu) %{_mandir}/hu/man7/ascii.7*
1583%lang(hu) %{_mandir}/hu/man7/iso-8859-*.7*
1584%lang(hu) %{_mandir}/hu/man7/iso_8859-*.7*
1585%lang(hu) %{_mandir}/hu/man7/iso_8859_*.7*
1586%lang(hu) %{_mandir}/hu/man7/latin*.7*
1587%lang(hu) %{_mandir}/hu/man7/locale.7*
1588%lang(hu) %{_mandir}/hu/man7/utf-8.7*
1589%lang(hu) %{_mandir}/hu/man7/utf8.7*
fa0f5e25
JB
1590%lang(hu) %{_mandir}/hu/man8/zdump.8*
1591%lang(it) %{_mandir}/it/man5/locale.5*
7bd184c8
JB
1592%lang(it) %{_mandir}/it/man7/ascii.7*
1593%lang(it) %{_mandir}/it/man7/charsets.7*
1594%lang(it) %{_mandir}/it/man7/iso-8859-*.7*
1595%lang(it) %{_mandir}/it/man7/iso_8859-*.7*
1596%lang(it) %{_mandir}/it/man7/iso_8859_*.7*
1597%lang(it) %{_mandir}/it/man7/latin*.7*
1598%lang(it) %{_mandir}/it/man7/locale.7*
1599%lang(it) %{_mandir}/it/man7/unicode.7*
1600%lang(it) %{_mandir}/it/man7/utf-8.7*
1601%lang(it) %{_mandir}/it/man7/utf8.7*
fa0f5e25 1602%lang(it) %{_mandir}/it/man8/zdump.8*
7bd184c8
JB
1603%lang(ja) %{_mandir}/ja/man1/getent.1*
1604%lang(ja) %{_mandir}/ja/man1/iconv.1*
1605%lang(ja) %{_mandir}/ja/man1/locale.1*
fa0f5e25 1606%lang(ja) %{_mandir}/ja/man1/rpcgen.1*
7bd184c8 1607%lang(ja) %{_mandir}/ja/man5/gai.conf.5*
fa0f5e25 1608%lang(ja) %{_mandir}/ja/man5/locale.5*
7bd184c8 1609%lang(ja) %{_mandir}/ja/man5/nss.5*
fa0f5e25 1610%lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
7bd184c8
JB
1611%lang(ja) %{_mandir}/ja/man5/repertoiremap.5*
1612%lang(ja) %{_mandir}/ja/man5/rpc.5*
fa0f5e25 1613%lang(ja) %{_mandir}/ja/man5/tzfile.5*
7bd184c8
JB
1614%lang(ja) %{_mandir}/ja/man7/armscii-8.7*
1615%lang(ja) %{_mandir}/ja/man7/ascii.7*
1616%lang(ja) %{_mandir}/ja/man7/charsets.7*
1617%lang(ja) %{_mandir}/ja/man7/cp1251.7*
1618%lang(ja) %{_mandir}/ja/man7/cp1252.7*
1619%lang(ja) %{_mandir}/ja/man7/iso-8859-*.7*
1620%lang(ja) %{_mandir}/ja/man7/iso_8859-*.7*
1621%lang(ja) %{_mandir}/ja/man7/iso_8859_*.7*
1622%lang(ja) %{_mandir}/ja/man7/koi8-*.7*
1623%lang(ja) %{_mandir}/ja/man7/latin*.7*
1624%lang(ja) %{_mandir}/ja/man7/locale.7*
1625%lang(ja) %{_mandir}/ja/man7/tis-620.7*
1626%lang(ja) %{_mandir}/ja/man7/unicode.7*
1627%lang(ja) %{_mandir}/ja/man7/utf-8.7*
1628%lang(ja) %{_mandir}/ja/man7/utf8.7*
fa0f5e25 1629%lang(ja) %{_mandir}/ja/man8/sln.8*
fa0f5e25
JB
1630%lang(ja) %{_mandir}/ja/man8/zdump.8*
1631%lang(ja) %{_mandir}/ja/man8/zic.8*
1632%lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
7bd184c8 1633%lang(ko) %{_mandir}/ko/man5/rpc.5*
fa0f5e25 1634%lang(ko) %{_mandir}/ko/man5/tzfile.5*
7bd184c8
JB
1635%lang(ko) %{_mandir}/ko/man7/ascii.7*
1636%lang(ko) %{_mandir}/ko/man7/iso-8859-*.7*
1637%lang(ko) %{_mandir}/ko/man7/iso_8859-*.7*
1638%lang(ko) %{_mandir}/ko/man7/iso_8859_*.7*
1639%lang(ko) %{_mandir}/ko/man7/latin*.7*
fa0f5e25 1640%lang(ko) %{_mandir}/ko/man8/zdump.8*
fa0f5e25 1641%lang(pl) %{_mandir}/pl/man5/locale.5*
7bd184c8
JB
1642%lang(pl) %{_mandir}/pl/man5/rpc.5*
1643%lang(pl) %{_mandir}/pl/man7/ascii.7*
1644%lang(pl) %{_mandir}/pl/man7/iso-8859-*.7*
1645%lang(pl) %{_mandir}/pl/man7/iso_8859-*.7*
1646%lang(pl) %{_mandir}/pl/man7/iso_8859_*.7*
1647%lang(pl) %{_mandir}/pl/man7/koi8-*.7*
1648%lang(pl) %{_mandir}/pl/man7/latin*.7*
1649%lang(pl) %{_mandir}/pl/man7/locale.7*
1650%lang(pl) %{_mandir}/pl/man7/unicode.7*
1651%lang(pl) %{_mandir}/pl/man7/utf-8.7*
1652%lang(pl) %{_mandir}/pl/man7/utf8.7*
fa0f5e25
JB
1653%lang(pt) %{_mandir}/pt/man5/locale.5*
1654%lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
7bd184c8 1655%lang(pt) %{_mandir}/pt/man5/rpc.5*
fa0f5e25 1656%lang(pt) %{_mandir}/pt/man5/tzfile.5*
7bd184c8
JB
1657%lang(pt) %{_mandir}/pt/man7/ascii.7*
1658%lang(pt) %{_mandir}/pt/man7/charsets.7*
1659%lang(pt) %{_mandir}/pt/man7/iso-8859-*.7*
1660%lang(pt) %{_mandir}/pt/man7/iso_8859-*.7*
1661%lang(pt) %{_mandir}/pt/man7/iso_8859_*.7*
1662%lang(pt) %{_mandir}/pt/man7/koi8-*.7*
1663%lang(pt) %{_mandir}/pt/man7/latin*.7*
1664%lang(pt) %{_mandir}/pt/man7/locale.7*
1665%lang(pt) %{_mandir}/pt/man7/unicode.7*
1666%lang(pt) %{_mandir}/pt/man7/utf-8.7*
1667%lang(pt) %{_mandir}/pt/man7/utf8.7*
fa0f5e25
JB
1668%lang(pt) %{_mandir}/pt/man8/zdump.8*
1669%lang(pt) %{_mandir}/pt/man8/zic.8*
49ead7a0
JB
1670%lang(ru) %{_mandir}/ru/man1/getent.1*
1671%lang(ru) %{_mandir}/ru/man1/iconv.1*
49ead7a0
JB
1672%lang(ru) %{_mandir}/ru/man1/locale.1*
1673%lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1674%lang(ru) %{_mandir}/ru/man5/locale.5*
fa0f5e25 1675%lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
7bd184c8 1676%lang(ru) %{_mandir}/ru/man5/rpc.5*
fa0f5e25 1677%lang(ru) %{_mandir}/ru/man5/tzfile.5*
7bd184c8
JB
1678%lang(ru) %{_mandir}/ru/man7/ascii.7*
1679%lang(ru) %{_mandir}/ru/man7/charsets.7*
1680%lang(ru) %{_mandir}/ru/man7/iso-8859-*.7*
1681%lang(ru) %{_mandir}/ru/man7/iso_8859-*.7*
1682%lang(ru) %{_mandir}/ru/man7/iso_8859_*.7*
1683%lang(ru) %{_mandir}/ru/man7/koi8-*.7*
1684%lang(ru) %{_mandir}/ru/man7/latin*.7*
1685%lang(ru) %{_mandir}/ru/man7/locale.7*
1686%lang(ru) %{_mandir}/ru/man7/unicode.7*
1687%lang(ru) %{_mandir}/ru/man7/utf-8.7*
1688%lang(ru) %{_mandir}/ru/man7/utf8.7*
fa0f5e25
JB
1689%lang(ru) %{_mandir}/ru/man8/zdump.8*
1690%lang(ru) %{_mandir}/ru/man8/zic.8*
49ead7a0 1691%lang(tr) %{_mandir}/tr/man1/iconv.1*
7bd184c8 1692%lang(uk) %{_mandir}/uk/man5/rpc.5*
fa0f5e25 1693%lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
fa0f5e25 1694%lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
7bd184c8 1695%lang(zh_CN) %{_mandir}/zh_CN/man5/rpc.5*
fa0f5e25 1696%lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
7bd184c8
JB
1697%lang(zh_CN) %{_mandir}/zh_CN/man7/ascii.7*
1698%lang(zh_CN) %{_mandir}/zh_CN/man7/charsets.7*
1699%lang(zh_CN) %{_mandir}/zh_CN/man7/locale.7*
1700%lang(zh_CN) %{_mandir}/zh_CN/man7/unicode.7*
1701%lang(zh_CN) %{_mandir}/zh_CN/man7/utf-8.7*
1702%lang(zh_CN) %{_mandir}/zh_CN/man7/utf8.7*
fa0f5e25
JB
1703%lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1704%lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
cb6a4019
JB
1705%lang(zh_TW) %{_mandir}/zh_TW/man1/iconv.1*
1706%lang(zh_TW) %{_mandir}/zh_TW/man5/locale.5*
1707%lang(zh_TW) %{_mandir}/zh_TW/man5/rpc.5*
1708%lang(zh_TW) %{_mandir}/zh_TW/man5/tzfile.5*
1709%lang(zh_TW) %{_mandir}/zh_TW/man7/ascii.7*
1710%lang(zh_TW) %{_mandir}/zh_TW/man7/charsets.7*
1711%lang(zh_TW) %{_mandir}/zh_TW/man7/locale.7*
1712%lang(zh_TW) %{_mandir}/zh_TW/man7/unicode.7*
1713%lang(zh_TW) %{_mandir}/zh_TW/man7/utf-8.7*
1714%lang(zh_TW) %{_mandir}/zh_TW/man7/utf8.7*
1715%lang(zh_TW) %{_mandir}/zh_TW/man8/zdump.8*
1716%lang(zh_TW) %{_mandir}/zh_TW/man8/zic.8*
4206408a 1717
cbf1c4bb 1718%files misc
2eac239d
ER
1719%defattr(644,root,root,755)
1720%attr(755,root,root) %{_bindir}/catchsegv
1721%attr(755,root,root) %{_bindir}/ldd
63820e4e 1722%attr(755,root,root) %{_bindir}/pldd
c2e03274
AM
1723%ifarch %{ix86} m68k sparc sparcv9
1724%attr(755,root,root) %{_bindir}/lddlibc4
1725%endif
af53f596
ER
1726%attr(755,root,root) %{_bindir}/sotruss
1727%dir %{_libdir}/audit
1728%attr(755,root,root) %{_libdir}/audit/sotruss-lib.so
1729
2eac239d
ER
1730%{_mandir}/man1/catchsegv.1*
1731%{_mandir}/man1/ldd.1*
7bd184c8
JB
1732%{_mandir}/man1/pldd.1*
1733%lang(cs) %{_mandir}/cs/man1/ldd.1*
2eac239d 1734%lang(es) %{_mandir}/es/man1/ldd.1*
2eac239d
ER
1735%lang(fi) %{_mandir}/fi/man1/ldd.1*
1736%lang(fr) %{_mandir}/fr/man1/ldd.1*
2eac239d 1737%lang(hu) %{_mandir}/hu/man1/ldd.1*
7bd184c8 1738%lang(it) %{_mandir}/it/man1/ldd.1*
2eac239d 1739%lang(ja) %{_mandir}/ja/man1/ldd.1*
7bd184c8 1740%lang(ja) %{_mandir}/ja/man1/pldd.1*
2eac239d 1741%lang(ko) %{_mandir}/ko/man1/ldd.1*
2eac239d 1742%lang(pl) %{_mandir}/pl/man1/ldd.1*
2eac239d 1743%lang(ru) %{_mandir}/ru/man1/ldd.1*
2eac239d
ER
1744%lang(tr) %{_mandir}/tr/man1/ldd.1*
1745%lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
cb6a4019 1746%lang(zh_TW) %{_mandir}/zh_TW/man1/ldd.1*
2eac239d
ER
1747
1748%files libcrypt
1749%defattr(644,root,root,755)
ce3b1100 1750%attr(755,root,root) /%{_lib}/libcrypt-%{core_version}.so
2eac239d 1751%ifarch alpha
2f715077 1752%attr(755,root,root) %ghost /%{_lib}/libcrypt.so.1.1
2eac239d 1753%else
2f715077 1754%attr(755,root,root) %ghost /%{_lib}/libcrypt.so.1
2eac239d
ER
1755%endif
1756
4139e845 1757%files ld
2eac239d
ER
1758%defattr(644,root,root,755)
1759%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
1760%dir %{_sysconfdir}/ld.so.conf.d
1761%ghost %{_sysconfdir}/ld.so.cache
4139e845
JK
1762# TODO: package ldconfig symlinks as %ghost
1763%attr(755,root,root) /%{_lib}/ld-%{core_version}.so
1764%ifarch %{ix86} sparc sparcv9 sparc64 alpha sh
1765%attr(755,root,root) /%{_lib}/ld-linux.so.2
1766%endif
1767%ifarch ia64
1768%attr(755,root,root) /%{_lib}/ld-linux-ia64.so.2
1769%endif
1770%ifarch %{x8664}
1771%attr(755,root,root) /%{_lib}/ld-linux-x86-64.so.2
1772%endif
1773%ifarch x32
1774%attr(755,root,root) /%{_lib}/ld-linux-x32.so.2
1775%endif
1776%ifarch ppc64 s390x
1777%attr(755,root,root) /%{_lib}/ld64.so.1
1778%endif
1779%ifnarch %{ix86} sparc sparcv9 sparc64 alpha sh ia64 %{x8664} x32 ppc64 s390x %{arm}
1780%attr(755,root,root) /%{_lib}/ld.so.1
1781%endif
2eac239d 1782%attr(755,root,root) /sbin/ldconfig
4139e845
JK
1783%{_mandir}/man8/ld-linux.8*
1784%{_mandir}/man8/ld-linux.so.8*
1785%{_mandir}/man8/ld.so.8*
2eac239d 1786%{_mandir}/man8/ldconfig.8*
4139e845
JK
1787%lang(es) %{_mandir}/es/man8/ld-linux.8*
1788%lang(es) %{_mandir}/es/man8/ld-linux.so.8*
1789%lang(es) %{_mandir}/es/man8/ld.so.8*
2eac239d 1790%lang(es) %{_mandir}/es/man8/ldconfig.8*
4139e845
JK
1791%lang(fr) %{_mandir}/fr/man8/ld-linux.8*
1792%lang(fr) %{_mandir}/fr/man8/ld-linux.so.8*
1793%lang(fr) %{_mandir}/fr/man8/ld.so.8*
2eac239d 1794%lang(fr) %{_mandir}/fr/man8/ldconfig.8*
4139e845
JK
1795%lang(hu) %{_mandir}/hu/man8/ld-linux.8*
1796%lang(hu) %{_mandir}/hu/man8/ld-linux.so.8*
1797%lang(hu) %{_mandir}/hu/man8/ld.so.8*
2eac239d 1798%lang(hu) %{_mandir}/hu/man8/ldconfig.8*
4139e845
JK
1799%lang(ja) %{_mandir}/ja/man8/ld-linux.8*
1800%lang(ja) %{_mandir}/ja/man8/ld-linux.so.8*
1801%lang(ja) %{_mandir}/ja/man8/ld.so.8*
2eac239d 1802%lang(ja) %{_mandir}/ja/man8/ldconfig.8*
4139e845
JK
1803%lang(pl) %{_mandir}/pl/man8/ld-linux.8*
1804%lang(pl) %{_mandir}/pl/man8/ld-linux.so.8*
1805%lang(pl) %{_mandir}/pl/man8/ld.so.8*
2eac239d
ER
1806%lang(pl) %{_mandir}/pl/man8/ldconfig.8*
1807%lang(pt) %{_mandir}/pt/man8/ldconfig.8*
4139e845
JK
1808%lang(ru) %{_mandir}/ru/man8/ld-linux.so.8*
1809%lang(ru) %{_mandir}/ru/man8/ld.so.8*
2eac239d 1810%lang(ru) %{_mandir}/ru/man8/ldconfig.8*
239a2604 1811%dir %attr(700,root,root) /var/cache/ldconfig
2f715077 1812%attr(600,root,root) %ghost /var/cache/ldconfig/aux-cache
2eac239d 1813
94655bd2 1814%files -n nss_compat
1815%defattr(644,root,root,755)
ce3b1100 1816%attr(755,root,root) /%{_lib}/libnss_compat-%{core_version}.so
6d1ad2d5 1817%attr(755,root,root) /%{_lib}/libnss_compat.so.2
94655bd2 1818
9a39df8d
ER
1819%files -n nss_db
1820%defattr(644,root,root,755)
1821%attr(755,root,root) %{_bindir}/makedb
1822%attr(755,root,root) /%{_lib}/libnss_db-%{core_version}.so
1823%attr(755,root,root) /%{_lib}/libnss_db.so.2
1824%{_var}/db/Makefile
1825
e82c8242 1826%files -n nss_hesiod
1827%defattr(644,root,root,755)
ce3b1100 1828%attr(755,root,root) /%{_lib}/libnss_hesiod-%{core_version}.so
6d1ad2d5 1829%attr(755,root,root) /%{_lib}/libnss_hesiod.so.2
e82c8242 1830
1831%files -n nss_nis
1832%defattr(644,root,root,755)
ce3b1100 1833%attr(755,root,root) /%{_lib}/libnss_nis-%{core_version}.so
6d1ad2d5 1834%attr(755,root,root) /%{_lib}/libnss_nis.so.2
e82c8242 1835
1836%files -n nss_nisplus
1837%defattr(644,root,root,755)
ce3b1100 1838%attr(755,root,root) /%{_lib}/libnss_nisplus-%{core_version}.so
6d1ad2d5 1839%attr(755,root,root) /%{_lib}/libnss_nisplus.so.2
e82c8242 1840
fd1d4127 1841%if %{with memusage}
4206408a 1842%files memusage
1843%defattr(644,root,root,755)
7bd184c8
JB
1844%attr(755,root,root) %{_bindir}/memusage
1845%attr(755,root,root) %{_bindir}/memusagestat
fd1d4127 1846%attr(755,root,root) %{_libdir}/libmemusage.so
7bd184c8
JB
1847%{_mandir}/man1/memusage.1*
1848%{_mandir}/man1/memusagestat.1*
1849%lang(ja) %{_mandir}/ja/man1/memusage.1*
1850%lang(ja) %{_mandir}/ja/man1/memusagestat.1*
5ea2d863 1851%endif
4206408a 1852
462c36a3 1853%files devel
236a5027 1854%defattr(644,root,root,755)
6d1ad2d5
JB
1855%attr(755,root,root) %{_libdir}/libBrokenLocale.so
1856%attr(755,root,root) %{_libdir}/libanl.so
40240acb 1857%attr(755,root,root) %{_libdir}/libcrypt.so
6d1ad2d5 1858%attr(755,root,root) %{_libdir}/libdl.so
40240acb 1859%attr(755,root,root) %{_libdir}/libm.so
ba143d99 1860%ifarch %{x8664} x32
ed35cb32 1861%attr(755,root,root) %{_libdir}/libmvec.so
a90add74 1862%endif
6d1ad2d5 1863%attr(755,root,root) %{_libdir}/libnsl.so
40240acb 1864%attr(755,root,root) %{_libdir}/libpcprofile.so
6d1ad2d5
JB
1865%attr(755,root,root) %{_libdir}/libresolv.so
1866%attr(755,root,root) %{_libdir}/librt.so
1867%attr(755,root,root) %{_libdir}/libthread_db.so
1868%attr(755,root,root) %{_libdir}/libutil.so
a8a2db2c 1869%{_libdir}/crt[1in].o
4928f174
AM
1870%{_libdir}/[MSgr]crt1.o
1871%{_libdir}/grcrt1.o
40240acb
JB
1872# ld scripts
1873%{_libdir}/libc.so
1874%{_libdir}/libpthread.so
6d1ad2d5 1875# static-only libs
110bcce8
AM
1876%ifarch %{x8664} x32
1877%{_libdir}/libmvec_nonshared.a
1878%endif
40240acb
JB
1879%{_libdir}/libc_nonshared.a
1880%{_libdir}/libg.a
5145b9c7
JB
1881%ifarch alpha ppc sparc
1882%{_libdir}/libnldbl_nonshared.a
1883%endif
40240acb 1884%{_libdir}/librpcsvc.a
d96a9968 1885%ifarch %{ix86} %{x8664} x32 ppc ppc64 s390 s390x sparc sparcv9 sparc64
6d1ad2d5 1886# ABI-dependent headers
5b00029e 1887%{_includedir}/gnu/stubs-*.h
fb46cf23 1888%endif
5b00029e
JB
1889
1890%files headers
1891%defattr(644,root,root,755)
462c36a3 1892%{_includedir}/*.h
3c882bd9
JB
1893%ifarch alpha
1894%{_includedir}/alpha
1895%endif
462c36a3 1896%{_includedir}/arpa
1897%{_includedir}/bits
644847e2
JB
1898%dir %{_includedir}/finclude
1899%{_includedir}/finclude/math-vector-fortran.h
5b00029e
JB
1900%dir %{_includedir}/gnu
1901%{_includedir}/gnu/lib*.h
1902%{_includedir}/gnu/stubs.h
462c36a3 1903%{_includedir}/net
1904%{_includedir}/netash
1905%{_includedir}/netatalk
1906%{_includedir}/netax25
1907%{_includedir}/neteconet
d410ca53 1908%{_includedir}/netiucv
462c36a3 1909%{_includedir}/netinet
1910%{_includedir}/netipx
1911%{_includedir}/netpacket
1912%{_includedir}/netrom
1913%{_includedir}/netrose
1914%{_includedir}/nfs
1915%{_includedir}/protocols
1916%{_includedir}/rpc
1917%{_includedir}/rpcsvc
1918%{_includedir}/scsi
1919%{_includedir}/sys
1920
5b00029e
JB
1921%files devel-utils
1922%defattr(644,root,root,755)
1923%attr(755,root,root) %{_bindir}/gencat
7bd184c8
JB
1924%attr(755,root,root) %{_bindir}/mtrace
1925%attr(755,root,root) %{_bindir}/pcprofiledump
1926%attr(755,root,root) %{_bindir}/sprof
1927%attr(755,root,root) %{_bindir}/xtrace
1928%{_mandir}/man1/mtrace.1*
1929%lang(ja) %{_mandir}/ja/man1/mtrace.1*
5b00029e
JB
1930
1931%files devel-doc
1932%defattr(644,root,root,755)
87cbe0ad 1933%doc documentation/*
900994f2 1934%{_infodir}/libc.info*
d90a3b13 1935
fa0f5e25 1936%{_mandir}/man1/sprof.1*
7bd184c8
JB
1937# just a link to getcwd.3
1938%{_mandir}/man2/getcwd.2*
b6fd0f3f
JB
1939# just a link to killpg.3
1940%{_mandir}/man2/killpg.2*
2c6699cc 1941%{_mandir}/man3/*
7bd184c8
JB
1942%{_mandir}/man7/aio.7*
1943%{_mandir}/man7/attributes.7*
1944%{_mandir}/man7/complex.7*
1945%{_mandir}/man7/feature_test_macros.7*
1946%{_mandir}/man7/glibc.7*
1947%{_mandir}/man7/glob.7*
1948%{_mandir}/man7/libc.7*
1949%{_mandir}/man7/math_error.7*
1950%{_mandir}/man7/nptl.7*
1951%{_mandir}/man7/posixoptions.7*
1952%{_mandir}/man7/pthreads.7*
1953%{_mandir}/man7/rtld-audit.7*
1954%{_mandir}/man7/sem_overview.7*
1955%{_mandir}/man7/shm_overview.7*
1fc785e2 1956%lang(cs) %{_mandir}/cs/man3/*
b6fd0f3f 1957%lang(de) %{_mandir}/de/man2/killpg.2*
1fc785e2 1958%lang(de) %{_mandir}/de/man3/*
b6fd0f3f 1959%lang(es) %{_mandir}/es/man2/killpg.2*
1fc785e2 1960%lang(es) %{_mandir}/es/man3/*
7bd184c8
JB
1961%lang(es) %{_mandir}/es/man7/glob.7*
1962%lang(fr) %{_mandir}/fr/man2/getcwd.2*
b6fd0f3f 1963%lang(fr) %{_mandir}/fr/man2/killpg.2*
1fc785e2 1964%lang(fr) %{_mandir}/fr/man3/*
cb6a4019 1965%lang(fr) %{_mandir}/fr/man7/aio.7*
7bd184c8
JB
1966%lang(fr) %{_mandir}/fr/man7/complex.7*
1967%lang(fr) %{_mandir}/fr/man7/feature_test_macros.7*
cb6a4019 1968%lang(fr) %{_mandir}/fr/man7/glibc.7*
7bd184c8 1969%lang(fr) %{_mandir}/fr/man7/glob.7*
cb6a4019
JB
1970%lang(fr) %{_mandir}/fr/man7/libc.7*
1971%lang(fr) %{_mandir}/fr/man7/math_error.7*
7bd184c8
JB
1972%lang(fr) %{_mandir}/fr/man7/posixoptions.7*
1973%lang(fr) %{_mandir}/fr/man7/pthreads.7*
cb6a4019 1974%lang(fr) %{_mandir}/fr/man7/rtld-audit.7*
7bd184c8
JB
1975%lang(fr) %{_mandir}/fr/man7/sem_overview.7*
1976%lang(fr) %{_mandir}/fr/man7/shm_overview.7*
1fc785e2 1977%lang(hu) %{_mandir}/hu/man3/*
fa0f5e25 1978%lang(it) %{_mandir}/it/man3/*
7bd184c8
JB
1979%lang(it) %{_mandir}/it/man7/glob.7*
1980%lang(ja) %{_mandir}/ja/man1/sprof.1*
1981%lang(ja) %{_mandir}/ja/man2/getcwd.2*
b6fd0f3f 1982%lang(ja) %{_mandir}/ja/man2/killpg.2*
1145bfaf 1983%lang(ja) %{_mandir}/ja/man3/*
7bd184c8
JB
1984%lang(ja) %{_mandir}/ja/man7/aio.7*
1985%lang(ja) %{_mandir}/ja/man7/complex.7*
1986%lang(ja) %{_mandir}/ja/man7/feature_test_macros.7*
1987%lang(ja) %{_mandir}/ja/man7/glibc.7*
1988%lang(ja) %{_mandir}/ja/man7/glob.7*
1989%lang(ja) %{_mandir}/ja/man7/libc.7*
1990%lang(ja) %{_mandir}/ja/man7/math_error.7*
1991%lang(ja) %{_mandir}/ja/man7/posixoptions.7*
1992%lang(ja) %{_mandir}/ja/man7/pthreads.7*
1993%lang(ja) %{_mandir}/ja/man7/sem_overview.7*
1994%lang(ja) %{_mandir}/ja/man7/shm_overview.7*
b6fd0f3f 1995%lang(ko) %{_mandir}/ko/man2/killpg.2*
1145bfaf 1996%lang(ko) %{_mandir}/ko/man3/*
1997%lang(nl) %{_mandir}/nl/man3/*
b6fd0f3f 1998%lang(pl) %{_mandir}/pl/man2/killpg.2*
1145bfaf 1999%lang(pl) %{_mandir}/pl/man3/*
b6fd0f3f 2000%lang(pt) %{_mandir}/pt/man2/killpg.2*
1145bfaf 2001%lang(pt) %{_mandir}/pt/man3/*
7bd184c8 2002%lang(pt) %{_mandir}/pt/man7/glob.7*
49ead7a0 2003%lang(ru) %{_mandir}/ru/man1/sprof.1*
b6fd0f3f 2004%lang(ru) %{_mandir}/ru/man2/killpg.2*
1145bfaf 2005%lang(ru) %{_mandir}/ru/man3/*
7bd184c8 2006%lang(ru) %{_mandir}/ru/man7/glob.7*
49ead7a0 2007%lang(tr) %{_mandir}/tr/man3/*
fa0f5e25
JB
2008%lang(uk) %{_mandir}/uk/man3/*
2009%lang(zh_CN) %{_mandir}/zh_CN/man3/*
7bd184c8 2010%lang(zh_CN) %{_mandir}/zh_CN/man7/glob.7*
cb6a4019
JB
2011%lang(zh_TW) %{_mandir}/zh_TW/man3/*
2012%lang(zh_TW) %{_mandir}/zh_TW/man7/glob.7*
7bd184c8
JB
2013
2014%files static
2015%defattr(644,root,root,755)
2016%{_libdir}/libanl.a
2017%{_libdir}/libBrokenLocale.a
2018%{_libdir}/libc.a
2019%{_libdir}/libcrypt.a
2020%{_libdir}/libdl.a
2021%{_libdir}/libm.a
2022%{_libdir}/libmcheck.a
ba143d99 2023%ifarch %{x8664} x32
5941dd9e 2024%{_libdir}/libm-%{core_version}.a
ed35cb32 2025%{_libdir}/libmvec.a
a90add74 2026%endif
7bd184c8
JB
2027%{_libdir}/libnsl.a
2028%{_libdir}/libpthread.a
2029%{_libdir}/libresolv.a
2030%{_libdir}/librt.a
2031%{_libdir}/libutil.a
2032
2033%files profile
2034%defattr(644,root,root,755)
2035%{_libdir}/lib*_p.a
2036
2037%files pic
2038%defattr(644,root,root,755)
2039%{_libdir}/lib*_pic.a
2040%{_libdir}/lib*.map
2041%{_libdir}/soinit.o
2042%{_libdir}/sofini.o
236a5027 2043
bab19d4a 2044%files -n nscd
2045%defattr(644,root,root,755)
f307cfc5
JB
2046%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
2047%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
46b7a91b 2048%attr(754,root,root) /etc/rc.d/init.d/nscd
4206408a 2049%attr(755,root,root) %{_sbindir}/nscd*
f307cfc5 2050%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
ddf4fb34 2051%attr(640,root,root) %ghost /var/log/nscd
4fa784f5 2052%{systemdtmpfilesdir}/nscd.conf
7dc8db4b 2053%dir /var/run/nscd
f307cfc5
JB
2054%dir /var/lib/nscd
2055%attr(600,root,root) %ghost /var/lib/nscd/passwd
2056%attr(600,root,root) %ghost /var/lib/nscd/group
2057%attr(600,root,root) %ghost /var/lib/nscd/hosts
fa0f5e25
JB
2058%{_mandir}/man5/nscd.conf.5*
2059%{_mandir}/man8/nscd.8*
2060%{_mandir}/man8/nscd_nischeck.8*
49ead7a0
JB
2061%lang(es) %{_mandir}/es/man5/nscd.conf.5*
2062%lang(es) %{_mandir}/es/man8/nscd.8*
fa0f5e25
JB
2063%lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
2064%lang(fr) %{_mandir}/fr/man8/nscd.8*
2065%lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
2066%lang(ja) %{_mandir}/ja/man8/nscd.8*
2067%lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
2068%lang(pt) %{_mandir}/pt/man8/nscd.8*
49ead7a0
JB
2069%lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
2070%lang(ru) %{_mandir}/ru/man8/nscd.8*
2071%lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
cb6a4019 2072%lang(zh_TW) %{_mandir}/zh_TW/man5/nscd.conf.5*
c43e39f5 2073
d34cb8bc 2074%files -n localedb-src
2075%defattr(644,root,root,755)
ba697d79 2076%attr(755,root,root) %{_bindir}/localedef
40430bed 2077%attr(755,root,root) %{_bindir}/localedb-gen
d34cb8bc 2078%{_datadir}/i18n
fa0f5e25 2079%{_mandir}/man1/localedef.1*
49ead7a0 2080%lang(ru) %{_mandir}/ru/man1/localedef.1*
40430bed 2081
0a85848c 2082%if %{with localedb}
40430bed
JB
2083%files localedb-all
2084%defattr(644,root,root,755)
d6e3a99e 2085%{_prefix}/lib/locale/locale-archive
0a85848c 2086%endif
d34cb8bc 2087
2088%files -n iconv
2089%defattr(644,root,root,755)
436fd1ea 2090%attr(755,root,root) %{_sbindir}/iconvconfig
fbd4c876 2091%dir %{_libdir}/gconv
2092%{_libdir}/gconv/gconv-modules
17a1a2af 2093%verify(not md5 mtime size) %{_libdir}/gconv/gconv-modules.cache
fbd4c876 2094%attr(755,root,root) %{_libdir}/gconv/*.so
7bd184c8
JB
2095%{_mandir}/man8/iconvconfig.8*
2096%lang(ja) %{_mandir}/ja/man8/iconvconfig.8*
This page took 0.848826 seconds and 4 git commands to generate.