]> git.pld-linux.org Git - packages/glibc.git/blame - glibc.spec
- rel 6; SECURITY FIX for http://seclists.org/fulldisclosure/2010/Oct/257 from fedora
[packages/glibc.git] / glibc.spec
CommitLineData
d4a9e47c
PG
1# TODO:
2# - look at locale fixes/updates in bugzilla
3# - no more chicken-egg problem (postshell is no more dynamically linked with libc), remove SONAME symlinks? see files section.
4# [OLD]
5# - localedb-gen man pages(?)
6# - math/{test-fenv,test-tgmath,test-float,test-ifloat},
7# debug/backtrace-tst(SEGV) fail on alpha
98a7741e 8#
b287d865 9# Conditional build:
5145b9c7 10# min_kernel (default is 2.6.12)
fd1d4127 11%bcond_without memusage # don't build memusage utility
757f96eb 12%bcond_without selinux # without SELinux support (in nscd)
c9d8e545 13%bcond_with tests # perform "make test"
0a85848c 14%bcond_without localedb # don't build localedb-all (is time consuming)
472e31ee 15%bcond_with cross # build using crossgcc (without libgcc_eh)
b287d865 16#
4c3586c2 17%{!?min_kernel:%global min_kernel 2.6.12}
f3f771b7 18
e24149ab
PS
19%ifarch sparc64
20%undefine with_memusage
21%endif
22
243dae60 23%define ports_version 2.12
f65fa240 24%define llh_version 7:2.6.20.4-1
e8c60795 25
236a5027 26Summary: GNU libc
32ba7e9f
ER
27Summary(de.UTF-8): GNU libc
28Summary(es.UTF-8): GNU libc
29Summary(fr.UTF-8): GNU libc
30Summary(ja.UTF-8): GNU libc ライブラリ
31Summary(pl.UTF-8): GNU libc
f55430af 32Summary(ru.UTF-8): GNU libc версии
32ba7e9f 33Summary(tr.UTF-8): GNU libc
f55430af 34Summary(uk.UTF-8): GNU libc версії
5240d049 35Name: glibc
243dae60 36Version: 2.12.1
f0e0dfc9 37Release: 6
f98eacd6 38Epoch: 6
c0367bf8 39License: LGPL v2.1+
236a5027 40Group: Libraries
243dae60
AM
41Source0: http://ftp.gnu.org/pub/gnu/glibc/%{name}-%{version}.tar.xz
42# Source0-md5: 4802b783766b5b487c601a19b5ce35f1
f789abee 43# Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-ports-%{version}.tar.bz2
243dae60 44Source1: %{name}-ports-%{ports_version}.tar.bz2
f789abee 45# Source1-md5: edbf6b9a5b9aa2c441d78343fe282c64
4206408a 46Source2: nscd.init
47Source3: nscd.sysconfig
48Source4: nscd.logrotate
940eb3e9 49#Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
d25c303c 50Source5: http://qboosh.pl/man/%{name}-man-pages.tar.bz2
49ead7a0
JB
51# Source5-md5: f464eadf3cf06761f65639e44a179e6b
52Source6: %{name}-localedb-gen
53Source7: %{name}-LD-path.c
c150d6cc 54Patch1: %{name}-pl.po-update.patch
4206408a 55Patch2: %{name}-pld.patch
56Patch3: %{name}-crypt-blowfish.patch
98036fec 57Patch5: %{name}-sparc-softfp-gcc.patch
4b000c98 58Patch6: %{name}-paths.patch
a456b349 59Patch7: %{name}-no_opt_override.patch
e69f9d61
JB
60Patch8: %{name}-missing-nls.patch
61Patch9: %{name}-java-libc-wait.patch
f2d222e0 62Patch10: %{name}-info.patch
a456b349 63Patch11: %{name}-no_debuggable_objects.patch
ba326c24 64Patch14: %{name}-sparc-errno_fix.patch
c150d6cc
JB
65Patch15: %{name}-new-charsets.patch
66Patch16: %{name}-tzfile-noassert.patch
67Patch17: %{name}-morelocales.patch
68Patch18: %{name}-locale_fixes.patch
69Patch19: %{name}-ZA_collate.patch
14013232 70Patch20: %{name}-thread_start.patch
c150d6cc
JB
71Patch21: %{name}-cross-gcc_eh.patch
72Patch22: %{name}-with-stroke.patch
73Patch23: %{name}-pt_pax.patch
17a1a2af 74Patch25: %{name}-cv_gnu89_inline.patch
cbf1c4bb 75Patch26: %{name}-posix-sh.patch
d11fa1bd 76Patch27: %{name}-i686.patch
f789abee 77Patch29: %{name}-arm-alignment-fix.patch
f69cae76 78Patch30: %{name}-static-glro-init.patch
591ac343 79Patch31: %{name}-newmake.patch
f0e0dfc9 80Patch32: %{name}-origin.patch
959d1cc7 81URL: http://www.gnu.org/software/libc/
f70abfbb 82%{?with_selinux:BuildRequires: audit-libs-devel}
5b00029e 83BuildRequires: autoconf
69afb5a6 84BuildRequires: automake
a146a9da
JB
85%ifarch alpha
86BuildRequires: binutils >= 2:2.17.50.0.7
87%else
6b6b6315 88BuildRequires: binutils >= 2:2.15.90.0.3
a146a9da 89%endif
141e8ae3 90%{!?with_cross:BuildRequires: dietlibc-static}
5145b9c7 91BuildRequires: gawk
3686eabe 92BuildRequires: gcc >= 6:4.3
fd1d4127 93%{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
29f12ae8 94BuildRequires: gettext-devel >= 0.10.36
757f96eb 95%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
f65fa240 96BuildRequires: linux-libc-headers >= %{llh_version}
872cafe3 97BuildRequires: nss-devel >= 1:3.12.3
c1db9e72 98BuildRequires: perl-base
42a6983a 99BuildRequires: rpm-build >= 4.3-0.20030610.28
f789abee 100BuildRequires: rpmbuild(macros) >= 1.567
9597ca56 101BuildRequires: sed >= 4.0.5
54e3db45 102BuildRequires: texinfo
cf408212 103Requires(post): ldconfig = %{epoch}:%{version}-%{release}
5145b9c7 104Requires: uname(release) >= %{min_kernel}
5145b9c7
JB
105Provides: glibc(nptl)
106Provides: glibc(tls)
56b2f963 107Provides: rtld(GNU_HASH)
e217c7d2
JB
108Obsoletes: glibc-common
109Obsoletes: glibc-debug
ed2a4886 110%ifarch %{x8664} sparc64 ppc64
bd3ecfb5
AM
111Provides: glibc64
112Obsoletes: glibc64
113%endif
2eac239d
ER
114Suggests: localedb
115Suggests: tzdata
0223ee0f 116Conflicts: %{name}-misc < %{epoch}:%{version}-%{release}
67cc5af0 117Conflicts: SysVinit < 2.86-11
ea3a228f 118Conflicts: kernel < %{min_kernel}
5145b9c7
JB
119Conflicts: kernel24
120Conflicts: kernel24-smp
4377d843 121Conflicts: ld.so < 1.9.9-10
bd975df5 122Conflicts: man-pages < 1.43
5b00029e 123Conflicts: poldek < 0.18.8-5
06fed0d7 124Conflicts: rc-scripts < 0.3.1-13
bd975df5 125Conflicts: rpm < 4.1
f789abee 126ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x sparc sparc64 sparcv9 ppc ppc64 armv5tel
a0eebe50 127BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d90a3b13 128
cf7b4302 129# avoid -s here (ld.so must not be stripped to allow any program debugging)
f620b835 130%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
9189fea3
AM
131# avoid -D_FORTIFY_SOURCE=X
132%define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+
133
355db1aa 134%define specflags_sparcv9 -mcpu=ultrasparc -mvis -fcall-used-g6
87a4ec26 135%define specflags_sparc64 -mcpu=ultrasparc -mvis -fcall-used-g6
5145b9c7 136
b96231b6
JB
137# ld.so needs not to be stripped to work
138# gdb needs unstripped libpthread for some threading support
139# ...but we can strip at least debuginfo from them
b99e5008 140%define _autostripdebug .*/ld-[0-9.]*so\\|.*/libpthread-[0-9.]*so
b96231b6 141
37f910e8
JB
142# -m from CFLAGS or even LDFLAGS is not propagated to some *.o linking
143%ifarch sparc sparcv9
144%{expand:%%define __cc %{__cc} -m32}
145%endif
146
f789abee 147# Architectures supported in glibc-ports
524363ff 148%define ports_arch alpha %{arm}
f789abee 149
5145b9c7
JB
150# Xen-friendly glibc
151%define specflags_ia32 -mno-tls-direct-seg-refs
ffb5bcf1
AM
152%define specflags_x86_64 -mno-tls-direct-seg-refs -fasynchronous-unwind-tables
153%define specflags_amd64 -mno-tls-direct-seg-refs -fasynchronous-unwind-tables
5145b9c7
JB
154%define specflags_ia32e -mno-tls-direct-seg-refs
155
ff9a9e81
JB
156# we don't want perl dependency in glibc-devel
157%define _noautoreqfiles %{_bindir}/mtrace
42a6983a
JB
158# hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
159# (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
160# patched not to crash on partial hardlinks too)
161%define _hack_dontneed_PartialHardlinkSets 1
26e88040 162%define _noautochrpath .*\\(ldconfig\\|sln\\)
31aa574a
AM
163# private symbols
164%define _noautoprov .*\(GLIBC_PRIVATE\)
165%define _noautoreq .*\(GLIBC_PRIVATE\)
b88b18eb 166
d90a3b13 167%description
7a3b906b 168Contains the standard libraries that are used by multiple programs on
169the system. In order to save disk space and memory, as well as to ease
602a978a 170upgrades, common system code is kept in one place and shared between
171programs. This package contains the most important sets of shared
7a3b906b 172libraries, the standard C library and the standard math library.
173Without these, a Linux system will not function. It also contains
b1414da6 174national language (locale) support.
76f01b70 175
1cb6acca 176Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 177
94008272
JR
178%description -l es.UTF-8
179Contiene las bibliotecas estándared que son usadas por varios
d22b4284 180programas del sistema. Para ahorrar el espacio en el disco y la
94008272 181memoria, igual que para facilitar actualizaciones, código común del
d22b4284 182sistema se guarda en un sitio y es compartido entre los programas.
94008272
JR
183Este paquete contiene las bibliotecas compartidas más importantes, es
184decir la biblioteca C estándar y la biblioteca estándar de matemática.
185Sin éstas, un sistema Linux no podrá funcionar. También está incluido
b1414da6 186soporte de idiomas nacionales (locale).
4a04bb32 187
94008272 188Puede usarse con: núcleo Linux >= %{min_kernel}.
4a04bb32 189
94008272
JR
190%description -l de.UTF-8
191Enthält die Standard-Libraries, die von verschiedenen Programmen im
7a3b906b 192System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
193und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
194einer einzigen Stelle gespeichert und wird von den Programmen
94008272 195gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
7a3b906b 196shared Libraries, die Standard-C-Library und die
197Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
94008272 198Ferner enthält es den Support für die verschiedenen Sprachgregionen
b1414da6 199(locale).
76f01b70 200
1cb6acca 201Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 202
94008272
JR
203%description -l fr.UTF-8
204Contient les bibliothèques standards utilisées par de nombreux
205programmes du système. Afin d'économiser l'espace disque et mémoire,
206et de faciliter les mises à jour, le code commun au système est mis à
207un endroit et partagé entre les programmes. Ce paquetage contient les
208bibliothèques partagées les plus importantes, la bibliothèque standard
209du C et la bibliothèque mathématique standard. Sans celles-ci, un
210système Linux ne peut fonctionner. Il contient aussi la gestion des
b1414da6 211langues nationales (locales).
76f01b70 212
1cb6acca 213Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 214
94008272 215%description -l ja.UTF-8
c5387ad5 216glibc
94008272
JR
217パッケージはシステム上の複数のプログラムで使われる標準ライブラリを
218ふくみます。ディスクスペースとメモリを節約したり、アップグレードを
219用意にするために、共通のシステムコードは一つの場所におかれ、プログラム
220間で共有されます。この部分的なパッケージはシェアドライブラリのかなり
221重要なセットをふくみます: 標準 C ライブラリと標準数値ライブラリです。
222この二つのライブラリ抜きでは、Linux システムは機能しません。 glibc
223パッケージはまた地域言語 (locale) サポートとタイムゾーンデータベース
224サポートをふくみます。
76f01b70 225
1cb6acca 226Can be used on: Linux kernel >= %{min_kernel}.
e50f6fb1 227
94008272
JR
228%description -l pl.UTF-8
229W pakiecie znajdują się podstawowe biblioteki, używane przez różne
230programy w Twoim systemie. Używanie przez programy bibliotek z tego
231pakietu oszczędza miejsce na dysku i pamięć. Większość kodu
232systemowego jest usytuowane w jednym miejscu i dzielone między wieloma
233programami. Pakiet ten zawiera bardzo ważny zbiór bibliotek
234standardowych, współdzielonych (dynamicznych) bibliotek C i
235matematycznych. Bez glibc system Linux nie jest w stanie funkcjonować.
236Znajdują się tutaj również definicje różnych informacji dla wielu
237języków (locale).
238
239Pakiet jest przeznaczony dla jądra Linuksa >= %{min_kernel}.
240
241%description -l ru.UTF-8
242Содержит стандартные библиотеки, используемые многочисленными
243программами в системе. Для того, чтобы сохранить дисковое пространство
244и память, а также для простоты обновления, системный код, общий для
245всех программ, хранится в одном месте и коллективно используется всеми
246программами. Этот пакет содержит наиболее важные из разделяемых
247библиотек - стандартную библиотеку C и стандартную библиотеку
248математики. Без этих библиотек Linux функционировать не будет. Также
249пакет содержит поддержку национальных языков (locale).
76f01b70 250
1cb6acca 251Can be used on: Linux kernel >= %{min_kernel}.
98a7741e 252
94008272
JR
253%description -l tr.UTF-8
254Bu paket, birçok programın kullandığı standart kitaplıkları içerir.
255Disk alanı ve bellek kullanımını azaltmak ve aynı zamanda güncelleme
256işlemlerini kolaylaştırmak için ortak sistem kodları tek bir yerde
257tutulup programlar arasında paylaştırılır. Bu paket en önemli ortak
258kitaplıkları, standart C kitaplığını ve standart matematik kitaplığını
259içerir. Bu kitaplıklar olmadan Linux sistemi çalışmayacaktır. Yerel
260dil desteği ve zaman dilimi veri tabanı da bu pakette yer alır.
76f01b70 261
1cb6acca 262Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 263
94008272
JR
264%description -l uk.UTF-8
265Містить стандартні бібліотеки, котрі використовуються численними
266програмами в системі. Для того, щоб зберегти дисковий простір та
267пам'ять, а також для простоти поновлення системи, системний код,
268спільний для всіх програм, зберігається в одному місці і колективно
269використовується всіма програмами. Цей пакет містить найбільш важливі
270з динамічних бібліотек - стандартну бібліотеку С та стандартну
271бібліотеку математики. Без цих бібліотек Linux функціонувати не буде.
272Також пакет містить підтримку національних мов (locale).
76f01b70 273
1cb6acca 274Can be used on: Linux kernel >= %{min_kernel}.
98a7741e 275
c4fea372
JK
276%package misc
277Summary: Utilities and data used by glibc
32ba7e9f 278Summary(pl.UTF-8): Narzędzia i dane używane przez glibc
e44a2813 279Group: Applications/System
71181534 280Requires: %{name} = %{epoch}:%{version}-%{release}
c4fea372
JK
281
282%description misc
fd1d4127
JB
283Utilities and data used by glibc.
284
94008272
JR
285%description misc -l pl.UTF-8
286Narzędzia i dane używane przez glibc.
c4fea372 287
2eac239d
ER
288%package libcrypt
289Summary: glibc library for crypt(3)
33f26cf9 290Summary(pl.UTF-8): Biblioteka glibc z funkcją crypt(3)
2eac239d
ER
291Group: Libraries
292Requires: %{name} = %{epoch}:%{version}-%{release}
050e821f 293Provides: crypt(blowfish)
2eac239d
ER
294
295%description libcrypt
296glibc library for crypt(3).
297
33f26cf9
JB
298%description libcrypt -l pl.UTF-8
299Biblioteka glibc z funkcją crypt(3).
300
cf408212 301%package -n ldconfig
a2e4eb0a 302Summary: Create shared library cache and maintains symlinks
cf408212
ER
303Summary(de.UTF-8): Erstellt ein shared library cache und verwaltet symlinks
304Summary(fr.UTF-8): Crée un cache de bibliothčque partagée et gčre *.so
a2e4eb0a 305Summary(pl.UTF-8): Tworzenie cache'u bibliotek dynamicznych i ich dowiązań symbolicznych
cf408212
ER
306Summary(tr.UTF-8): Ortak kitaplýk önbelleđi yaratýr ve bađlantýlarý kurar
307Group: Applications/System
308# This is needed because previous package (glibc) had autoreq false and had
309# provided this manually. Probably poldek bug that have to have it here.
310Provides: /sbin/ldconfig
2eac239d
ER
311# we want FHS being installed before ldconfig, altho they are both unrelated to each-other.
312Requires: FHS
cf408212
ER
313
314%description -n ldconfig
315ldconfig scans a running system and sets up the symbolic links that
316are used to load shared libraries properly. It also creates
317/etc/ld.so.cache which speeds the loading programs which use shared
318libraries.
319
cf408212
ER
320%description -n ldconfig -l de.UTF-8
321ldconfig scannt ein laufendes System und richtet die symbolischen
322Verknüpfungen zum Laden der gemeinsam genutzten Libraries ein.
323Außerdem erstellt es /etc/ld.so.cache, was das Laden von Programmen
324mit gemeinsam genutzten Libraries beschleunigt.
325
326%description -n ldconfig -l fr.UTF-8
327ldconfig analyse un systčme et configure les liens symboliques
328utilisés pour charger correctement les bibliothčques partagées. Il
329crée aussi /etc/ld.so.cache qui accélčre le chargement des programmes
330utilisant les bibliothčques partagées.
331
a2e4eb0a
JB
332%description -n ldconfig -l pl.UTF-8
333ldconfig testuje uruchominy system i tworzy dowiązania symboliczne,
334które są następnie używane do poprawnego ładowania bibliotek
335dynamicznych. Program ten tworzy plik /etc/ld.so.cache, który
336przyśpiesza ładowanie programów korzystających z bibliotek
337dynamicznych.
338
cf408212
ER
339%description -n ldconfig -l tr.UTF-8
340ldconfig, çalýţmakta olan sistemi araţtýrýr ve ortak kitaplýklarýn
341düzgün bir ţekilde yüklenmesi için gereken simgesel bađlantýlarý
342kurar. Ayrýca ortak kitaplýklarý kullanan programlarýn yüklenmesini
343hýzlandýran /etc/ld.so.cache dosyasýný yaratýr.
344
fb120840 345%package devel
959d1cc7 346Summary: Additional libraries required to compile
32ba7e9f
ER
347Summary(de.UTF-8): Weitere Libraries zum Kompilieren
348Summary(es.UTF-8): Bibliotecas adicionales necesarias para la compilación
349Summary(fr.UTF-8): Librairies supplémentaires nécessaires à la compilation
350Summary(ja.UTF-8): 標準 C ライブラリで使われるヘッダーとオブジェクトファイル
351Summary(pl.UTF-8): Dodatkowe biblioteki wymagane podczas kompilacji
352Summary(ru.UTF-8): Дополнительные библиотеки, необходимые для компиляции
353Summary(tr.UTF-8): Geliştirme için gerekli diğer kitaplıklar
354Summary(uk.UTF-8): Додаткові бібліотеки, потрібні для компіляції
959d1cc7 355Group: Development/Libraries
69afb5a6 356Requires: %{name} = %{epoch}:%{version}-%{release}
5b00029e 357Requires: %{name}-devel-utils = %{epoch}:%{version}-%{release}
9b9eac8d 358Requires: %{name}-headers = %{epoch}:%{version}-%{release}
5b00029e 359Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
b34a4e03 360Obsoletes: libiconv-devel
959d1cc7 361
362%description devel
7a3b906b 363To develop programs which use the standard C libraries (which nearly
364all programs do), the system needs to have these standard header files
365and object files available for creating the executables.
959d1cc7 366
94008272 367%description devel -l de.UTF-8
7a3b906b 368Bei der Entwicklung von Programmen, die die Standard-C-Libraries
94008272
JR
369verwenden (also fast alle), benötigt das System diese Standard-Header-
370und Objektdateien zum Erstellen der ausführbaren Programme.
d90a3b13 371
94008272
JR
372%description devel -l es.UTF-8
373Para desarrollar programas que utilizan las bibliotecas C estándar (lo
374cual hacen prácticamente todos los programas), el sistema necesita
4a04bb32 375disponer de estos ficheros de cabecera y de objetos para crear los
376ejecutables.
377
94008272
JR
378%description devel -l fr.UTF-8
379Pour développer des programmes utilisant les bibliothèques standard du
380C (ce que presque tous les programmes font), le système doit posséder
381ces fichiers en-têtes et objets standards pour créer les exécutables.
382
383%description devel -l ja.UTF-8
384glibc-devel パッケージは(ほとんどすべてのプログラムで使われる)標準 C
385ライブラリを使用したプログラムを開発するためのヘッダーとオブジェクト
386ファイルを含みます。もし標準 C
387ライブラリを使用するプログラムを開発するなら
388実行ファイルを作成する目的でこれらの標準ヘッダとオブジェクトファイル
389が使用できます。
390
391%description devel -l pl.UTF-8
392Pakiet ten jest niezbędny przy tworzeniu własnych programów
393korzystających ze standardowej biblioteki C. Znajdują się tutaj pliki
394nagłówkowe oraz pliki obiektowe, niezbędne do kompilacji programów
7a3b906b 395wykonywalnych i innych bibliotek.
d90a3b13 396
94008272
JR
397%description devel -l ru.UTF-8
398Для разработки программ, использующих стандартные библиотеки C (а
399практически все программы их используют), системе НЕОБХОДИМЫ хедеры и
400объектные файлы, содержащиеся в этом пакете, чтобы создавать
401исполняемые файлы.
98a7741e 402
94008272
JR
403%description devel -l tr.UTF-8
404C kitaplığını kullanan (ki hemen hemen hepsi kullanıyor) programlar
405geliştirmek için gereken standart başlık dosyaları ve statik
406kitaplıklar.
d90a3b13 407
94008272
JR
408%description devel -l uk.UTF-8
409Для розробки програм, що використовують стандартні бібліотеки C
410(практично всі програми їх використовують), системі НЕОБХІДНІ хедери
411та об'єктні файли, що містяться в цьому пакеті, цоб створювати
412виконувані файли.
98a7741e 413
5b00029e
JB
414%package headers
415Summary: Header files for development using standard C libraries
32ba7e9f 416Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu standardowych bibliotek C
e44a2813 417Group: Development/Building
5b00029e
JB
418Provides: %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
419%ifarch %{x8664}
5145b9c7 420# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
5b00029e 421# have to be installed, not ix86 one.
ae2d70c9
ER
422Obsoletes: glibc-headers(athlon)
423Obsoletes: glibc-headers(i386)
424Obsoletes: glibc-headers(i486)
425Obsoletes: glibc-headers(i586)
426Obsoletes: glibc-headers(i686)
427Obsoletes: glibc-headers(pentium3)
428Obsoletes: glibc-headers(pentium4)
5b00029e 429%endif
f70abfbb 430%ifarch ppc64
ae2d70c9 431Obsoletes: glibc-headers(ppc)
f70abfbb
JB
432%endif
433%ifarch s390x
ae2d70c9 434Obsoletes: glibc-headers(s390)
f70abfbb
JB
435%endif
436%ifarch sparc64
ae2d70c9 437Obsoletes: glibc-headers(sparc)
f70abfbb 438%endif
f65fa240 439Requires: linux-libc-headers >= %{llh_version}
5b00029e
JB
440
441%description headers
442The glibc-headers package contains the header files necessary for
443developing programs which use the standard C libraries (which are used
444by nearly all programs). If you are developing programs which will use
445the standard C libraries, your system needs to have these standard
446header files available in order to create the executables.
447
448Install glibc-headers if you are going to develop programs which will
449use the standard C libraries.
450
94008272
JR
451%description headers -l pl.UTF-8
452Pakiet glibc-headers zawiera pliki nagłówkowe niezbędne do rozwijania
453programów używających standardowych bibliotek C (używanych przez
454prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
455standardowych bibliotek C, system wymaga dostępności tych
456standardowych plików nagłówkowych do tworzenia programów
5b00029e
JB
457wykonywalnych.
458
94008272
JR
459Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
460korzystające ze standardowych bibliotek C.
5b00029e
JB
461
462%package devel-utils
463Summary: Utilities needed for development using standard C libraries
32ba7e9f 464Summary(pl.UTF-8): Narzędzia do tworzenia programów przy użyciu standardowych bibliotek C
5b00029e
JB
465Group: Development/Libraries
466Provides: %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
467%ifarch %{x8664}
468# If both -m32 and -m64 is to be supported on AMD64, x86_64 package
469# have to be installed, not ix86 one.
ae2d70c9
ER
470Obsoletes: glibc-devel-utils(athlon)
471Obsoletes: glibc-devel-utils(i386)
472Obsoletes: glibc-devel-utils(i486)
473Obsoletes: glibc-devel-utils(i586)
474Obsoletes: glibc-devel-utils(i686)
475Obsoletes: glibc-devel-utils(pentium3)
476Obsoletes: glibc-devel-utils(pentium4)
5b00029e 477%endif
f70abfbb 478%ifarch ppc64
ae2d70c9 479Obsoletes: glibc-devel-utils(ppc)
f70abfbb
JB
480%endif
481%ifarch s390x
ae2d70c9 482Obsoletes: glibc-devel-utils(s390)
f70abfbb
JB
483%endif
484%ifarch sparc64
ae2d70c9 485Obsoletes: glibc-devel-utils(sparc)
f70abfbb 486%endif
5b00029e
JB
487
488%description devel-utils
489The glibc-devel-utils package contains utilities necessary for
490developing programs which use the standard C libraries (which are used
491by nearly all programs). If you are developing programs which will use
492the standard C libraries, your system needs to have these utilities
493available.
494
495Install glibc-devel-utils if you are going to develop programs which
496will use the standard C libraries.
497
94008272
JR
498%description devel-utils -l pl.UTF-8
499Pakiet glibc-devel-utils zawiera narzędzia niezbędne do rozwijania
500programów używających standardowych bibliotek C (używanych przez
501prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
502standardowych bibliotek C, system wymaga dostępności tych narzędzi do
503tworzenia programów wykonywalnych.
5b00029e 504
94008272
JR
505Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
506korzystające ze standardowych bibliotek C.
5b00029e
JB
507
508%package devel-doc
509Summary: Documentation needed for development using standard C libraries
32ba7e9f 510Summary(pl.UTF-8): Dokumentacja do tworzenia programów przy użyciu standardowych bibliotek C
5b00029e
JB
511Group: Documentation
512Provides: %{name}-devel-doc(%{_target_cpu}) = %{epoch}:%{version}-%{release}
513%ifarch %{x8664}
5145b9c7 514# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
5b00029e 515# have to be installed, not ix86 one.
ae2d70c9
ER
516Obsoletes: glibc-devel-doc(athlon)
517Obsoletes: glibc-devel-doc(i386)
518Obsoletes: glibc-devel-doc(i486)
519Obsoletes: glibc-devel-doc(i586)
520Obsoletes: glibc-devel-doc(i686)
521Obsoletes: glibc-devel-doc(pentium3)
522Obsoletes: glibc-devel-doc(pentium4)
5b00029e 523%endif
f70abfbb 524%ifarch ppc64
ae2d70c9 525Obsoletes: glibc-devel-doc(ppc)
f70abfbb
JB
526%endif
527%ifarch s390x
ae2d70c9 528Obsoletes: glibc-devel-doc(s390)
f70abfbb
JB
529%endif
530%ifarch sparc64
ae2d70c9 531Obsoletes: glibc-devel-doc(sparc)
f70abfbb 532%endif
5b00029e
JB
533
534%description devel-doc
535The glibc-devel-doc package contains info and manual pages necessary
536for developing programs which use the standard C libraries (which are
537used by nearly all programs).
538
539Install glibc-devel-doc if you are going to develop programs which
540will use the standard C libraries.
541
94008272 542%description devel-doc -l pl.UTF-8
5b00029e 543Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
94008272 544rozwijania programów używających standardowych bibliotek C (używanych
5b00029e
JB
545przez prawie wszystkie programy).
546
94008272
JR
547Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
548korzystające ze standardowych bibliotek C.
5b00029e 549
fb120840 550%package -n nscd
bab19d4a 551Summary: Name Service Caching Daemon
32ba7e9f
ER
552Summary(es.UTF-8): Demonio de caché del servicio de nombres
553Summary(ja.UTF-8): ネームサービスキャッシングデーモン (nacd)
554Summary(pl.UTF-8): Demon zapamiętujący odpowiedzi serwisów nazw
555Summary(ru.UTF-8): Кэширующий демон сервисов имен
556Summary(uk.UTF-8): Кешуючий демон севісів імен
c0367bf8 557License: GPL v2
141e8ae3 558Group: Networking/Daemons
9b9eac8d
ER
559Requires(post): fileutils
560Requires(post,preun): /sbin/chkconfig
561Requires(postun): /usr/sbin/groupdel
562Requires(postun): /usr/sbin/userdel
da7cc665
JB
563Requires(pre): /bin/id
564Requires(pre): /usr/bin/getgid
565Requires(pre): /usr/sbin/groupadd
566Requires(pre): /usr/sbin/useradd
69afb5a6 567Requires: %{name} = %{epoch}:%{version}-%{release}
da7cc665 568%{?with_selinux:Requires: libselinux >= 1.18}
71181534 569Requires: rc-scripts >= 0.2.0
da7cc665
JB
570Provides: group(nscd)
571Provides: user(nscd)
bab19d4a 572
573%description -n nscd
7a3b906b 574nscd caches name service lookups; it can dramatically improve
90ff660b 575performance with NIS+, and may help with DNS as well.
bab19d4a 576
94008272
JR
577%description -n nscd -l es.UTF-8
578nscd guarda las peticiones del servicio de nombres en una caché; eso
579puede aumentar drásticamente las prestaciones de NIS+, y también puede
90ff660b 580ayudar con DNS.
4a04bb32 581
94008272
JR
582%description -n nscd -l ja.UTF-8
583Nscd はネームサービス参照をキャッシュし、NIS+ のパフォーマンスを
584ドラマティックに改善することができ、DNS を同様に補助します。
c5387ad5 585
94008272
JR
586%description -n nscd -l pl.UTF-8
587nscd zapamiętuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
588drastycznie poprawić szybkość działania NIS+.
c43e39f5 589
94008272
JR
590%description -n nscd -l ru.UTF-8
591nscd кэширует результаты запросов к сервисам имен; это может резко
592увеличить производительность работы с NIS+ и, также, может помочь с
98a7741e 593DNS.
594
94008272
JR
595%description -n nscd -l uk.UTF-8
596nscd кешує результати запросів до сервісів імен; це може сильно
597збільшити швидкість роботи з NIS+ і, також, може допомогти з DNS.
98a7741e 598
d34cb8bc 599%package -n localedb-src
c5895f38 600Summary: locale database source code
32ba7e9f
ER
601Summary(es.UTF-8): Código fuente de la base de datos de los locales
602Summary(pl.UTF-8): Kod źródłowy bazy locale
2abb6d39 603Group: Libraries
69afb5a6 604Requires: %{name} = %{epoch}:%{version}-%{release}
860ccbf5 605Requires: gzip
a22f09bc 606Requires: sed
3fb16489 607Provides: localedb
d34cb8bc 608
609%description -n localedb-src
7a3b906b 610This add-on package contains the data needed to build the locale data
40430bed 611files to use the internationalization features of the GNU libc.
d34cb8bc 612
94008272 613%description -n localedb-src -l es.UTF-8
4a04bb32 614Este paquete adicional contiene los datos necesarios para construir
615los ficheros de locale, imprescindibles para usar las cualidades de
94008272 616internacionalización de GNU libc.
4a04bb32 617
94008272
JR
618%description -n localedb-src -l pl.UTF-8
619Pakiet ten zawiera dane niezbędne do zbudowania binarnych plików
620lokalizacyjnych, by móc wykorzystać możliwości oferowane przez GNU
40430bed
JB
621libc.
622
623%package localedb-all
624Summary: locale database for all locales supported by glibc
32ba7e9f
ER
625Summary(es.UTF-8): Base de datos de todos los locales soportados por glibc
626Summary(pl.UTF-8): Baza danych locale dla wszystkich lokalizacji obsługiwanych przez glibc
40430bed 627Group: Libraries
69afb5a6 628Requires: %{name} = %{epoch}:%{version}-%{release}
9b9eac8d 629Requires: iconv = %{epoch}:%{version}-%{release}
3fb16489 630Provides: localedb
40430bed
JB
631
632%description localedb-all
633This package contains locale database for all locales supported by
420cf057 634glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
40430bed
JB
635something smaller with support for chosen locales only, consider
636installing localedb-src and regenerating database using localedb-gen
637script (when database is generated, localedb-src can be uninstalled).
638
94008272 639%description localedb-all -l es.UTF-8
d22b4284 640Este paquete contiene una base de datos de todos los locales
94008272
JR
641soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
64239 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
643locales elegidos, considérese instalar localedb-src y regenerar la
d22b4284 644base de datos usando el escript localedb-gen (una vez que la base de
94008272 645datos esté creada, localedb-src se podrá desinstalar).
4a04bb32 646
94008272
JR
647%description localedb-all -l pl.UTF-8
648Ten pakiet zawiera bazę danych locale dla wszystkich lokalizacji
649obsługiwanych przez glibc. W glibc 2.3.x jest to jeden duży plik
650(około 39MB); aby mieć coś mniejszego, z obsługą tylko wybranych
651lokalizacji, należy zainstalować pakiet localedb-src i przegenerować
652bazę danych przy użyciu skryptu localedb-gen (po wygenerowaniu bazy
653pakiet localedb-src można odinstalować).
d34cb8bc 654
655%package -n iconv
656Summary: Convert encoding of given files from one encoding to another
32ba7e9f
ER
657Summary(es.UTF-8): Convierte entre varias codificaciones de los ficheros dados
658Summary(pl.UTF-8): Moduły do konwersji plików tekstowych z jednego kodowania do innego
2abb6d39 659Group: Libraries
69afb5a6 660Requires: %{name} = %{epoch}:%{version}-%{release}
175873de 661Provides: iconv(%{_target_base_arch})
d34cb8bc 662
663%description -n iconv
7a3b906b 664Convert encoding of given files from one encoding to another. You need
4a04bb32 665this package if you want to convert some document from one encoding to
c5895f38 666another or if you have installed some programs which use Generic
7a3b906b 667Character Set Conversion Interface.
d34cb8bc 668
94008272
JR
669%description -n iconv -l es.UTF-8
670Convierte la codificación de dados ficheros. Necesita este paquete si
671quiere convertir un documento entre una codificación (juego de
672caracteres) y otra, o si tiene instalado algún programa que usa el
673Generic Character Set Conversion Interface (interfaz genérica de
674conversión de juegos de caracteres).
675
676%description -n iconv -l pl.UTF-8
677Moduły do konwersji plików tekstowych z jednego kodowania do innego.
678Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
679dokumentów z jednego kodowania do innego lub do używania programów
680korzystających z Generic Character Set Conversion Interface w glibc,
681czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
2abb6d39 682kodowania danych z poziomu dowolnego programu.
d34cb8bc 683
fb120840 684%package static
c7df086f 685Summary: Static libraries
32ba7e9f
ER
686Summary(es.UTF-8): Bibliotecas estáticas
687Summary(pl.UTF-8): Biblioteki statyczne
688Summary(ru.UTF-8): Статические библиотеки glibc
689Summary(uk.UTF-8): Статичні бібліотеки glibc
c7df086f 690Group: Development/Libraries
69afb5a6 691Requires: %{name}-devel = %{epoch}:%{version}-%{release}
ca91c518 692Provides: %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
b34a4e03 693Obsoletes: libiconv-static
c7df086f 694
695%description static
d34cb8bc 696GNU libc static libraries.
c7df086f 697
94008272
JR
698%description static -l es.UTF-8
699Bibliotecas estáticas de GNU libc.
4a04bb32 700
94008272 701%description static -l pl.UTF-8
d34cb8bc 702Biblioteki statyczne GNU libc.
703
94008272
JR
704%description static -l ru.UTF-8
705Это отдельный пакет со статическими библиотеками, которые больше не
706входят в glibc-devel.
98a7741e 707
94008272
JR
708%description static -l uk.UTF-8
709Це окремий пакет зі статичними бібліотеками, що більше не входять в
710склад glibc-devel.
98a7741e 711
d34cb8bc 712%package profile
713Summary: glibc with profiling support
32ba7e9f
ER
714Summary(de.UTF-8): glibc mit Profil-Unterstützung
715Summary(es.UTF-8): glibc con soporte de perfilamiento
716Summary(fr.UTF-8): glibc avec support pour profiling
717Summary(pl.UTF-8): glibc ze wsparciem dla profilowania
718Summary(ru.UTF-8): GNU libc с поддержкой профайлера
719Summary(tr.UTF-8): Ölçüm desteği olan glibc
720Summary(uk.UTF-8): GNU libc з підтримкою профайлера
d34cb8bc 721Group: Development/Libraries/Libc
69afb5a6 722Requires: %{name}-devel = %{epoch}:%{version}-%{release}
dd75ad7c 723Obsoletes: libc-profile
d34cb8bc 724
725%description profile
4a04bb32 726When programs are being profiled using gprof, they must use these
7a3b906b 727libraries instead of the standard C libraries for gprof to be able to
728profile them correctly.
d34cb8bc 729
94008272
JR
730%description profile -l de.UTF-8
731Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
732Libraries anstelle der üblichen C-Libraries verwendet werden.
d34cb8bc 733
94008272 734%description profile -l es.UTF-8
4a04bb32 735Cuando programas son perfilidas usando gprof, tienen que usar estas
94008272 736biblioteces en vez de las estándares para que gprof pueda perfilarlas
4a04bb32 737correctamente.
738
94008272
JR
739%description profile -l pl.UTF-8
740Programy profilowane za pomocą gprof muszą używać tych bibliotek
741zamiast standardowych bibliotek C, aby gprof mógł odpowiednio je
742wyprofilować.
743
744%description profile -l uk.UTF-8
745Коли програми досліджуються профайлером gprof, вони повинні
746використовувати замість стандартних бібліотек бібліотеки, що містяться
747в цьому пакеті. При використанні стандартних бібліотек gprof замість
748реальних результатів буде показувати ціни на папайю в Гонолулу в
749позаминулому році...
750
751%description profile -l tr.UTF-8
752gprof kullanılarak ölçülen programlar standart C kitaplığı yerine bu
753kitaplığı kullanmak zorundadırlar.
754
755%description profile -l ru.UTF-8
756Когда программы исследуются профайлером gprof, они должны
757использовать, вместо стандартных библиотек, библиотеки, включенные в
758этот пакет. При использовании стандартных библиотек gprof вместо
759реальных результатов будет показывать цены на папайю в Гонолулу в
760позапрошлом году...
98a7741e 761
71a76fad 762%package pic
5240d049 763Summary: glibc PIC archive
32ba7e9f
ER
764Summary(es.UTF-8): Archivo PIC de glibc
765Summary(pl.UTF-8): Archiwum PIC glibc
908ab141 766Group: Development/Libraries/Libc
69afb5a6 767Requires: %{name}-devel = %{epoch}:%{version}-%{release}
71a76fad 768
769%description pic
908ab141 770GNU C Library PIC archive contains an archive library (ar file)
771composed of individual shared objects. This is used for creating a
772library which is a smaller subset of the standard libc shared library.
71a76fad 773
94008272 774%description pic -l es.UTF-8
d22b4284
SP
775El archivo PIC de la biblioteca glibc contiene una biblioteca
776archivada (un fichero ar) compuesta de individuales objetos
777compartidos. Es usado para crear una biblioteca que sea un subconjunto
94008272 778más pequeño de la biblioteca libc compartida estándar.
4a04bb32 779
94008272
JR
780%description pic -l pl.UTF-8
781Archiwum PIC biblioteki GNU C zawiera archiwalną bibliotekę (plik ar)
782złożoną z pojedynczych obiektów współdzielonych. Używana jest do
783tworzenia biblioteki będącej mniejszym podzestawem standardowej
784biblioteki współdzielonej libc.
5240d049 785
4206408a 786%package -n nss_compat
787Summary: Old style NYS NSS glibc module
32ba7e9f
ER
788Summary(es.UTF-8): El antiguo módulo NYS NSS de glibc
789Summary(pl.UTF-8): Stary moduł NYS NSS glibc
4206408a 790Group: Base
69afb5a6 791Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 792
4206408a 793%description -n nss_compat
5240d049
TP
794Old style NYS NSS glibc module.
795
94008272
JR
796%description -n nss_compat -l es.UTF-8
797El antiguo módulo NYS NSS de glibc
4a04bb32 798
94008272
JR
799%description -n nss_compat -l pl.UTF-8
800Stary moduł NYS NSS glibc.
c37d4a8e 801
4206408a 802%package -n nss_dns
803Summary: BIND NSS glibc module
32ba7e9f
ER
804Summary(es.UTF-8): Módulo BIND NSS de glibc
805Summary(pl.UTF-8): Moduł BIND NSS glibc
4206408a 806Group: Base
69afb5a6 807Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 808
4206408a 809%description -n nss_dns
810BIND NSS glibc module.
c37d4a8e 811
94008272
JR
812%description -n nss_dns -l es.UTF-8
813Módulo BIND NSS de glibc.
4a04bb32 814
94008272
JR
815%description -n nss_dns -l pl.UTF-8
816Moduł BIND NSS glibc.
5240d049 817
4206408a 818%package -n nss_files
819Summary: Traditional files databases NSS glibc module
32ba7e9f
ER
820Summary(es.UTF-8): Módulo de tradicionales bases de datos en ficheros para glibc
821Summary(pl.UTF-8): Moduł tradycyjnych plikowych baz danych NSS glibc
4206408a 822Group: Base
69afb5a6 823Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 824
4206408a 825%description -n nss_files
826Traditional files databases NSS glibc module.
c37d4a8e 827
94008272
JR
828%description -n nss_files -l es.UTF-8
829Módulo de tradicionales bases de datos en ficheros para glibc.
4a04bb32 830
94008272
JR
831%description -n nss_files -l pl.UTF-8
832Moduł tradycyjnych plikowych baz danych NSS glibc.
5240d049 833
4206408a 834%package -n nss_hesiod
c6600969 835Summary: hesiod NSS glibc module
32ba7e9f
ER
836Summary(es.UTF-8): Módulo hesiod NSS de glibc
837Summary(pl.UTF-8): Moduł hesiod NSS glibc
4206408a 838Group: Base
69afb5a6 839Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 840
4206408a 841%description -n nss_hesiod
5240d049
TP
842glibc NSS (Name Service Switch) module for databases access.
843
94008272
JR
844%description -n nss_hesiod -l es.UTF-8
845Módulo hesiod NSS de glibc.
4a04bb32 846
94008272
JR
847%description -n nss_hesiod -l pl.UTF-8
848Moduł glibc NSS (Name Service Switch) dostępu do baz danych.
c37d4a8e 849
4206408a 850%package -n nss_nis
851Summary: NIS(YP) NSS glibc module
32ba7e9f
ER
852Summary(es.UTF-8): Módulo NIS(YP) NSS de glibc
853Summary(pl.UTF-8): Moduł NIS(YP) NSS glibc
4206408a 854Group: Base
69afb5a6 855Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 856
4206408a 857%description -n nss_nis
5240d049
TP
858glibc NSS (Name Service Switch) module for NIS(YP) databases access.
859
94008272
JR
860%description -n nss_nis -l es.UTF-8
861Módulo NSS de glibc para acceder las bases de datos NIS(YP).
4a04bb32 862
94008272
JR
863%description -n nss_nis -l pl.UTF-8
864Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS(YP).
c37d4a8e 865
4206408a 866%package -n nss_nisplus
867Summary: NIS+ NSS module
32ba7e9f
ER
868Summary(es.UTF-8): Módulo NIS+ NSS
869Summary(pl.UTF-8): Moduł NIS+ NSS
4206408a 870Group: Base
69afb5a6 871Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 872
4206408a 873%description -n nss_nisplus
4a04bb32 874glibc NSS (Name Service Switch) module for NIS+ databases access.
875
94008272
JR
876%description -n nss_nisplus -l es.UTF-8
877Módulo NSS (Name Service Switch) de glibc para acceder las bases de
d22b4284 878datos NIS+.
5240d049 879
94008272
JR
880%description -n nss_nisplus -l pl.UTF-8
881Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
c37d4a8e 882
4206408a 883%package memusage
5240d049 884Summary: A toy
32ba7e9f
ER
885Summary(es.UTF-8): Un juguete
886Summary(pl.UTF-8): Zabawka
f78859cb 887Group: Applications
69afb5a6 888Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 889
4206408a 890%description memusage
891A toy.
c37d4a8e 892
94008272 893%description memusage -l es.UTF-8
4a04bb32 894Un juguete.
895
94008272 896%description memusage -l pl.UTF-8
5240d049
TP
897Zabawka.
898
602a978a 899%prep
f789abee 900%setup -q -a1
243dae60 901mv %{name}-ports-%{ports_version} ports
304607d7 902#%patch1 -p1
d36b187a 903%patch2 -p1
ddf4fb34 904%patch3 -p1
98036fec 905%patch5 -p1
16c630b5 906%patch6 -p1
a456b349 907%patch7 -p1
abd55222 908%patch8 -p1
e69f9d61 909%patch9 -p1
f2d222e0 910%patch10 -p1
5145b9c7 911%patch11 -p1
ba326c24 912%patch14 -p0
c150d6cc
JB
913%patch15 -p1
914%patch16 -p1
cb209861 915%patch17 -p1
c150d6cc
JB
916%patch18 -p1
917%patch19 -p1
14013232 918%patch20 -p1
c150d6cc
JB
919%{?with_cross:%patch21 -p1}
920%patch22 -p1
921%patch23 -p0
17a1a2af 922%patch25 -p1
cbf1c4bb 923%patch26 -p1
d11fa1bd 924%patch27 -p1
f789abee 925%patch29 -p1
0057454b 926%patch30 -p1
591ac343 927%patch31 -p1
f0e0dfc9 928%patch32 -p1
94e35f34 929
cbf1c4bb
ER
930# cleanup backups after patching
931find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
de1c7a1b 932
98a7741e 933chmod +x scripts/cpp
d90a3b13 934
40240acb 935# i786 (aka pentium4) hack
2147a6a1
ER
936ln -s i686 nptl/sysdeps/i386/i786
937ln -s i686 nptl/sysdeps/unix/sysv/linux/i386/i786
40240acb 938
d90a3b13 939%build
0469b7fd 940# glibc has its own way to remove PLT relocations. / H. J. Lu.
28a2e091 941unset LD_SYMBOLIC_FUNCTIONS || :
0469b7fd 942
9b9d0010 943cp -f /usr/share/automake/config.sub scripts
68ed41fd
PS
944%{__aclocal}
945%{__autoconf}
5145b9c7 946
2ed7b994 947rm -rf builddir
cfac0d25 948install -d builddir
e2a5184e 949cd builddir
472e31ee
JB
950%ifarch sparc64
951CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
952%endif
f789abee 953
954AddOns=nptl,libidn
955%ifarch %{ports_arch}
956AddOns=$AddOns,ports
957%endif
958
5145b9c7 959AWK="gawk" \
e2a5184e 960../%configure \
49db3d50 961 --enable-kernel="%{min_kernel}" \
5145b9c7 962 --enable-omitfp \
6658c043 963 --with-headers=%{_includedir} \
40240acb
JB
964 --with%{!?with_selinux:out}-selinux \
965 --with-tls \
f789abee 966 --enable-add-ons=$AddOns \
d00dd085 967%if "%{pld_release}" != "ti"
e8a20a65 968 --enable-nss-crypt \
d00dd085 969%endif
5145b9c7
JB
970 --enable-stackguard-randomization \
971 --enable-hidden-plt \
4b632179 972 --enable-bind-now \
2ed7b994 973 --enable-profile
55463a82 974
f3cc1845 975%{__make} \
87a4ec26
TP
976 AWK="gawk" \
977 sLIBdir=%{_libdir}
f3cc1845 978
5145b9c7 979cd ..
cfac0d25 980
e81552c8 981%if %{with tests}
cbf1c4bb 982cd builddir
e81552c8 983env LANGUAGE=C LC_ALL=C \
00139ef4 984%{__make} tests 2>&1 | awk '
e81552c8
AM
985BEGIN { file = "" }
986{
114d7fe6 987 if (($0 ~ /\*\*\* \[.*\.out\] Error/) && ($0 !~ /annexc/) && (file == "")) {
e81552c8
AM
988 file=$0;
989 gsub(/.*\[/, NIL, file);
990 gsub(/\].*/, NIL, file);
991 }
00139ef4 992 print $0;
e81552c8
AM
993}
994END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
40240acb
JB
995cd ..
996done
e81552c8 997%endif
adfd3b3d 998
cf408212
ER
999%if %{without cross}
1000CC="%{__cc}"
1001diet ${CC#*ccache } %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
f70abfbb 1002%endif
b6bedda4 1003
d90a3b13 1004%install
1005rm -rf $RPM_BUILD_ROOT
239a2604 1006install -d $RPM_BUILD_ROOT{/etc/{default,logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd,/var/cache/ldconfig}
f8865a58 1007
e2a5184e 1008cd builddir
5240d049 1009env LANGUAGE=C LC_ALL=C \
1739e791 1010%{__make} install \
bab19d4a 1011 install_root=$RPM_BUILD_ROOT \
1012 infodir=%{_infodir} \
1013 mandir=%{_mandir}
f8865a58 1014
0a85848c 1015%if %{with localedb}
5240d049 1016env LANGUAGE=C LC_ALL=C \
8ab3a6c9 1017%{__make} localedata/install-locales \
bab19d4a 1018 install_root=$RPM_BUILD_ROOT
0a85848c 1019%endif
d90a3b13 1020
5240d049
TP
1021PICFILES="libc_pic.a libc.map
1022 math/libm_pic.a libm.map
1023 resolv/libresolv_pic.a"
71a76fad 1024
6dd5516a
ER
1025install -p $PICFILES $RPM_BUILD_ROOT%{_libdir}
1026install -p elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
1027install -p elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
17a1a2af
ER
1028
1029# Include %{_libdir}/gconv/gconv-modules.cache
72a35b9e 1030./iconv/iconvconfig --nostdlib --prefix=$RPM_BUILD_ROOT %{_libdir}/gconv -o $RPM_BUILD_ROOT%{_libdir}/gconv/gconv-modules.cache
cfac0d25 1031cd ..
8ab3a6c9 1032
cf408212 1033%if %{without cross}
6dd5516a 1034install -p glibc-postinst $RPM_BUILD_ROOT/sbin
f70abfbb 1035%endif
b6bedda4 1036
4c3586c2 1037%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
c4fea372 1038mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
77d92b8b 1039
b1414da6 1040# moved to tzdata package
b96231b6 1041rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
b1414da6 1042rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo
d90a3b13 1043
277c4a9d 1044ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
ff4a133a 1045
277c4a9d 1046# make symlinks across top-level directories absolute
17a1a2af 1047for l in BrokenLocale anl cidn crypt dl m nsl resolv rt thread_db util; do
b96231b6 1048 test -L $RPM_BUILD_ROOT%{_libdir}/lib${l}.so || exit 1
277c4a9d 1049 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
b96231b6 1050 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/lib${l}.so.*) $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
277c4a9d
JB
1051done
1052
b96231b6
JB
1053# linking nss modules directly is not supported
1054rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
1055
6dd5516a
ER
1056install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1057cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
1058cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
1059cp -a nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
1060cp -a posix/gai.conf $RPM_BUILD_ROOT%{_sysconfdir}
1061cp -a nis/nss $RPM_BUILD_ROOT/etc/default/nss
bebe21cc 1062sed -e 's#\([ \t]\)db\([ \t]\)#\1#g' nss/nsswitch.conf > $RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.conf
16c630b5 1063
c646f82f 1064bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
aca59b69 1065: > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
60d03a9f 1066install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
5145b9c7 1067echo 'include ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
aca59b69 1068: > $RPM_BUILD_ROOT/var/cache/ldconfig/aux-cache
1069
8ab3a6c9 1070rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
c37d4a8e 1071
bc9012d1
ER
1072# doesn't fit with out tzdata concept and configure.in is stupid assuming bash
1073# is first posix compatible shell making this script depend on bash.
1074rm -f $RPM_BUILD_ROOT%{_bindir}/tzselect
1075rm -f $RPM_BUILD_ROOT%{_mandir}/man8/tzselect.8*
1076rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/tzselect.8*
1077
aca59b69 1078: > $RPM_BUILD_ROOT/var/log/nscd
1079: > $RPM_BUILD_ROOT/var/lib/nscd/passwd
1080: > $RPM_BUILD_ROOT/var/lib/nscd/group
1081: > $RPM_BUILD_ROOT/var/lib/nscd/hosts
236a5027 1082
cfac0d25
JB
1083rm -rf documentation
1084install -d documentation
16c630b5 1085
5145b9c7 1086for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing}; do
6dd5516a 1087 cp -af nptl/$f documentation/$f.nptl
3cc9adfc 1088done
6dd5516a 1089cp -af crypt/README.ufc-crypt ChangeLog* documentation
d90a3b13 1090
503c0862 1091# Collect locale files and mark them with %%lang()
cfac0d25 1092echo '%defattr(644,root,root,755)' > glibc.lang
17a1a2af 1093for i in $RPM_BUILD_ROOT%{_datadir}/locale/*; do
503c0862 1094 if [ -d $i ]; then
aba67afa
JB
1095 lang=$(basename $i)
1096 dir="${i#$RPM_BUILD_ROOT}"
cfac0d25 1097 echo "%lang($lang) $dir" >> glibc.lang
503c0862
JR
1098 fi
1099done
84dca6d3 1100
4b000c98 1101# NOTES:
429f21ad 1102# Languages not supported by glibc locales, but usable via $LANGUAGE:
1103# ang - Old English (gtk+, gnome)
d6195ea1 1104# ca@valencia (gtk+, gnome; as ca_ES@valencia in FileZilla; locale exists in Debian)
429f21ad 1105# tlh - Klingon (bzflag)
0fea14e7
JB
1106# and variants:
1107# sr@ije (use LANGUAGE=sr_ME@ije/sr_RS@ije) (gnome)
429f21ad 1108#
84dca6d3 1109# To be added when they become supported by glibc:
d22ff81f 1110# az_IR (gtk+2)
30e8fcec 1111# bal (newt,pessulus)
d22ff81f 1112# bem (alacarte)
62c42f94 1113# ckb [or ku_IQ/ku_IR] (vlc,miro)
d22ff81f 1114# co (vlc)
1115# gn (gn_BR in gnome, maybe gn_PY)
a06dc0e1
JB
1116# bal (newt)
1117# haw (iso-codes)
4dafc7ca 1118# ilo (kudzu)
d22ff81f 1119# io (gtk+2, gnome, alacarte)
1120# jv (gmpc)
a06dc0e1 1121# kok (iso-codes)
62c42f94 1122# lb (geany,miro)
4d7ff07c 1123# man (ccsm; incorrectly named md)
a06dc0e1 1124# mus (bluez-gnome)
1e1db302 1125# sco (gnomad2, picard)
30e8fcec 1126# swg (sim)
a06dc0e1 1127# syr (iso-codes)
30e8fcec 1128# tet (vlc)
84dca6d3 1129#
b4ec8e5c 1130# bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
84dca6d3 1131# till now.
b4ec8e5c 1132#
84dca6d3 1133# Omitted here - already existing (with libc.mo):
1134# 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
1135# sv tr zh_CN zh_TW
b4ec8e5c 1136#
4dafc7ca 1137for i in aa aa@saaho af am an ang ar ar_TN as ast az be@alternative be@latin \
30e8fcec 1138 bg bn bn_IN br bs byn ca@valencia crh csb cy de_AT de_CH dv dz en \
d6195ea1
PZ
1139 en@boldquot en@quot en_AU en_CA en_NZ en_US eo es_AR es_CL es_CO es_CR \
1140 es_DO es_EC es_GT es_HN es_MX es_NI es_PA es_PE es_PR es_SV es_UY \
1141 es_VE et eu fa fil fo fr_BE fr_CA fr_CH fur fy ga gd gez gu gv ha he \
a3455cd6 1142 hi hne hsb hy ia id ig ik is it_CH iu jv ka kk kl km kn ks ku kw ky la \
f566bef7 1143 lg li lo lt lv mai mg mi mk ml mn mr ms mt my nds ne nl_BE nn nr nso \
1144 oc om or pa pap ps pt ps rm ro sa sc se si sid sl so sq sr sr@Latn \
1145 sr@ije sr@latin ss st sw ta te tg th ti tig tk tl tlh tn ts tt ug uk \
1146 ur uz uz@cyrillic ve vi wa wal wo xh yi yo zh_HK zu; do
8ab3a6c9 1147 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
5b2b5619 1148 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
aba67afa 1149 # use lang() tags with ll_CC@variant (stripping charset and @quot|@boldquot)
6dd5516a 1150 lang=$(echo $i | sed -e 's/@quot\>\|@boldquot\>//')
cfac0d25 1151 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
5b2b5619 1152 fi
1153done
503c0862 1154
a2e4eb0a 1155# LC_TIME category, used for localized date formats (at least by coreutils)
aca59b69 1156for i in af be bg ca cs da de el en es et eu fi fr ga gl hu id it ja ko lg lt \
c687d10f 1157 ms nb nl pl pt pt_BR ro ru rw sk sl sv tr uk vi zh_CN zh_TW; do
a2e4eb0a
JB
1158 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i ]; then
1159 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
1160 fi
1161 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_TIME
1162done
1163
40430bed 1164# localedb-gen infrastructure
ae7aa792
ER
1165sed -e 's,@localedir@,%{_libdir}/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1166chmod +x $RPM_BUILD_ROOT%{_bindir}/localedb-gen
cfac0d25 1167install localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
40430bed 1168
8ab3a6c9 1169# shutup check-files
8bc00675
JB
1170rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
1171rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
1172rm -f $RPM_BUILD_ROOT%{_infodir}/dir
8ab3a6c9 1173# we don't support kernel without ptys support
49db3d50 1174rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
31242617
JR
1175# rpcbind
1176rm -f $RPM_BUILD_ROOT%{_mandir}/*/man8/rpcinfo.8
1177rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpcinfo.8
1178rm -f $RPM_BUILD_ROOT%{_sbindir}/rpcinfo
88300fde 1179
ea870772
JB
1180%clean
1181rm -rf $RPM_BUILD_ROOT
1182
cf408212 1183%if %{without cross}
d326d834 1184%post -p /sbin/postshell
3a32e57b 1185/sbin/glibc-postinst /%{_lib}/%{_host_cpu} /%{_lib}/tls
ecf87e84 1186/sbin/ldconfig
88300fde 1187
6d1ad2d5 1188%postun -p /sbin/ldconfig
d90a3b13 1189
5145b9c7 1190%triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
60d03a9f
JB
1191-/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1192-/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
f70abfbb 1193%endif
60d03a9f 1194
2eac239d
ER
1195%post libcrypt -p /sbin/ldconfig
1196%postun libcrypt -p /sbin/ldconfig
1197
5240d049 1198%post memusage -p /sbin/ldconfig
5145b9c7 1199%postun memusage -p /sbin/ldconfig
05486726 1200
c7640575 1201%post -n localedb-src
c73a611f
ER
1202SUPPORTED_LOCALES=
1203[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
1204[ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
1205if [ "$SUPPORTED_LOCALES" ]; then
1206 localedb-gen || :
1207fi
4fdef2e6 1208
bd37152b
ER
1209%post devel -p /sbin/postshell
1210-/usr/sbin/fix-info-dir -c %{_infodir}
d90a3b13 1211
bd37152b
ER
1212%postun devel -p /sbin/postshell
1213-/usr/sbin/fix-info-dir -c %{_infodir}
d90a3b13 1214
da7cc665 1215%pre -n nscd
e9351fa5 1216%groupadd -P nscd -g 144 -r nscd
b7ce3475 1217%useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "Name Service Cache Daemon" -g nscd nscd
da7cc665 1218
8912a874 1219%post -n nscd
6dd5516a
ER
1220if [ ! -f /var/log/nscd ]; then
1221 umask 027
1222 touch /var/log/nscd
1223 chown root:root /var/log/nscd
1224 chmod 640 /var/log/nscd
1225fi
19cc9468 1226/sbin/chkconfig --add nscd
6dd5516a 1227%service nscd restart "Name Service Cache Daemon"
8912a874 1228
1229%preun -n nscd
19cc9468 1230if [ "$1" = "0" ]; then
9b9eac8d 1231 %service nscd stop
19cc9468 1232 /sbin/chkconfig --del nscd
1233fi
8912a874 1234
da7cc665
JB
1235%postun -n nscd
1236if [ "$1" = "0" ]; then
1237 %userremove nscd
1238 %groupremove nscd
1239fi
1240
2eac239d 1241%files -f %{name}.lang
d22b4284 1242%defattr(644,root,root,755)
e2a5184e 1243%doc README NEWS FAQ BUGS
175873de 1244%if %{without cross}
b6bedda4 1245%attr(755,root,root) /sbin/glibc-postinst
f70abfbb 1246%endif
4f129782 1247# TODO: package ldconfig symlinks as %ghost
6d1ad2d5
JB
1248%attr(755,root,root) /%{_lib}/ld-%{version}.so
1249# wildly arch-dependent ld.so SONAME symlink
87a4ec26 1250%ifarch %{ix86} sparc sparcv9 sparc64 alpha sh
6d1ad2d5
JB
1251%attr(755,root,root) /%{_lib}/ld-linux.so.2
1252%endif
1253%ifarch ia64
1254%attr(755,root,root) /%{_lib}/ld-linux-ia64.so.2
1255%endif
1256%ifarch %{x8664}
1257%attr(755,root,root) /%{_lib}/ld-linux-x86-64.so.2
1258%endif
1259%ifarch ppc64 s390x
1260%attr(755,root,root) /%{_lib}/ld64.so.1
1261%endif
f789abee 1262%ifnarch %{ix86} sparc sparcv9 sparc64 alpha sh ia64 %{x8664} ppc64 s390x %{arm}
6d1ad2d5
JB
1263%attr(755,root,root) /%{_lib}/ld.so.1
1264%endif
d3708d98 1265%attr(755,root,root) /%{_lib}/libBrokenLocale-%{version}.so
6d1ad2d5 1266%ifarch alpha
d3708d98 1267%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1.1
6d1ad2d5 1268%else
d3708d98 1269%attr(755,root,root) /%{_lib}/libBrokenLocale.so.1
6d1ad2d5
JB
1270%endif
1271%attr(755,root,root) /%{_lib}/libSegFault.so
1272%attr(755,root,root) /%{_lib}/libanl-%{version}.so
1273%attr(755,root,root) /%{_lib}/libanl.so.1
1274%attr(755,root,root) /%{_lib}/libc-%{version}.so
1275%ifarch alpha ia64
1276%attr(755,root,root) /%{_lib}/libc.so.6.1
1277%else
1278%attr(755,root,root) /%{_lib}/libc.so.6
1279%endif
1280%attr(755,root,root) /%{_lib}/libcidn-%{version}.so
1281%attr(755,root,root) /%{_lib}/libcidn.so.1
6d1ad2d5
JB
1282%attr(755,root,root) /%{_lib}/libdl-%{version}.so
1283%ifarch alpha
1284%attr(755,root,root) /%{_lib}/libdl.so.2.1
1285%else
1286%attr(755,root,root) /%{_lib}/libdl.so.2
1287%endif
1288%attr(755,root,root) /%{_lib}/libm-%{version}.so
1289%ifarch alpha ia64
1290%attr(755,root,root) /%{_lib}/libm.so.6.1
1291%else
1292%attr(755,root,root) /%{_lib}/libm.so.6
1293%endif
c27ca4a2 1294%attr(755,root,root) /%{_lib}/libnsl-%{version}.so
6d1ad2d5
JB
1295%ifarch alpha
1296%attr(755,root,root) /%{_lib}/libnsl.so.1.1
1297%else
1298%attr(755,root,root) /%{_lib}/libnsl.so.1
1299%endif
1300%attr(755,root,root) /%{_lib}/libpthread-%{version}.so
1301%attr(755,root,root) /%{_lib}/libpthread.so.0
1302%attr(755,root,root) /%{_lib}/libresolv-%{version}.so
1303%ifarch alpha
1304%attr(755,root,root) /%{_lib}/libresolv.so.2.1
1305%else
1306%attr(755,root,root) /%{_lib}/libresolv.so.2
1307%endif
1308%attr(755,root,root) /%{_lib}/librt-%{version}.so
1309%attr(755,root,root) /%{_lib}/librt.so.1
1310%attr(755,root,root) /%{_lib}/libthread_db-1.0.so
1311%attr(755,root,root) /%{_lib}/libthread_db.so.1
1312%attr(755,root,root) /%{_lib}/libutil-%{version}.so
1313%ifarch alpha
1314%attr(755,root,root) /%{_lib}/libutil.so.1.1
1315%else
1316%attr(755,root,root) /%{_lib}/libutil.so.1
1317%endif
0a85848c 1318%{?with_localedb:%dir %{_libdir}/locale}
c4fea372 1319
0b0bde94
JK
1320#%files -n nss_dns
1321%defattr(644,root,root,755)
6d1ad2d5
JB
1322%attr(755,root,root) /%{_lib}/libnss_dns-%{version}.so
1323%attr(755,root,root) /%{_lib}/libnss_dns.so.2
0b0bde94
JK
1324
1325#%files -n nss_files
1326%defattr(644,root,root,755)
6d1ad2d5
JB
1327%attr(755,root,root) /%{_lib}/libnss_files-%{version}.so
1328%attr(755,root,root) /%{_lib}/libnss_files.so.2
0b0bde94 1329
c4fea372 1330%defattr(644,root,root,755)
236a5027 1331
f307cfc5 1332%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
87d5a0d2 1333%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
e8a20a65 1334%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/nss
87d5a0d2 1335
4206408a 1336%config %{_sysconfdir}/rpc
c37d4a8e 1337
fea833d1 1338%attr(755,root,root) /sbin/sln
72549d49 1339%attr(755,root,root) %{_bindir}/getconf
ba697d79 1340%attr(755,root,root) %{_bindir}/getent
3abcf615 1341%attr(755,root,root) %{_bindir}/iconv
472e31ee 1342%ifarch %{ix86} m68k sparc sparcv9
ba697d79 1343%attr(755,root,root) %{_bindir}/lddlibc4
f15a9825 1344%endif
ba697d79 1345%attr(755,root,root) %{_bindir}/locale
ba697d79 1346%attr(755,root,root) %{_bindir}/rpcgen
ba697d79 1347
bab19d4a 1348%attr(755,root,root) %{_sbindir}/zdump
1349%attr(755,root,root) %{_sbindir}/zic
236a5027 1350
72549d49
JB
1351%dir %{_libexecdir}/getconf
1352%attr(755,root,root) %{_libexecdir}/getconf/*
1353
503c0862
JR
1354%dir %{_datadir}/locale
1355%{_datadir}/locale/locale.alias
236a5027 1356
72549d49 1357%{_mandir}/man1/getconf.1*
4377d843 1358%{_mandir}/man1/getent.1*
fa0f5e25 1359%{_mandir}/man1/iconv.1*
fa0f5e25
JB
1360%{_mandir}/man1/locale.1*
1361%{_mandir}/man1/rpcgen.1*
1362%{_mandir}/man5/locale.5*
1363%{_mandir}/man5/nsswitch.conf.5*
1364%{_mandir}/man5/tzfile.5*
3d65e37f 1365%{_mandir}/man7/*
a2e4eb0a
JB
1366%{_mandir}/man8/ld-linux.8*
1367%{_mandir}/man8/ld-linux.so.8*
1368%{_mandir}/man8/ld.so.8*
fa0f5e25 1369%{_mandir}/man8/sln.8*
fa0f5e25
JB
1370%{_mandir}/man8/zdump.8*
1371%{_mandir}/man8/zic.8*
1372%lang(cs) %{_mandir}/cs/man7/*
1373%lang(de) %{_mandir}/de/man5/tzfile.5*
1374%lang(de) %{_mandir}/de/man7/*
1375%lang(es) %{_mandir}/es/man5/locale.5*
1376%lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
1377%lang(es) %{_mandir}/es/man5/tzfile.5*
1378%lang(es) %{_mandir}/es/man7/*
a2e4eb0a
JB
1379%lang(es) %{_mandir}/es/man8/ld-linux.8*
1380%lang(es) %{_mandir}/es/man8/ld-linux.so.8*
6d1ad2d5 1381%lang(es) %{_mandir}/es/man8/ld.so.8*
fa0f5e25
JB
1382%lang(es) %{_mandir}/es/man8/zdump.8*
1383%lang(es) %{_mandir}/es/man8/zic.8*
fa0f5e25
JB
1384%lang(fr) %{_mandir}/fr/man5/locale.5*
1385%lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
1386%lang(fr) %{_mandir}/fr/man5/tzfile.5*
1387%lang(fr) %{_mandir}/fr/man7/*
a2e4eb0a
JB
1388%lang(fr) %{_mandir}/fr/man8/ld-linux.8*
1389%lang(fr) %{_mandir}/fr/man8/ld-linux.so.8*
1390%lang(fr) %{_mandir}/fr/man8/ld.so.8*
fa0f5e25
JB
1391%lang(fr) %{_mandir}/fr/man8/zdump.8*
1392%lang(fr) %{_mandir}/fr/man8/zic.8*
fa0f5e25 1393%lang(hu) %{_mandir}/hu/man7/*
a2e4eb0a
JB
1394%lang(hu) %{_mandir}/hu/man8/ld-linux.8*
1395%lang(hu) %{_mandir}/hu/man8/ld-linux.so.8*
1396%lang(hu) %{_mandir}/hu/man8/ld.so.8*
fa0f5e25
JB
1397%lang(hu) %{_mandir}/hu/man8/zdump.8*
1398%lang(it) %{_mandir}/it/man5/locale.5*
1399%lang(it) %{_mandir}/it/man7/*
fa0f5e25 1400%lang(it) %{_mandir}/it/man8/zdump.8*
fa0f5e25
JB
1401%lang(ja) %{_mandir}/ja/man1/rpcgen.1*
1402%lang(ja) %{_mandir}/ja/man5/locale.5*
1403%lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
1404%lang(ja) %{_mandir}/ja/man5/tzfile.5*
3d65e37f 1405%lang(ja) %{_mandir}/ja/man7/*
a2e4eb0a
JB
1406%lang(ja) %{_mandir}/ja/man8/ld-linux.8*
1407%lang(ja) %{_mandir}/ja/man8/ld-linux.so.8*
1408%lang(ja) %{_mandir}/ja/man8/ld.so.8*
fa0f5e25 1409%lang(ja) %{_mandir}/ja/man8/sln.8*
fa0f5e25
JB
1410%lang(ja) %{_mandir}/ja/man8/zdump.8*
1411%lang(ja) %{_mandir}/ja/man8/zic.8*
1412%lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
1413%lang(ko) %{_mandir}/ko/man5/tzfile.5*
1414%lang(ko) %{_mandir}/ko/man7/*
fa0f5e25 1415%lang(ko) %{_mandir}/ko/man8/zdump.8*
fa0f5e25
JB
1416%lang(pl) %{_mandir}/pl/man5/locale.5*
1417%lang(pl) %{_mandir}/pl/man7/*
a2e4eb0a
JB
1418%lang(pl) %{_mandir}/pl/man8/ld-linux.8*
1419%lang(pl) %{_mandir}/pl/man8/ld-linux.so.8*
1420%lang(pl) %{_mandir}/pl/man8/ld.so.8*
fa0f5e25
JB
1421%lang(pt) %{_mandir}/pt/man5/locale.5*
1422%lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
1423%lang(pt) %{_mandir}/pt/man5/tzfile.5*
3d65e37f 1424%lang(pt) %{_mandir}/pt/man7/*
fa0f5e25
JB
1425%lang(pt) %{_mandir}/pt/man8/zdump.8*
1426%lang(pt) %{_mandir}/pt/man8/zic.8*
49ead7a0
JB
1427%lang(ru) %{_mandir}/ru/man1/getent.1*
1428%lang(ru) %{_mandir}/ru/man1/iconv.1*
49ead7a0
JB
1429%lang(ru) %{_mandir}/ru/man1/locale.1*
1430%lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1431%lang(ru) %{_mandir}/ru/man5/locale.5*
fa0f5e25
JB
1432%lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
1433%lang(ru) %{_mandir}/ru/man5/tzfile.5*
1434%lang(ru) %{_mandir}/ru/man7/*
a2e4eb0a
JB
1435%lang(ru) %{_mandir}/ru/man8/ld-linux.so.8*
1436%lang(ru) %{_mandir}/ru/man8/ld.so.8*
fa0f5e25
JB
1437%lang(ru) %{_mandir}/ru/man8/zdump.8*
1438%lang(ru) %{_mandir}/ru/man8/zic.8*
49ead7a0 1439%lang(tr) %{_mandir}/tr/man1/iconv.1*
fa0f5e25 1440%lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
fa0f5e25
JB
1441%lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
1442%lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
1443%lang(zh_CN) %{_mandir}/zh_CN/man7/*
fa0f5e25
JB
1444%lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1445%lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
4206408a 1446
cbf1c4bb 1447%files misc
2eac239d
ER
1448%defattr(644,root,root,755)
1449%attr(755,root,root) %{_bindir}/catchsegv
1450%attr(755,root,root) %{_bindir}/ldd
2eac239d
ER
1451%{_mandir}/man1/catchsegv.1*
1452%{_mandir}/man1/ldd.1*
2eac239d 1453%lang(es) %{_mandir}/es/man1/ldd.1*
2eac239d
ER
1454%lang(fi) %{_mandir}/fi/man1/ldd.1*
1455%lang(fr) %{_mandir}/fr/man1/ldd.1*
2eac239d 1456%lang(hu) %{_mandir}/hu/man1/ldd.1*
2eac239d 1457%lang(ja) %{_mandir}/ja/man1/ldd.1*
2eac239d 1458%lang(ko) %{_mandir}/ko/man1/ldd.1*
2eac239d 1459%lang(pl) %{_mandir}/pl/man1/ldd.1*
2eac239d 1460%lang(ru) %{_mandir}/ru/man1/ldd.1*
2eac239d
ER
1461%lang(tr) %{_mandir}/tr/man1/ldd.1*
1462%lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
2eac239d
ER
1463
1464%files libcrypt
1465%defattr(644,root,root,755)
1466%attr(755,root,root) /%{_lib}/libcrypt-%{version}.so
1467%ifarch alpha
2f715077 1468%attr(755,root,root) %ghost /%{_lib}/libcrypt.so.1.1
2eac239d 1469%else
2f715077 1470%attr(755,root,root) %ghost /%{_lib}/libcrypt.so.1
2eac239d
ER
1471%endif
1472
1473%files -n ldconfig
1474%defattr(644,root,root,755)
1475%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
1476%dir %{_sysconfdir}/ld.so.conf.d
1477%ghost %{_sysconfdir}/ld.so.cache
1478%attr(755,root,root) /sbin/ldconfig
1479%{_mandir}/man8/ldconfig.8*
1480%lang(es) %{_mandir}/es/man8/ldconfig.8*
1481%lang(fr) %{_mandir}/fr/man8/ldconfig.8*
1482%lang(hu) %{_mandir}/hu/man8/ldconfig.8*
1483%lang(ja) %{_mandir}/ja/man8/ldconfig.8*
1484%lang(pl) %{_mandir}/pl/man8/ldconfig.8*
1485%lang(pt) %{_mandir}/pt/man8/ldconfig.8*
1486%lang(ru) %{_mandir}/ru/man8/ldconfig.8*
239a2604 1487%dir %attr(700,root,root) /var/cache/ldconfig
2f715077 1488%attr(600,root,root) %ghost /var/cache/ldconfig/aux-cache
2eac239d 1489
94655bd2 1490%files -n nss_compat
1491%defattr(644,root,root,755)
6d1ad2d5
JB
1492%attr(755,root,root) /%{_lib}/libnss_compat-%{version}.so
1493%attr(755,root,root) /%{_lib}/libnss_compat.so.2
94655bd2 1494
e82c8242 1495%files -n nss_hesiod
1496%defattr(644,root,root,755)
6d1ad2d5
JB
1497%attr(755,root,root) /%{_lib}/libnss_hesiod-%{version}.so
1498%attr(755,root,root) /%{_lib}/libnss_hesiod.so.2
e82c8242 1499
1500%files -n nss_nis
1501%defattr(644,root,root,755)
6d1ad2d5
JB
1502%attr(755,root,root) /%{_lib}/libnss_nis-%{version}.so
1503%attr(755,root,root) /%{_lib}/libnss_nis.so.2
e82c8242 1504
1505%files -n nss_nisplus
1506%defattr(644,root,root,755)
6d1ad2d5
JB
1507%attr(755,root,root) /%{_lib}/libnss_nisplus-%{version}.so
1508%attr(755,root,root) /%{_lib}/libnss_nisplus.so.2
e82c8242 1509
fd1d4127 1510%if %{with memusage}
4206408a 1511%files memusage
1512%defattr(644,root,root,755)
1513%attr(755,root,root) %{_bindir}/memusage*
fd1d4127 1514%attr(755,root,root) %{_libdir}/libmemusage.so
5ea2d863 1515%endif
4206408a 1516
462c36a3 1517%files devel
236a5027 1518%defattr(644,root,root,755)
6d1ad2d5
JB
1519%attr(755,root,root) %{_libdir}/libBrokenLocale.so
1520%attr(755,root,root) %{_libdir}/libanl.so
40240acb 1521%attr(755,root,root) %{_libdir}/libcrypt.so
c27ca4a2 1522%attr(755,root,root) %{_libdir}/libcidn.so
6d1ad2d5 1523%attr(755,root,root) %{_libdir}/libdl.so
40240acb 1524%attr(755,root,root) %{_libdir}/libm.so
6d1ad2d5 1525%attr(755,root,root) %{_libdir}/libnsl.so
40240acb 1526%attr(755,root,root) %{_libdir}/libpcprofile.so
6d1ad2d5
JB
1527%attr(755,root,root) %{_libdir}/libresolv.so
1528%attr(755,root,root) %{_libdir}/librt.so
1529%attr(755,root,root) %{_libdir}/libthread_db.so
1530%attr(755,root,root) %{_libdir}/libutil.so
a8a2db2c
PS
1531%{_libdir}/crt[1in].o
1532%{_libdir}/[MSg]crt1.o
40240acb
JB
1533# ld scripts
1534%{_libdir}/libc.so
1535%{_libdir}/libpthread.so
6d1ad2d5 1536# static-only libs
40240acb
JB
1537%{_libdir}/libbsd-compat.a
1538%{_libdir}/libbsd.a
1539%{_libdir}/libc_nonshared.a
1540%{_libdir}/libg.a
1541%{_libdir}/libieee.a
5145b9c7
JB
1542%ifarch alpha ppc sparc
1543%{_libdir}/libnldbl_nonshared.a
1544%endif
40240acb
JB
1545%{_libdir}/libpthread_nonshared.a
1546%{_libdir}/librpcsvc.a
fb46cf23 1547%ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
6d1ad2d5 1548# ABI-dependent headers
5b00029e 1549%{_includedir}/gnu/stubs-*.h
fb46cf23 1550%endif
5b00029e
JB
1551
1552%files headers
1553%defattr(644,root,root,755)
462c36a3 1554%{_includedir}/*.h
3c882bd9
JB
1555%ifarch alpha
1556%{_includedir}/alpha
1557%endif
462c36a3 1558%{_includedir}/arpa
1559%{_includedir}/bits
5b00029e
JB
1560%dir %{_includedir}/gnu
1561%{_includedir}/gnu/lib*.h
1562%{_includedir}/gnu/stubs.h
462c36a3 1563%{_includedir}/net
1564%{_includedir}/netash
1565%{_includedir}/netatalk
1566%{_includedir}/netax25
1567%{_includedir}/neteconet
d410ca53 1568%{_includedir}/netiucv
462c36a3 1569%{_includedir}/netinet
1570%{_includedir}/netipx
1571%{_includedir}/netpacket
1572%{_includedir}/netrom
1573%{_includedir}/netrose
1574%{_includedir}/nfs
1575%{_includedir}/protocols
1576%{_includedir}/rpc
1577%{_includedir}/rpcsvc
1578%{_includedir}/scsi
1579%{_includedir}/sys
1580
5b00029e
JB
1581%files devel-utils
1582%defattr(644,root,root,755)
1583%attr(755,root,root) %{_bindir}/gencat
1584%attr(755,root,root) %{_bindir}/*prof*
1585%attr(755,root,root) %{_bindir}/*trace
1586
1587%files devel-doc
1588%defattr(644,root,root,755)
1589%doc documentation/* NOTES PROJECTS
900994f2 1590%{_infodir}/libc.info*
d90a3b13 1591
fa0f5e25 1592%{_mandir}/man1/sprof.1*
2c6699cc 1593%{_mandir}/man3/*
1fc785e2 1594%lang(cs) %{_mandir}/cs/man3/*
1595%lang(de) %{_mandir}/de/man3/*
1596%lang(es) %{_mandir}/es/man3/*
1597%lang(fr) %{_mandir}/fr/man3/*
1598%lang(hu) %{_mandir}/hu/man3/*
fa0f5e25 1599%lang(it) %{_mandir}/it/man3/*
1145bfaf 1600%lang(ja) %{_mandir}/ja/man3/*
1601%lang(ko) %{_mandir}/ko/man3/*
1602%lang(nl) %{_mandir}/nl/man3/*
1603%lang(pl) %{_mandir}/pl/man3/*
1604%lang(pt) %{_mandir}/pt/man3/*
49ead7a0 1605%lang(ru) %{_mandir}/ru/man1/sprof.1*
1145bfaf 1606%lang(ru) %{_mandir}/ru/man3/*
49ead7a0 1607%lang(tr) %{_mandir}/tr/man3/*
fa0f5e25
JB
1608%lang(uk) %{_mandir}/uk/man3/*
1609%lang(zh_CN) %{_mandir}/zh_CN/man3/*
236a5027 1610
bab19d4a 1611%files -n nscd
1612%defattr(644,root,root,755)
f307cfc5
JB
1613%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
1614%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
46b7a91b 1615%attr(754,root,root) /etc/rc.d/init.d/nscd
4206408a 1616%attr(755,root,root) %{_sbindir}/nscd*
f307cfc5 1617%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
ddf4fb34 1618%attr(640,root,root) %ghost /var/log/nscd
7dc8db4b 1619%dir /var/run/nscd
f307cfc5
JB
1620%dir /var/lib/nscd
1621%attr(600,root,root) %ghost /var/lib/nscd/passwd
1622%attr(600,root,root) %ghost /var/lib/nscd/group
1623%attr(600,root,root) %ghost /var/lib/nscd/hosts
fa0f5e25
JB
1624%{_mandir}/man5/nscd.conf.5*
1625%{_mandir}/man8/nscd.8*
1626%{_mandir}/man8/nscd_nischeck.8*
49ead7a0
JB
1627%lang(es) %{_mandir}/es/man5/nscd.conf.5*
1628%lang(es) %{_mandir}/es/man8/nscd.8*
fa0f5e25
JB
1629%lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
1630%lang(fr) %{_mandir}/fr/man8/nscd.8*
1631%lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
1632%lang(ja) %{_mandir}/ja/man8/nscd.8*
1633%lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
1634%lang(pt) %{_mandir}/pt/man8/nscd.8*
49ead7a0
JB
1635%lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
1636%lang(ru) %{_mandir}/ru/man8/nscd.8*
1637%lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
c43e39f5 1638
d34cb8bc 1639%files -n localedb-src
1640%defattr(644,root,root,755)
ba697d79 1641%attr(755,root,root) %{_bindir}/localedef
40430bed 1642%attr(755,root,root) %{_bindir}/localedb-gen
d34cb8bc 1643%{_datadir}/i18n
fa0f5e25 1644%{_mandir}/man1/localedef.1*
49ead7a0 1645%lang(ru) %{_mandir}/ru/man1/localedef.1*
40430bed 1646
0a85848c 1647%if %{with localedb}
40430bed
JB
1648%files localedb-all
1649%defattr(644,root,root,755)
fbd4c876 1650%{_libdir}/locale/locale-archive
0a85848c 1651%endif
d34cb8bc 1652
1653%files -n iconv
1654%defattr(644,root,root,755)
436fd1ea 1655%attr(755,root,root) %{_sbindir}/iconvconfig
fbd4c876 1656%dir %{_libdir}/gconv
1657%{_libdir}/gconv/gconv-modules
17a1a2af 1658%verify(not md5 mtime size) %{_libdir}/gconv/gconv-modules.cache
fbd4c876 1659%attr(755,root,root) %{_libdir}/gconv/*.so
d34cb8bc 1660
c7df086f 1661%files static
1662%defattr(644,root,root,755)
fbd4c876 1663%{_libdir}/libanl.a
1664%{_libdir}/libBrokenLocale.a
1665%{_libdir}/libc.a
1666%{_libdir}/libcrypt.a
1667%{_libdir}/libdl.a
1668%{_libdir}/libm.a
1669%{_libdir}/libmcheck.a
1670%{_libdir}/libnsl.a
1671%{_libdir}/libpthread.a
1672%{_libdir}/libresolv.a
1673%{_libdir}/librt.a
1674%{_libdir}/libutil.a
e2a5184e 1675
d34cb8bc 1676%files profile
1677%defattr(644,root,root,755)
fbd4c876 1678%{_libdir}/lib*_p.a
71a76fad 1679
1680%files pic
1681%defattr(644,root,root,755)
fbd4c876 1682%{_libdir}/lib*_pic.a
1683%{_libdir}/lib*.map
1684%{_libdir}/soinit.o
1685%{_libdir}/sofini.o
This page took 0.654763 seconds and 4 git commands to generate.