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