]> git.pld-linux.org Git - packages/glibc.git/blame - glibc.spec
- don't build extra *_g objects with frame pointers
[packages/glibc.git] / glibc.spec
CommitLineData
65b076c7 1# TODO:
65b076c7 2# - files?
0f6914ad
JB
3# (debuggable libraries built with frame pointers - -debug package?)
4# %{_libdir}/libBrokenLocale_g.a
5# %{_libdir}/libanl_g.a
6# %{_libdir}/libc_g.a
7# %{_libdir}/libcrypt_g.a
8# %{_libdir}/libdl_g.a
9# %{_libdir}/libm_g.a
10# %{_libdir}/libnsl_g.a
11# %{_libdir}/libpthread_g.a
12# %{_libdir}/libresolv_g.a
13# %{_libdir}/librpcsvc_g.a
14# %{_libdir}/librt_g.a
15# %{_libdir}/libutil_g.a
98a7741e 16#
b287d865 17# Conditional build:
5145b9c7 18# min_kernel (default is 2.6.12)
fd1d4127 19%bcond_without memusage # don't build memusage utility
757f96eb 20%bcond_without selinux # without SELinux support (in nscd)
c9d8e545 21%bcond_with tests # perform "make test"
0a85848c 22%bcond_without localedb # don't build localedb-all (is time consuming)
472e31ee 23%bcond_with cross # build using crossgcc (without libgcc_eh)
b287d865 24#
37cd6ebc 25# TODO:
72549d49 26# - look at locale fixes/updates in bugzilla
c793d691 27# - no more chicken-egg problem (postshell is no more dynamically linked with libc), remove SONAME symlinks? see files section.
72549d49 28# [OLD]
37cd6ebc 29# - localedb-gen man pages(?)
feca75cc 30# - math/{test-fenv,test-tgmath,test-float,test-ifloat},
5145b9c7 31# debug/backtrace-tst(SEGV) fail on alpha
4c3586c2 32%{!?min_kernel:%global min_kernel 2.6.12}
f3f771b7 33
e24149ab
PS
34%ifarch sparc64
35%undefine with_memusage
36%endif
37
5145b9c7 38%define llh_version 7:2.6.12.0-10
e8c60795 39
236a5027 40Summary: GNU libc
32ba7e9f
ER
41Summary(de.UTF-8): GNU libc
42Summary(es.UTF-8): GNU libc
43Summary(fr.UTF-8): GNU libc
44Summary(ja.UTF-8): GNU libc ライブラリ
45Summary(pl.UTF-8): GNU libc
46Summary(ru.UTF-8): GNU libc версии 2.3
47Summary(tr.UTF-8): GNU libc
48Summary(uk.UTF-8): GNU libc версії 2.3
5240d049 49Name: glibc
65b076c7 50Version: 2.5
fcd6e70a 51Release: 0.6
f98eacd6 52Epoch: 6
602a978a 53License: LGPL
236a5027 54Group: Libraries
72549d49 55Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
65b076c7 56# Source0-md5: 1fb29764a6a650a4d5b409dda227ac9f
5145b9c7 57Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-libidn-%{version}.tar.bz2
65b076c7 58# Source1-md5: 8787868ba8962d9b125997ec2f25ac01
4206408a 59Source2: nscd.init
60Source3: nscd.sysconfig
61Source4: nscd.logrotate
940eb3e9 62#Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
49ead7a0
JB
63Source5: http://qboosh.cs.net.pl/man/%{name}-man-pages.tar.bz2
64# Source5-md5: f464eadf3cf06761f65639e44a179e6b
65Source6: %{name}-localedb-gen
66Source7: %{name}-LD-path.c
f2d222e0 67Patch0: %{name}-cvs20070210.patch
b13993d0 68Patch1: %{name}-pl.po-update.patch
4206408a 69Patch2: %{name}-pld.patch
70Patch3: %{name}-crypt-blowfish.patch
5145b9c7 71Patch4: %{name}-alpha-ev6-opcodes.patch
98036fec 72Patch5: %{name}-sparc-softfp-gcc.patch
4b000c98 73Patch6: %{name}-paths.patch
f2d222e0 74
e69f9d61
JB
75Patch8: %{name}-missing-nls.patch
76Patch9: %{name}-java-libc-wait.patch
f2d222e0 77Patch10: %{name}-info.patch
e69f9d61 78Patch11: %{name}-no_opt_override.patch
ba326c24 79Patch12: %{name}-includes.patch
c8ab4310 80Patch13: %{name}-ppc-inline-fsqrt.patch
ba326c24 81Patch14: %{name}-sparc-errno_fix.patch
5145b9c7 82
ba326c24 83Patch17: %{name}-new-charsets.patch
5145b9c7 84
6eff0d91 85Patch20: %{name}-tzfile-noassert.patch
ba326c24 86Patch21: %{name}-morelocales.patch
5145b9c7
JB
87Patch22: %{name}-locale_fixes.patch
88Patch23: %{name}-ZA_collate.patch
89Patch24: %{name}-iconvconfig-nxstack.patch
90Patch25: %{name}-cross-gcc_eh.patch
fcd6e70a 91Patch26: %{name}-with-stroke.patch
5145b9c7
JB
92# PaX hack (dropped)
93#Patch30: %{name}-pax_dl-execstack.patch
959d1cc7 94URL: http://www.gnu.org/software/libc/
f70abfbb 95%{?with_selinux:BuildRequires: audit-libs-devel}
5b00029e 96BuildRequires: autoconf
69afb5a6 97BuildRequires: automake
6b6b6315 98BuildRequires: binutils >= 2:2.15.90.0.3
0b88ed7c 99BuildRequires: gcc >= 5:3.4
5145b9c7 100BuildRequires: gawk
fd1d4127 101%{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
29f12ae8 102BuildRequires: gettext-devel >= 0.10.36
5f1a81a9 103%{!?with_cross:BuildRequires: dietlibc-static}
757f96eb 104%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
5145b9c7 105BuildRequires: linux-libc-headers >= %{llh_version}
c1db9e72 106BuildRequires: perl-base
42a6983a 107BuildRequires: rpm-build >= 4.3-0.20030610.28
7bc5c9b6 108BuildRequires: rpm-perlprov
da100088 109BuildRequires: rpmbuild(macros) >= 1.315
9597ca56 110BuildRequires: sed >= 4.0.5
54e3db45 111BuildRequires: texinfo
a0eebe50 112AutoReq: false
71181534
JB
113Requires: %{name}-misc = %{epoch}:%{version}-%{release}
114Requires: basesystem
5145b9c7 115Requires: uname(release) >= %{min_kernel}
9b9eac8d 116Provides: /sbin/ldconfig
5145b9c7
JB
117Provides: glibc(nptl)
118Provides: glibc(tls)
119Provides: glibc64
c37d4a8e 120Provides: ldconfig
e217c7d2
JB
121Obsoletes: glibc-common
122Obsoletes: glibc-debug
5145b9c7 123Obsoletes: glibc64
c37d4a8e 124Obsoletes: ldconfig
ea3a228f 125Conflicts: kernel < %{min_kernel}
5145b9c7
JB
126Conflicts: kernel24
127Conflicts: kernel24-smp
4377d843 128Conflicts: ld.so < 1.9.9-10
bd975df5 129Conflicts: man-pages < 1.43
5b00029e 130Conflicts: poldek < 0.18.8-5
06fed0d7 131Conflicts: rc-scripts < 0.3.1-13
bd975df5 132Conflicts: rpm < 4.1
5145b9c7 133ExclusiveArch: i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x sparc sparc64 sparcv9 ppc ppc64
a0eebe50 134BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d90a3b13 135
cf7b4302 136# avoid -s here (ld.so must not be stripped to allow any program debugging)
f620b835 137%define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.*
472e31ee 138%define specflags_sparc64 -mcpu=ultrasparc -mvis -fcall-used-g6
5145b9c7 139
37f910e8
JB
140# -m from CFLAGS or even LDFLAGS is not propagated to some *.o linking
141%ifarch sparc sparcv9
142%{expand:%%define __cc %{__cc} -m32}
143%endif
144
5145b9c7
JB
145# Xen-friendly glibc
146%define specflags_ia32 -mno-tls-direct-seg-refs
147%define specflags_x86_64 -mno-tls-direct-seg-refs
148%define specflags_amd64 -mno-tls-direct-seg-refs
149%define specflags_ia32e -mno-tls-direct-seg-refs
150
ff9a9e81
JB
151# we don't want perl dependency in glibc-devel
152%define _noautoreqfiles %{_bindir}/mtrace
42a6983a
JB
153# hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
154# (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
155# patched not to crash on partial hardlinks too)
156%define _hack_dontneed_PartialHardlinkSets 1
26e88040 157%define _noautochrpath .*\\(ldconfig\\|sln\\)
b88b18eb 158
d90a3b13 159%description
7a3b906b 160Contains the standard libraries that are used by multiple programs on
161the system. In order to save disk space and memory, as well as to ease
602a978a 162upgrades, common system code is kept in one place and shared between
163programs. This package contains the most important sets of shared
7a3b906b 164libraries, the standard C library and the standard math library.
165Without these, a Linux system will not function. It also contains
b1414da6 166national language (locale) support.
76f01b70 167
1cb6acca 168Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 169
94008272
JR
170%description -l es.UTF-8
171Contiene las bibliotecas estándared que son usadas por varios
d22b4284 172programas del sistema. Para ahorrar el espacio en el disco y la
94008272 173memoria, igual que para facilitar actualizaciones, código común del
d22b4284 174sistema se guarda en un sitio y es compartido entre los programas.
94008272
JR
175Este paquete contiene las bibliotecas compartidas más importantes, es
176decir la biblioteca C estándar y la biblioteca estándar de matemática.
177Sin éstas, un sistema Linux no podrá funcionar. También está incluido
b1414da6 178soporte de idiomas nacionales (locale).
4a04bb32 179
94008272 180Puede usarse con: núcleo Linux >= %{min_kernel}.
4a04bb32 181
94008272
JR
182%description -l de.UTF-8
183Enthält die Standard-Libraries, die von verschiedenen Programmen im
7a3b906b 184System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
185und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
186einer einzigen Stelle gespeichert und wird von den Programmen
94008272 187gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
7a3b906b 188shared Libraries, die Standard-C-Library und die
189Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
94008272 190Ferner enthält es den Support für die verschiedenen Sprachgregionen
b1414da6 191(locale).
76f01b70 192
1cb6acca 193Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 194
94008272
JR
195%description -l fr.UTF-8
196Contient les bibliothèques standards utilisées par de nombreux
197programmes du système. Afin d'économiser l'espace disque et mémoire,
198et de faciliter les mises à jour, le code commun au système est mis à
199un endroit et partagé entre les programmes. Ce paquetage contient les
200bibliothèques partagées les plus importantes, la bibliothèque standard
201du C et la bibliothèque mathématique standard. Sans celles-ci, un
202système Linux ne peut fonctionner. Il contient aussi la gestion des
b1414da6 203langues nationales (locales).
76f01b70 204
1cb6acca 205Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 206
94008272 207%description -l ja.UTF-8
c5387ad5 208glibc
94008272
JR
209パッケージはシステム上の複数のプログラムで使われる標準ライブラリを
210ふくみます。ディスクスペースとメモリを節約したり、アップグレードを
211用意にするために、共通のシステムコードは一つの場所におかれ、プログラム
212間で共有されます。この部分的なパッケージはシェアドライブラリのかなり
213重要なセットをふくみます: 標準 C ライブラリと標準数値ライブラリです。
214この二つのライブラリ抜きでは、Linux システムは機能しません。 glibc
215パッケージはまた地域言語 (locale) サポートとタイムゾーンデータベース
216サポートをふくみます。
76f01b70 217
1cb6acca 218Can be used on: Linux kernel >= %{min_kernel}.
e50f6fb1 219
94008272
JR
220%description -l pl.UTF-8
221W pakiecie znajdują się podstawowe biblioteki, używane przez różne
222programy w Twoim systemie. Używanie przez programy bibliotek z tego
223pakietu oszczędza miejsce na dysku i pamięć. Większość kodu
224systemowego jest usytuowane w jednym miejscu i dzielone między wieloma
225programami. Pakiet ten zawiera bardzo ważny zbiór bibliotek
226standardowych, współdzielonych (dynamicznych) bibliotek C i
227matematycznych. Bez glibc system Linux nie jest w stanie funkcjonować.
228Znajdują się tutaj również definicje różnych informacji dla wielu
229języków (locale).
230
231Pakiet jest przeznaczony dla jądra Linuksa >= %{min_kernel}.
232
233%description -l ru.UTF-8
234Содержит стандартные библиотеки, используемые многочисленными
235программами в системе. Для того, чтобы сохранить дисковое пространство
236и память, а также для простоты обновления, системный код, общий для
237всех программ, хранится в одном месте и коллективно используется всеми
238программами. Этот пакет содержит наиболее важные из разделяемых
239библиотек - стандартную библиотеку C и стандартную библиотеку
240математики. Без этих библиотек Linux функционировать не будет. Также
241пакет содержит поддержку национальных языков (locale).
76f01b70 242
1cb6acca 243Can be used on: Linux kernel >= %{min_kernel}.
98a7741e 244
94008272
JR
245%description -l tr.UTF-8
246Bu paket, birçok programın kullandığı standart kitaplıkları içerir.
247Disk alanı ve bellek kullanımını azaltmak ve aynı zamanda güncelleme
248işlemlerini kolaylaştırmak için ortak sistem kodları tek bir yerde
249tutulup programlar arasında paylaştırılır. Bu paket en önemli ortak
250kitaplıkları, standart C kitaplığını ve standart matematik kitaplığını
251içerir. Bu kitaplıklar olmadan Linux sistemi çalışmayacaktır. Yerel
252dil desteği ve zaman dilimi veri tabanı da bu pakette yer alır.
76f01b70 253
1cb6acca 254Can be used on: Linux kernel >= %{min_kernel}.
d90a3b13 255
94008272
JR
256%description -l uk.UTF-8
257Містить стандартні бібліотеки, котрі використовуються численними
258програмами в системі. Для того, щоб зберегти дисковий простір та
259пам'ять, а також для простоти поновлення системи, системний код,
260спільний для всіх програм, зберігається в одному місці і колективно
261використовується всіма програмами. Цей пакет містить найбільш важливі
262з динамічних бібліотек - стандартну бібліотеку С та стандартну
263бібліотеку математики. Без цих бібліотек Linux функціонувати не буде.
264Також пакет містить підтримку національних мов (locale).
76f01b70 265
1cb6acca 266Can be used on: Linux kernel >= %{min_kernel}.
98a7741e 267
c4fea372
JK
268%package misc
269Summary: Utilities and data used by glibc
32ba7e9f 270Summary(pl.UTF-8): Narzędzia i dane używane przez glibc
e44a2813 271Group: Applications/System
a0eebe50 272AutoReq: false
71181534
JB
273Requires(pre): %{name} = %{epoch}:%{version}-%{release}
274Requires: %{name} = %{epoch}:%{version}-%{release}
b1414da6 275Requires: tzdata >= 2006g-2
c4fea372
JK
276
277%description misc
fd1d4127
JB
278Utilities and data used by glibc.
279
94008272
JR
280%description misc -l pl.UTF-8
281Narzędzia i dane używane przez glibc.
c4fea372 282
fb120840 283%package devel
959d1cc7 284Summary: Additional libraries required to compile
32ba7e9f
ER
285Summary(de.UTF-8): Weitere Libraries zum Kompilieren
286Summary(es.UTF-8): Bibliotecas adicionales necesarias para la compilación
287Summary(fr.UTF-8): Librairies supplémentaires nécessaires à la compilation
288Summary(ja.UTF-8): 標準 C ライブラリで使われるヘッダーとオブジェクトファイル
289Summary(pl.UTF-8): Dodatkowe biblioteki wymagane podczas kompilacji
290Summary(ru.UTF-8): Дополнительные библиотеки, необходимые для компиляции
291Summary(tr.UTF-8): Geliştirme için gerekli diğer kitaplıklar
292Summary(uk.UTF-8): Додаткові бібліотеки, потрібні для компіляції
959d1cc7 293Group: Development/Libraries
69afb5a6 294Requires: %{name} = %{epoch}:%{version}-%{release}
5b00029e 295Requires: %{name}-devel-utils = %{epoch}:%{version}-%{release}
9b9eac8d 296Requires: %{name}-headers = %{epoch}:%{version}-%{release}
5b00029e 297Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
b34a4e03 298Obsoletes: libiconv-devel
959d1cc7 299
300%description devel
7a3b906b 301To develop programs which use the standard C libraries (which nearly
302all programs do), the system needs to have these standard header files
303and object files available for creating the executables.
959d1cc7 304
94008272 305%description devel -l de.UTF-8
7a3b906b 306Bei der Entwicklung von Programmen, die die Standard-C-Libraries
94008272
JR
307verwenden (also fast alle), benötigt das System diese Standard-Header-
308und Objektdateien zum Erstellen der ausführbaren Programme.
d90a3b13 309
94008272
JR
310%description devel -l es.UTF-8
311Para desarrollar programas que utilizan las bibliotecas C estándar (lo
312cual hacen prácticamente todos los programas), el sistema necesita
4a04bb32 313disponer de estos ficheros de cabecera y de objetos para crear los
314ejecutables.
315
94008272
JR
316%description devel -l fr.UTF-8
317Pour développer des programmes utilisant les bibliothèques standard du
318C (ce que presque tous les programmes font), le système doit posséder
319ces fichiers en-têtes et objets standards pour créer les exécutables.
320
321%description devel -l ja.UTF-8
322glibc-devel パッケージは(ほとんどすべてのプログラムで使われる)標準 C
323ライブラリを使用したプログラムを開発するためのヘッダーとオブジェクト
324ファイルを含みます。もし標準 C
325ライブラリを使用するプログラムを開発するなら
326実行ファイルを作成する目的でこれらの標準ヘッダとオブジェクトファイル
327が使用できます。
328
329%description devel -l pl.UTF-8
330Pakiet ten jest niezbędny przy tworzeniu własnych programów
331korzystających ze standardowej biblioteki C. Znajdują się tutaj pliki
332nagłówkowe oraz pliki obiektowe, niezbędne do kompilacji programów
7a3b906b 333wykonywalnych i innych bibliotek.
d90a3b13 334
94008272
JR
335%description devel -l ru.UTF-8
336Для разработки программ, использующих стандартные библиотеки C (а
337практически все программы их используют), системе НЕОБХОДИМЫ хедеры и
338объектные файлы, содержащиеся в этом пакете, чтобы создавать
339исполняемые файлы.
98a7741e 340
94008272
JR
341%description devel -l tr.UTF-8
342C kitaplığını kullanan (ki hemen hemen hepsi kullanıyor) programlar
343geliştirmek için gereken standart başlık dosyaları ve statik
344kitaplıklar.
d90a3b13 345
94008272
JR
346%description devel -l uk.UTF-8
347Для розробки програм, що використовують стандартні бібліотеки C
348(практично всі програми їх використовують), системі НЕОБХІДНІ хедери
349та об'єктні файли, що містяться в цьому пакеті, цоб створювати
350виконувані файли.
98a7741e 351
5b00029e
JB
352%package headers
353Summary: Header files for development using standard C libraries
32ba7e9f 354Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu standardowych bibliotek C
e44a2813 355Group: Development/Building
5b00029e
JB
356Provides: %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
357%ifarch %{x8664}
5145b9c7 358# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
5b00029e
JB
359# have to be installed, not ix86 one.
360Obsoletes: %{name}-headers(i386)
361Obsoletes: %{name}-headers(i486)
362Obsoletes: %{name}-headers(i586)
363Obsoletes: %{name}-headers(i686)
364Obsoletes: %{name}-headers(athlon)
365Obsoletes: %{name}-headers(pentium3)
366Obsoletes: %{name}-headers(pentium4)
367%endif
f70abfbb
JB
368%ifarch ppc64
369Obsoletes: %{name}-headers(ppc)
370%endif
371%ifarch s390x
372Obsoletes: %{name}-headers(s390)
373%endif
374%ifarch sparc64
375Obsoletes: %{name}-headers(sparc)
376%endif
5145b9c7 377Requires: linux-libc-headers >= %{llh_version}
5b00029e
JB
378
379%description headers
380The glibc-headers package contains the header files necessary for
381developing programs which use the standard C libraries (which are used
382by nearly all programs). If you are developing programs which will use
383the standard C libraries, your system needs to have these standard
384header files available in order to create the executables.
385
386Install glibc-headers if you are going to develop programs which will
387use the standard C libraries.
388
94008272
JR
389%description headers -l pl.UTF-8
390Pakiet glibc-headers zawiera pliki nagłówkowe niezbędne do rozwijania
391programów używających standardowych bibliotek C (używanych przez
392prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
393standardowych bibliotek C, system wymaga dostępności tych
394standardowych plików nagłówkowych do tworzenia programów
5b00029e
JB
395wykonywalnych.
396
94008272
JR
397Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
398korzystające ze standardowych bibliotek C.
5b00029e
JB
399
400%package devel-utils
401Summary: Utilities needed for development using standard C libraries
32ba7e9f 402Summary(pl.UTF-8): Narzędzia do tworzenia programów przy użyciu standardowych bibliotek C
5b00029e
JB
403Group: Development/Libraries
404Provides: %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
405%ifarch %{x8664}
406# If both -m32 and -m64 is to be supported on AMD64, x86_64 package
407# have to be installed, not ix86 one.
408Obsoletes: %{name}-devel-utils(i386)
409Obsoletes: %{name}-devel-utils(i486)
410Obsoletes: %{name}-devel-utils(i586)
411Obsoletes: %{name}-devel-utils(i686)
412Obsoletes: %{name}-devel-utils(athlon)
413Obsoletes: %{name}-devel-utils(pentium3)
414Obsoletes: %{name}-devel-utils(pentium4)
415%endif
f70abfbb
JB
416%ifarch ppc64
417Obsoletes: %{name}-devel-utils(ppc)
418%endif
419%ifarch s390x
420Obsoletes: %{name}-devel-utils(s390)
421%endif
422%ifarch sparc64
423Obsoletes: %{name}-devel-utils(sparc)
424%endif
5b00029e
JB
425
426%description devel-utils
427The glibc-devel-utils package contains utilities necessary for
428developing programs which use the standard C libraries (which are used
429by nearly all programs). If you are developing programs which will use
430the standard C libraries, your system needs to have these utilities
431available.
432
433Install glibc-devel-utils if you are going to develop programs which
434will use the standard C libraries.
435
94008272
JR
436%description devel-utils -l pl.UTF-8
437Pakiet glibc-devel-utils zawiera narzędzia niezbędne do rozwijania
438programów używających standardowych bibliotek C (używanych przez
439prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
440standardowych bibliotek C, system wymaga dostępności tych narzędzi do
441tworzenia programów wykonywalnych.
5b00029e 442
94008272
JR
443Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
444korzystające ze standardowych bibliotek C.
5b00029e
JB
445
446%package devel-doc
447Summary: Documentation needed for development using standard C libraries
32ba7e9f 448Summary(pl.UTF-8): Dokumentacja do tworzenia programów przy użyciu standardowych bibliotek C
5b00029e
JB
449Group: Documentation
450Provides: %{name}-devel-doc(%{_target_cpu}) = %{epoch}:%{version}-%{release}
451%ifarch %{x8664}
5145b9c7 452# If both -m32 and -m64 is to be supported on x86_64, x86_64 package
5b00029e
JB
453# have to be installed, not ix86 one.
454Obsoletes: %{name}-devel-doc(i386)
455Obsoletes: %{name}-devel-doc(i486)
456Obsoletes: %{name}-devel-doc(i586)
457Obsoletes: %{name}-devel-doc(i686)
458Obsoletes: %{name}-devel-doc(athlon)
459Obsoletes: %{name}-devel-doc(pentium3)
460Obsoletes: %{name}-devel-doc(pentium4)
461%endif
f70abfbb
JB
462%ifarch ppc64
463Obsoletes: %{name}-devel-doc(ppc)
464%endif
465%ifarch s390x
466Obsoletes: %{name}-devel-doc(s390)
467%endif
468%ifarch sparc64
469Obsoletes: %{name}-devel-doc(sparc)
470%endif
5b00029e
JB
471
472%description devel-doc
473The glibc-devel-doc package contains info and manual pages necessary
474for developing programs which use the standard C libraries (which are
475used by nearly all programs).
476
477Install glibc-devel-doc if you are going to develop programs which
478will use the standard C libraries.
479
94008272 480%description devel-doc -l pl.UTF-8
5b00029e 481Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
94008272 482rozwijania programów używających standardowych bibliotek C (używanych
5b00029e
JB
483przez prawie wszystkie programy).
484
94008272
JR
485Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
486korzystające ze standardowych bibliotek C.
5b00029e 487
fb120840 488%package -n nscd
bab19d4a 489Summary: Name Service Caching Daemon
32ba7e9f
ER
490Summary(es.UTF-8): Demonio de caché del servicio de nombres
491Summary(ja.UTF-8): ネームサービスキャッシングデーモン (nacd)
492Summary(pl.UTF-8): Demon zapamiętujący odpowiedzi serwisów nazw
493Summary(ru.UTF-8): Кэширующий демон сервисов имен
494Summary(uk.UTF-8): Кешуючий демон севісів імен
06880031 495Group: Networking/Daemons
9b9eac8d
ER
496Requires(post): fileutils
497Requires(post,preun): /sbin/chkconfig
498Requires(postun): /usr/sbin/groupdel
499Requires(postun): /usr/sbin/userdel
da7cc665
JB
500Requires(pre): /bin/id
501Requires(pre): /usr/bin/getgid
502Requires(pre): /usr/sbin/groupadd
503Requires(pre): /usr/sbin/useradd
69afb5a6 504Requires: %{name} = %{epoch}:%{version}-%{release}
da7cc665 505%{?with_selinux:Requires: libselinux >= 1.18}
71181534 506Requires: rc-scripts >= 0.2.0
da7cc665
JB
507Provides: group(nscd)
508Provides: user(nscd)
bab19d4a 509
510%description -n nscd
7a3b906b 511nscd caches name service lookups; it can dramatically improve
90ff660b 512performance with NIS+, and may help with DNS as well.
bab19d4a 513
94008272
JR
514%description -n nscd -l es.UTF-8
515nscd guarda las peticiones del servicio de nombres en una caché; eso
516puede aumentar drásticamente las prestaciones de NIS+, y también puede
90ff660b 517ayudar con DNS.
4a04bb32 518
94008272
JR
519%description -n nscd -l ja.UTF-8
520Nscd はネームサービス参照をキャッシュし、NIS+ のパフォーマンスを
521ドラマティックに改善することができ、DNS を同様に補助します。
c5387ad5 522
94008272
JR
523%description -n nscd -l pl.UTF-8
524nscd zapamiętuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
525drastycznie poprawić szybkość działania NIS+.
c43e39f5 526
94008272
JR
527%description -n nscd -l ru.UTF-8
528nscd кэширует результаты запросов к сервисам имен; это может резко
529увеличить производительность работы с NIS+ и, также, может помочь с
98a7741e 530DNS.
531
94008272
JR
532%description -n nscd -l uk.UTF-8
533nscd кешує результати запросів до сервісів імен; це може сильно
534збільшити швидкість роботи з NIS+ і, також, може допомогти з DNS.
98a7741e 535
d34cb8bc 536%package -n localedb-src
c5895f38 537Summary: locale database source code
32ba7e9f
ER
538Summary(es.UTF-8): Código fuente de la base de datos de los locales
539Summary(pl.UTF-8): Kod źródłowy bazy locale
2abb6d39 540Group: Libraries
69afb5a6 541Requires: %{name} = %{epoch}:%{version}-%{release}
860ccbf5 542Requires: gzip
a22f09bc 543Requires: sed
d34cb8bc 544
545%description -n localedb-src
7a3b906b 546This add-on package contains the data needed to build the locale data
40430bed 547files to use the internationalization features of the GNU libc.
d34cb8bc 548
94008272 549%description -n localedb-src -l es.UTF-8
4a04bb32 550Este paquete adicional contiene los datos necesarios para construir
551los ficheros de locale, imprescindibles para usar las cualidades de
94008272 552internacionalización de GNU libc.
4a04bb32 553
94008272
JR
554%description -n localedb-src -l pl.UTF-8
555Pakiet ten zawiera dane niezbędne do zbudowania binarnych plików
556lokalizacyjnych, by móc wykorzystać możliwości oferowane przez GNU
40430bed
JB
557libc.
558
559%package localedb-all
560Summary: locale database for all locales supported by glibc
32ba7e9f
ER
561Summary(es.UTF-8): Base de datos de todos los locales soportados por glibc
562Summary(pl.UTF-8): Baza danych locale dla wszystkich lokalizacji obsługiwanych przez glibc
40430bed 563Group: Libraries
69afb5a6 564Requires: %{name} = %{epoch}:%{version}-%{release}
9b9eac8d 565Requires: iconv = %{epoch}:%{version}-%{release}
40430bed
JB
566
567%description localedb-all
568This package contains locale database for all locales supported by
420cf057 569glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
40430bed
JB
570something smaller with support for chosen locales only, consider
571installing localedb-src and regenerating database using localedb-gen
572script (when database is generated, localedb-src can be uninstalled).
573
94008272 574%description localedb-all -l es.UTF-8
d22b4284 575Este paquete contiene una base de datos de todos los locales
94008272
JR
576soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
57739 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
578locales elegidos, considérese instalar localedb-src y regenerar la
d22b4284 579base de datos usando el escript localedb-gen (una vez que la base de
94008272 580datos esté creada, localedb-src se podrá desinstalar).
4a04bb32 581
94008272
JR
582%description localedb-all -l pl.UTF-8
583Ten pakiet zawiera bazę danych locale dla wszystkich lokalizacji
584obsługiwanych przez glibc. W glibc 2.3.x jest to jeden duży plik
585(około 39MB); aby mieć coś mniejszego, z obsługą tylko wybranych
586lokalizacji, należy zainstalować pakiet localedb-src i przegenerować
587bazę danych przy użyciu skryptu localedb-gen (po wygenerowaniu bazy
588pakiet localedb-src można odinstalować).
d34cb8bc 589
590%package -n iconv
591Summary: Convert encoding of given files from one encoding to another
32ba7e9f
ER
592Summary(es.UTF-8): Convierte entre varias codificaciones de los ficheros dados
593Summary(pl.UTF-8): Moduły do konwersji plików tekstowych z jednego kodowania do innego
2abb6d39 594Group: Libraries
69afb5a6 595Requires: %{name} = %{epoch}:%{version}-%{release}
d34cb8bc 596
597%description -n iconv
7a3b906b 598Convert encoding of given files from one encoding to another. You need
4a04bb32 599this package if you want to convert some document from one encoding to
c5895f38 600another or if you have installed some programs which use Generic
7a3b906b 601Character Set Conversion Interface.
d34cb8bc 602
94008272
JR
603%description -n iconv -l es.UTF-8
604Convierte la codificación de dados ficheros. Necesita este paquete si
605quiere convertir un documento entre una codificación (juego de
606caracteres) y otra, o si tiene instalado algún programa que usa el
607Generic Character Set Conversion Interface (interfaz genérica de
608conversión de juegos de caracteres).
609
610%description -n iconv -l pl.UTF-8
611Moduły do konwersji plików tekstowych z jednego kodowania do innego.
612Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
613dokumentów z jednego kodowania do innego lub do używania programów
614korzystających z Generic Character Set Conversion Interface w glibc,
615czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
2abb6d39 616kodowania danych z poziomu dowolnego programu.
d34cb8bc 617
fb120840 618%package static
c7df086f 619Summary: Static libraries
32ba7e9f
ER
620Summary(es.UTF-8): Bibliotecas estáticas
621Summary(pl.UTF-8): Biblioteki statyczne
622Summary(ru.UTF-8): Статические библиотеки glibc
623Summary(uk.UTF-8): Статичні бібліотеки glibc
c7df086f 624Group: Development/Libraries
69afb5a6 625Requires: %{name}-devel = %{epoch}:%{version}-%{release}
ca91c518 626Provides: %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
b34a4e03 627Obsoletes: libiconv-static
c7df086f 628
629%description static
d34cb8bc 630GNU libc static libraries.
c7df086f 631
94008272
JR
632%description static -l es.UTF-8
633Bibliotecas estáticas de GNU libc.
4a04bb32 634
94008272 635%description static -l pl.UTF-8
d34cb8bc 636Biblioteki statyczne GNU libc.
637
94008272
JR
638%description static -l ru.UTF-8
639Это отдельный пакет со статическими библиотеками, которые больше не
640входят в glibc-devel.
98a7741e 641
94008272
JR
642%description static -l uk.UTF-8
643Це окремий пакет зі статичними бібліотеками, що більше не входять в
644склад glibc-devel.
98a7741e 645
d34cb8bc 646%package profile
647Summary: glibc with profiling support
32ba7e9f
ER
648Summary(de.UTF-8): glibc mit Profil-Unterstützung
649Summary(es.UTF-8): glibc con soporte de perfilamiento
650Summary(fr.UTF-8): glibc avec support pour profiling
651Summary(pl.UTF-8): glibc ze wsparciem dla profilowania
652Summary(ru.UTF-8): GNU libc с поддержкой профайлера
653Summary(tr.UTF-8): Ölçüm desteği olan glibc
654Summary(uk.UTF-8): GNU libc з підтримкою профайлера
d34cb8bc 655Group: Development/Libraries/Libc
69afb5a6 656Requires: %{name}-devel = %{epoch}:%{version}-%{release}
dd75ad7c 657Obsoletes: libc-profile
d34cb8bc 658
659%description profile
4a04bb32 660When programs are being profiled using gprof, they must use these
7a3b906b 661libraries instead of the standard C libraries for gprof to be able to
662profile them correctly.
d34cb8bc 663
94008272
JR
664%description profile -l de.UTF-8
665Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
666Libraries anstelle der üblichen C-Libraries verwendet werden.
d34cb8bc 667
94008272 668%description profile -l es.UTF-8
4a04bb32 669Cuando programas son perfilidas usando gprof, tienen que usar estas
94008272 670biblioteces en vez de las estándares para que gprof pueda perfilarlas
4a04bb32 671correctamente.
672
94008272
JR
673%description profile -l pl.UTF-8
674Programy profilowane za pomocą gprof muszą używać tych bibliotek
675zamiast standardowych bibliotek C, aby gprof mógł odpowiednio je
676wyprofilować.
677
678%description profile -l uk.UTF-8
679Коли програми досліджуються профайлером gprof, вони повинні
680використовувати замість стандартних бібліотек бібліотеки, що містяться
681в цьому пакеті. При використанні стандартних бібліотек gprof замість
682реальних результатів буде показувати ціни на папайю в Гонолулу в
683позаминулому році...
684
685%description profile -l tr.UTF-8
686gprof kullanılarak ölçülen programlar standart C kitaplığı yerine bu
687kitaplığı kullanmak zorundadırlar.
688
689%description profile -l ru.UTF-8
690Когда программы исследуются профайлером gprof, они должны
691использовать, вместо стандартных библиотек, библиотеки, включенные в
692этот пакет. При использовании стандартных библиотек gprof вместо
693реальных результатов будет показывать цены на папайю в Гонолулу в
694позапрошлом году...
98a7741e 695
71a76fad 696%package pic
5240d049 697Summary: glibc PIC archive
32ba7e9f
ER
698Summary(es.UTF-8): Archivo PIC de glibc
699Summary(pl.UTF-8): Archiwum PIC glibc
908ab141 700Group: Development/Libraries/Libc
69afb5a6 701Requires: %{name}-devel = %{epoch}:%{version}-%{release}
71a76fad 702
703%description pic
908ab141 704GNU C Library PIC archive contains an archive library (ar file)
705composed of individual shared objects. This is used for creating a
706library which is a smaller subset of the standard libc shared library.
71a76fad 707
94008272 708%description pic -l es.UTF-8
d22b4284
SP
709El archivo PIC de la biblioteca glibc contiene una biblioteca
710archivada (un fichero ar) compuesta de individuales objetos
711compartidos. Es usado para crear una biblioteca que sea un subconjunto
94008272 712más pequeño de la biblioteca libc compartida estándar.
4a04bb32 713
94008272
JR
714%description pic -l pl.UTF-8
715Archiwum PIC biblioteki GNU C zawiera archiwalną bibliotekę (plik ar)
716złożoną z pojedynczych obiektów współdzielonych. Używana jest do
717tworzenia biblioteki będącej mniejszym podzestawem standardowej
718biblioteki współdzielonej libc.
5240d049 719
4206408a 720%package -n nss_compat
721Summary: Old style NYS NSS glibc module
32ba7e9f
ER
722Summary(es.UTF-8): El antiguo módulo NYS NSS de glibc
723Summary(pl.UTF-8): Stary moduł NYS NSS glibc
4206408a 724Group: Base
69afb5a6 725Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 726
4206408a 727%description -n nss_compat
5240d049
TP
728Old style NYS NSS glibc module.
729
94008272
JR
730%description -n nss_compat -l es.UTF-8
731El antiguo módulo NYS NSS de glibc
4a04bb32 732
94008272
JR
733%description -n nss_compat -l pl.UTF-8
734Stary moduł NYS NSS glibc.
c37d4a8e 735
4206408a 736%package -n nss_dns
737Summary: BIND NSS glibc module
32ba7e9f
ER
738Summary(es.UTF-8): Módulo BIND NSS de glibc
739Summary(pl.UTF-8): Moduł BIND NSS glibc
4206408a 740Group: Base
69afb5a6 741Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 742
4206408a 743%description -n nss_dns
744BIND NSS glibc module.
c37d4a8e 745
94008272
JR
746%description -n nss_dns -l es.UTF-8
747Módulo BIND NSS de glibc.
4a04bb32 748
94008272
JR
749%description -n nss_dns -l pl.UTF-8
750Moduł BIND NSS glibc.
5240d049 751
4206408a 752%package -n nss_files
753Summary: Traditional files databases NSS glibc module
32ba7e9f
ER
754Summary(es.UTF-8): Módulo de tradicionales bases de datos en ficheros para glibc
755Summary(pl.UTF-8): Moduł tradycyjnych plikowych baz danych NSS glibc
4206408a 756Group: Base
69afb5a6 757Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 758
4206408a 759%description -n nss_files
760Traditional files databases NSS glibc module.
c37d4a8e 761
94008272
JR
762%description -n nss_files -l es.UTF-8
763Módulo de tradicionales bases de datos en ficheros para glibc.
4a04bb32 764
94008272
JR
765%description -n nss_files -l pl.UTF-8
766Moduł tradycyjnych plikowych baz danych NSS glibc.
5240d049 767
4206408a 768%package -n nss_hesiod
c6600969 769Summary: hesiod NSS glibc module
32ba7e9f
ER
770Summary(es.UTF-8): Módulo hesiod NSS de glibc
771Summary(pl.UTF-8): Moduł hesiod NSS glibc
4206408a 772Group: Base
69afb5a6 773Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 774
4206408a 775%description -n nss_hesiod
5240d049
TP
776glibc NSS (Name Service Switch) module for databases access.
777
94008272
JR
778%description -n nss_hesiod -l es.UTF-8
779Módulo hesiod NSS de glibc.
4a04bb32 780
94008272
JR
781%description -n nss_hesiod -l pl.UTF-8
782Moduł glibc NSS (Name Service Switch) dostępu do baz danych.
c37d4a8e 783
4206408a 784%package -n nss_nis
785Summary: NIS(YP) NSS glibc module
32ba7e9f
ER
786Summary(es.UTF-8): Módulo NIS(YP) NSS de glibc
787Summary(pl.UTF-8): Moduł NIS(YP) NSS glibc
4206408a 788Group: Base
69afb5a6 789Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 790
4206408a 791%description -n nss_nis
5240d049
TP
792glibc NSS (Name Service Switch) module for NIS(YP) databases access.
793
94008272
JR
794%description -n nss_nis -l es.UTF-8
795Módulo NSS de glibc para acceder las bases de datos NIS(YP).
4a04bb32 796
94008272
JR
797%description -n nss_nis -l pl.UTF-8
798Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS(YP).
c37d4a8e 799
4206408a 800%package -n nss_nisplus
801Summary: NIS+ NSS module
32ba7e9f
ER
802Summary(es.UTF-8): Módulo NIS+ NSS
803Summary(pl.UTF-8): Moduł NIS+ NSS
4206408a 804Group: Base
69afb5a6 805Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 806
4206408a 807%description -n nss_nisplus
4a04bb32 808glibc NSS (Name Service Switch) module for NIS+ databases access.
809
94008272
JR
810%description -n nss_nisplus -l es.UTF-8
811Módulo NSS (Name Service Switch) de glibc para acceder las bases de
d22b4284 812datos NIS+.
5240d049 813
94008272
JR
814%description -n nss_nisplus -l pl.UTF-8
815Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
c37d4a8e 816
4206408a 817%package memusage
5240d049 818Summary: A toy
32ba7e9f
ER
819Summary(es.UTF-8): Un juguete
820Summary(pl.UTF-8): Zabawka
f78859cb 821Group: Applications
69afb5a6 822Requires: %{name} = %{epoch}:%{version}-%{release}
c37d4a8e 823
4206408a 824%description memusage
825A toy.
c37d4a8e 826
94008272 827%description memusage -l es.UTF-8
4a04bb32 828Un juguete.
829
94008272 830%description memusage -l pl.UTF-8
5240d049
TP
831Zabawka.
832
602a978a 833%prep
72549d49 834%setup -q -a1
5145b9c7 835ln -s glibc-libidn-%{version} libidn
9ab3e8a9 836%patch0 -p1
f2d222e0
AM
837# needs update/drop
838#%patch1 -p1
d36b187a 839%patch2 -p1
ddf4fb34 840%patch3 -p1
4b000c98 841%patch4 -p1
98036fec 842%patch5 -p1
16c630b5 843%patch6 -p1
f2d222e0 844
abd55222 845%patch8 -p1
e69f9d61 846%patch9 -p1
f2d222e0 847%patch10 -p1
5145b9c7
JB
848%patch11 -p1
849%patch12 -p1
c8ab4310 850%patch13 -p1
ba326c24 851%patch14 -p0
5145b9c7 852
42752e86 853%patch17 -p1
6eff0d91 854
4b000c98 855%patch20 -p1
4707c1ba 856%patch21 -p1
bf1d49cf 857%patch22 -p1
e69f9d61 858%patch23 -p1
72549d49 859%patch24 -p1
5145b9c7 860%{?with_cross:%patch25 -p1}
fcd6e70a 861%patch26 -p1
94e35f34 862
de1c7a1b 863# these would be copied to localedb-src
9e47feda 864rm -f localedata/locales/*{.orig,~}
de1c7a1b 865
98a7741e 866chmod +x scripts/cpp
d90a3b13 867
40240acb
JB
868# i786 (aka pentium4) hack
869cd nptl/sysdeps/i386 && ln -s i686 i786 && cd -
870cd nptl/sysdeps/unix/sysv/linux/i386 && ln -s i686 i786 && cd -
871
95b00200
JR
872# Hack till glibc-kernheaders get updated, argh
873%define min_kernel_ver %(echo %{min_kernel} | cut -f 1 -d .)
874%define min_kernel_patc %(echo %{min_kernel} | cut -f 2 -d .)
875%define min_kernel_subl %(echo %{min_kernel} | cut -f 3 -d .)
876%define min_kernel_code %(expr %{min_kernel_ver} \\* 65536 + %{min_kernel_patc} \\* 256 + %{min_kernel_subl})
877mkdir -p override_headers/linux
878cat > override_headers/linux/version.h <<EOF
879#define UTS_RELEASE "%{min_kernel}"
880#define LINUX_VERSION_CODE %{min_kernel_code}
881#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
882EOF
883mkdir -p override_headers/asm
884cat > override_headers/asm/unistd.h <<EOF
885#ifndef _HACK_ASM_UNISTD_H
886#include_next <asm/unistd.h>
887%ifarch alpha
888#ifndef __NR_stat64
889#define __NR_stat64 425
890#define __NR_lstat64 426
891#define __NR_fstat64 427
892#endif
893#ifndef __NR_mq_open
894#define __NR_mq_open 432
895#define __NR_mq_unlink 433
896#define __NR_mq_timedsend 434
897#define __NR_mq_timedreceive 435
898#define __NR_mq_notify 436
899#define __NR_mq_getsetattr 437
900#endif
901#ifndef __NR_waitid
902#define __NR_waitid 438
903#endif
904#ifndef __NR_inotify_init
905#define __NR_inotify_init 444
906#define __NR_inotify_add_watch 445
907#define __NR_inotify_rm_watch 446
908#endif
909%endif
910%ifarch %{ix86}
911#ifndef __NR_mq_open
912#define __NR_mq_open 277
913#define __NR_mq_unlink (__NR_mq_open+1)
914#define __NR_mq_timedsend (__NR_mq_open+2)
915#define __NR_mq_timedreceive (__NR_mq_open+3)
916#define __NR_mq_notify (__NR_mq_open+4)
917#define __NR_mq_getsetattr (__NR_mq_open+5)
918#endif
919#ifndef __NR_waitid
920#define __NR_waitid 284
921#endif
922#ifndef __NR_inotify_init
923#define __NR_inotify_init 291
924#define __NR_inotify_add_watch 292
925#define __NR_inotify_rm_watch 293
926#endif
927#ifndef __NR_openat
928#define __NR_openat 295
929#define __NR_mkdirat 296
930#define __NR_mknodat 297
931#define __NR_fchownat 298
932#define __NR_futimesat 299
933#define __NR_unlinkat 301
934#define __NR_renameat 302
935#define __NR_linkat 303
936#define __NR_symlinkat 304
937#define __NR_readlinkat 305
938#define __NR_fchmodat 306
939#define __NR_faccessat 307
940#endif
941#ifndef __NR_fstatat64
942#define __NR_fstatat64 300
943#endif
944#ifndef __NR_pselect6
945#define __NR_pselect6 308
946#define __NR_ppoll 309
947#endif
948#ifndef __NR_unshare
949#define __NR_unshare 310
950#endif
951#ifndef __NR_set_robust_list
952#define __NR_set_robust_list 311
953#define __NR_get_robust_list 312
954#endif
955#ifndef __NR_splice
956#define __NR_splice 313
957#endif
958#ifndef __NR_sync_file_range
959#define __NR_sync_file_range 314
960#endif
961#ifndef __NR_tee
962#define __NR_tee 315
963#endif
964#ifndef __NR_vmsplice
965#define __NR_vmsplice 316
966#endif
967%endif
968%ifarch ia64
969#ifndef __NR_timer_create
970#define __NR_timer_create 1248
971#define __NR_timer_settime 1249
972#define __NR_timer_gettime 1250
973#define __NR_timer_getoverrun 1251
974#define __NR_timer_delete 1252
975#define __NR_clock_settime 1253
976#define __NR_clock_gettime 1254
977#define __NR_clock_getres 1255
978#define __NR_clock_nanosleep 1256
979#endif
980#ifndef __NR_mq_open
981#define __NR_mq_open 1262
982#define __NR_mq_unlink 1263
983#define __NR_mq_timedsend 1264
984#define __NR_mq_timedreceive 1265
985#define __NR_mq_notify 1266
986#define __NR_mq_getsetattr 1267
987#endif
988#ifndef __NR_waitid
989#define __NR_waitid 1270
990#endif
991#ifndef __NR_inotify_init
992#define __NR_inotify_init 1277
993#define __NR_inotify_add_watch 1278
994#define __NR_inotify_rm_watch 1279
995#endif
996#ifndef __NR_openat
997#define __NR_openat 1281
998#define __NR_mkdirat 1282
999#define __NR_mknodat 1283
1000#define __NR_fchownat 1284
1001#define __NR_futimesat 1285
1002#define __NR_newfstatat 1286
1003#define __NR_unlinkat 1287
1004#define __NR_renameat 1288
1005#define __NR_linkat 1289
1006#define __NR_symlinkat 1290
1007#define __NR_readlinkat 1291
1008#define __NR_fchmodat 1292
1009#define __NR_faccessat 1293
1010#endif
1011#if 0
1012#ifndef __NR_pselect6
1013#define __NR_pselect6 1294
1014#define __NR_ppoll 1295
1015#endif
1016#endif
1017#ifndef __NR_unshare
1018#define __NR_unshare 1296
1019#endif
1020#ifndef __NR_splice
1021#define __NR_splice 1297
1022#endif
1023#ifndef __NR_set_robust_list
1024#define __NR_set_robust_list 1298
1025#define __NR_get_robust_list 1299
1026#endif
1027#ifndef __NR_sync_file_range
1028#define __NR_sync_file_range 1300
1029#endif
1030#ifndef __NR_tee
1031#define __NR_tee 1301
1032#endif
1033#ifndef __NR_vmsplice
1034#define __NR_vmsplice 1302
1035#endif
1036%endif
1037%ifarch ppc
1038#ifndef __NR_utimes
1039#define __NR_utimes 251
1040#endif
1041#ifndef __NR_statfs64
1042#define __NR_statfs64 252
1043#define __NR_fstatfs64 253
1044#endif
1045#ifndef __NR_fadvise64_64
1046#define __NR_fadvise64_64 254
1047#endif
1048#ifndef __NR_mq_open
1049#define __NR_mq_open 262
1050#define __NR_mq_unlink 263
1051#define __NR_mq_timedsend 264
1052#define __NR_mq_timedreceive 265
1053#define __NR_mq_notify 266
1054#define __NR_mq_getsetattr 267
1055#endif
1056#ifndef __NR_waitid
1057#define __NR_waitid 272
1058#endif
1059#ifndef __NR_inotify_init
1060#define __NR_inotify_init 275
1061#define __NR_inotify_add_watch 276
1062#define __NR_inotify_rm_watch 277
1063#endif
1064#ifndef __NR_pselect6
1065#define __NR_pselect6 280
1066#define __NR_ppoll 281
1067#endif
1068#ifndef __NR_unshare
1069#define __NR_unshare 282
1070#endif
1071#ifndef __NR_splice
1072#define __NR_splice 283
1073#endif
1074#ifndef __NR_tee
1075#define __NR_tee 284
1076#endif
1077#ifndef __NR_vmsplice
1078#define __NR_vmsplice 285
1079#endif
1080#ifndef __NR_openat
1081#define __NR_openat 286
1082#define __NR_mkdirat 287
1083#define __NR_mknodat 288
1084#define __NR_fchownat 289
1085#define __NR_futimesat 290
1086#define __NR_fstatat64 291
1087#define __NR_unlinkat 292
1088#define __NR_renameat 293
1089#define __NR_linkat 294
1090#define __NR_symlinkat 295
1091#define __NR_readlinkat 296
1092#define __NR_fchmodat 297
1093#define __NR_faccessat 298
1094#endif
1095%endif
1096%ifarch ppc64
1097#ifndef __NR_utimes
1098#define __NR_utimes 251
1099#endif
1100#ifndef __NR_mq_open
1101#define __NR_mq_open 262
1102#define __NR_mq_unlink 263
1103#define __NR_mq_timedsend 264
1104#define __NR_mq_timedreceive 265
1105#define __NR_mq_notify 266
1106#define __NR_mq_getsetattr 267
1107#endif
1108#ifndef __NR_waitid
1109#define __NR_waitid 272
1110#endif
1111#ifndef __NR_inotify_init
1112#define __NR_inotify_init 275
1113#define __NR_inotify_add_watch 276
1114#define __NR_inotify_rm_watch 277
1115#endif
1116#ifndef __NR_pselect6
1117#define __NR_pselect6 280
1118#define __NR_ppoll 281
1119#endif
1120#ifndef __NR_unshare
1121#define __NR_unshare 282
1122#endif
1123#ifndef __NR_splice
1124#define __NR_splice 283
1125#endif
1126#ifndef __NR_tee
1127#define __NR_tee 284
1128#endif
1129#ifndef __NR_vmsplice
1130#define __NR_vmsplice 285
1131#endif
1132#ifndef __NR_openat
1133#define __NR_openat 286
1134#define __NR_mkdirat 287
1135#define __NR_mknodat 288
1136#define __NR_fchownat 289
1137#define __NR_futimesat 290
1138#define __NR_newfstatat 291
1139#define __NR_unlinkat 292
1140#define __NR_renameat 293
1141#define __NR_linkat 294
1142#define __NR_symlinkat 295
1143#define __NR_readlinkat 296
1144#define __NR_fchmodat 297
1145#define __NR_faccessat 298
1146#endif
1147%endif
1148%ifarch s390
1149#ifndef __NR_timer_create
1150#define __NR_timer_create 254
1151#define __NR_timer_settime (__NR_timer_create+1)
1152#define __NR_timer_gettime (__NR_timer_create+2)
1153#define __NR_timer_getoverrun (__NR_timer_create+3)
1154#define __NR_timer_delete (__NR_timer_create+4)
1155#define __NR_clock_settime (__NR_timer_create+5)
1156#define __NR_clock_gettime (__NR_timer_create+6)
1157#define __NR_clock_getres (__NR_timer_create+7)
1158#define __NR_clock_nanosleep (__NR_timer_create+8)
1159#endif
1160#ifndef __NR_fadvise64_64
1161#define __NR_fadvise64_64 264
1162#endif
1163#ifndef __NR_statfs64
1164#define __NR_statfs64 265
1165#define __NR_fstatfs64 266
1166#endif
1167#ifndef __NR_mq_open
1168#define __NR_mq_open 271
1169#define __NR_mq_unlink 272
1170#define __NR_mq_timedsend 273
1171#define __NR_mq_timedreceive 274
1172#define __NR_mq_notify 275
1173#define __NR_mq_getsetattr 276
1174#endif
1175#ifndef __NR_waitid
1176#define __NR_waitid 281
1177#endif
1178#ifndef __NR_inotify_init
1179#define __NR_inotify_init 284
1180#define __NR_inotify_add_watch 285
1181#define __NR_inotify_rm_watch 286
1182#endif
1183#ifndef __NR_openat
1184#define __NR_openat 288
1185#define __NR_mkdirat 289
1186#define __NR_mknodat 290
1187#define __NR_fchownat 291
1188#define __NR_futimesat 292
1189#define __NR_fstatat64 293
1190#define __NR_unlinkat 294
1191#define __NR_renameat 295
1192#define __NR_linkat 296
1193#define __NR_symlinkat 297
1194#define __NR_readlinkat 298
1195#define __NR_fchmodat 299
1196#define __NR_faccessat 300
1197#endif
1198#ifndef __NR_pselect6
1199#define __NR_pselect6 301
1200#define __NR_ppoll 302
1201#endif
1202#ifndef __NR_unshare
1203#define __NR_unshare 303
1204#endif
1205%endif
1206%ifarch s390x
1207#ifndef __NR_timer_create
1208#define __NR_timer_create 254
1209#define __NR_timer_settime (__NR_timer_create+1)
1210#define __NR_timer_gettime (__NR_timer_create+2)
1211#define __NR_timer_getoverrun (__NR_timer_create+3)
1212#define __NR_timer_delete (__NR_timer_create+4)
1213#define __NR_clock_settime (__NR_timer_create+5)
1214#define __NR_clock_gettime (__NR_timer_create+6)
1215#define __NR_clock_getres (__NR_timer_create+7)
1216#define __NR_clock_nanosleep (__NR_timer_create+8)
1217#endif
1218#ifndef __NR_mq_open
1219#define __NR_mq_open 271
1220#define __NR_mq_unlink 272
1221#define __NR_mq_timedsend 273
1222#define __NR_mq_timedreceive 274
1223#define __NR_mq_notify 275
1224#define __NR_mq_getsetattr 276
1225#endif
1226#ifndef __NR_waitid
1227#define __NR_waitid 281
1228#endif
1229#ifndef __NR_inotify_init
1230#define __NR_inotify_init 284
1231#define __NR_inotify_add_watch 285
1232#define __NR_inotify_rm_watch 286
1233#endif
1234#ifndef __NR_openat
1235#define __NR_openat 288
1236#define __NR_mkdirat 289
1237#define __NR_mknodat 290
1238#define __NR_fchownat 291
1239#define __NR_futimesat 292
1240#define __NR_newfstatat 293
1241#define __NR_unlinkat 294
1242#define __NR_renameat 295
1243#define __NR_linkat 296
1244#define __NR_symlinkat 297
1245#define __NR_readlinkat 298
1246#define __NR_fchmodat 299
1247#define __NR_faccessat 300
1248#endif
1249#ifndef __NR_pselect6
1250#define __NR_pselect6 301
1251#define __NR_ppoll 302
1252#endif
1253#ifndef __NR_unshare
1254#define __NR_unshare 303
1255#endif
1256%endif
1257%ifarch sparc sparcv9 sparc64
1258#ifndef __NR_mq_open
1259#define __NR_mq_open 273
1260#define __NR_mq_unlink 274
1261#define __NR_mq_timedsend 275
1262#define __NR_mq_timedreceive 276
1263#define __NR_mq_notify 277
1264#define __NR_mq_getsetattr 278
1265#endif
1266#ifndef __NR_waitid
1267#define __NR_waitid 279
1268#endif
1269#ifndef __NR_stat64
1270#define __NR_fstat64 63
1271#define __NR_lstat64 132
1272#define __NR_stat64 139
1273#endif
1274#ifndef __NR_inotify_init
1275#define __NR_inotify_init 151
1276#define __NR_inotify_add_watch 152
1277#define __NR_inotify_rm_watch 156
1278#endif
1279#ifndef __NR_openat
1280#define __NR_openat 284
1281#define __NR_mkdirat 285
1282#define __NR_mknodat 286
1283#define __NR_fchownat 287
1284#define __NR_futimesat 288
1285#define __NR_newfstatat 289
1286#define __NR_unlinkat 290
1287#define __NR_renameat 291
1288#define __NR_linkat 292
1289#define __NR_symlinkat 293
1290#define __NR_readlinkat 294
1291#define __NR_fchmodat 295
1292#define __NR_faccessat 296
1293#endif
1294#ifndef __NR_pselect6
1295#define __NR_pselect6 297
1296#define __NR_ppoll 298
1297#endif
1298#ifndef __NR_unshare
1299#define __NR_unshare 299
1300#endif
1301%endif
1302%ifarch x86_64
1303#ifndef __NR_mq_open
1304#define __NR_mq_open 240
1305#define __NR_mq_unlink 241
1306#define __NR_mq_timedsend 242
1307#define __NR_mq_timedreceive 243
1308#define __NR_mq_notify 244
1309#define __NR_mq_getsetattr 245
1310#endif
1311#ifndef __NR_waitid
1312#define __NR_waitid 247
1313#endif
1314#ifndef __NR_inotify_init
1315#define __NR_inotify_init 253
1316#define __NR_inotify_add_watch 254
1317#define __NR_inotify_rm_watch 255
1318#endif
1319#ifndef __NR_openat
1320#define __NR_openat 257
1321#define __NR_mkdirat 258
1322#define __NR_mknodat 259
1323#define __NR_fchownat 260
1324#define __NR_futimesat 261
1325#define __NR_newfstatat 262
1326#define __NR_unlinkat 263
1327#define __NR_renameat 264
1328#define __NR_linkat 265
1329#define __NR_symlinkat 266
1330#define __NR_readlinkat 267
1331#define __NR_fchmodat 268
1332#define __NR_faccessat 269
1333#endif
1334#ifndef __NR_pselect6
1335#define __NR_pselect6 270
1336#define __NR_ppoll 271
1337#endif
1338#ifndef __NR_unshare
1339#define __NR_unshare 272
1340#endif
1341#ifndef __NR_set_robust_list
1342#define __NR_set_robust_list 273
1343#define __NR_get_robust_list 274
1344#endif
1345#ifndef __NR_splice
1346#define __NR_splice 275
1347#endif
1348#ifndef __NR_tee
1349#define __NR_tee 276
1350#endif
1351#ifndef __NR_sync_file_range
1352#define __NR_sync_file_range 277
1353#endif
1354#ifndef __NR_vmsplice
1355#define __NR_vmsplice 278
1356#endif
1357%endif
1358#endif
1359EOF
1360cat > override_headers/asm/errno.h <<EOF
1361#ifndef _HACK_ASM_ERRNO_H
1362#include_next <asm/errno.h>
1363%ifarch alpha
1364#ifndef ENOKEY
1365#define ENOKEY 132
1366#define EKEYEXPIRED 133
1367#define EKEYREVOKED 134
1368#define EKEYREJECTED 135
1369#endif
1370#ifndef EOWNERDEAD
1371#define EOWNERDEAD 136
1372#define ENOTRECOVERABLE 137
1373#endif
1374%endif
1375%ifarch %{ix86} ia64 ppc ppc64 s390 s390x x86_64
1376#ifndef ENOKEY
1377#define ENOKEY 126
1378#define EKEYEXPIRED 127
1379#define EKEYREVOKED 128
1380#define EKEYREJECTED 129
1381#endif
1382#ifndef EOWNERDEAD
1383#define EOWNERDEAD 130
1384#define ENOTRECOVERABLE 131
1385#endif
1386%endif
1387%ifarch sparc sparcv9 sparc64
1388#ifndef ENOKEY
1389#define ENOKEY 128
1390#define EKEYEXPIRED 129
1391#define EKEYREVOKED 130
1392#define EKEYREJECTED 131
1393#endif
1394#ifndef EOWNERDEAD
1395#define EOWNERDEAD 132
1396#define ENOTRECOVERABLE 133
1397#endif
1398%endif
1399#endif
1400EOF
1401
1402# A lot of programs still misuse memcpy when they have to use
1403# memmove. The memcpy implementation below is not tolerant at
1404# all.
1405rm -f sysdeps/alpha/alphaev6/memcpy.S
1406
d90a3b13 1407%build
0469b7fd 1408# glibc has its own way to remove PLT relocations. / H. J. Lu.
28a2e091 1409unset LD_SYMBOLIC_FUNCTIONS || :
0469b7fd 1410
9b9d0010 1411cp -f /usr/share/automake/config.sub scripts
68ed41fd
PS
1412%{__aclocal}
1413%{__autoconf}
5145b9c7 1414
2ed7b994 1415rm -rf builddir
cfac0d25 1416install -d builddir
e2a5184e 1417cd builddir
472e31ee
JB
1418%ifarch sparc64
1419CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
1420%endif
5145b9c7 1421AWK="gawk" \
e2a5184e 1422../%configure \
49db3d50 1423 --enable-kernel="%{min_kernel}" \
5145b9c7 1424 --enable-omitfp \
95b00200 1425 --with-headers=`cd ..; pwd`/override_headers:%{_includedir} \
40240acb
JB
1426 --with%{!?with_selinux:out}-selinux \
1427 --with-tls \
4c3586c2 1428 --enable-add-ons=nptl,libidn \
5145b9c7
JB
1429 --enable-stackguard-randomization \
1430 --enable-hidden-plt \
2ed7b994 1431 --enable-profile
55463a82 1432
f3cc1845
PS
1433%{__make} \
1434 sLIBdir=%{_libdir}
1435
5145b9c7 1436cd ..
cfac0d25 1437
e81552c8 1438%if %{with tests}
5145b9c7 1439for d in builddir; do
40240acb 1440cd $d
e81552c8 1441env LANGUAGE=C LC_ALL=C \
00139ef4 1442%{__make} tests 2>&1 | awk '
e81552c8
AM
1443BEGIN { file = "" }
1444{
114d7fe6 1445 if (($0 ~ /\*\*\* \[.*\.out\] Error/) && ($0 !~ /annexc/) && (file == "")) {
e81552c8
AM
1446 file=$0;
1447 gsub(/.*\[/, NIL, file);
1448 gsub(/\].*/, NIL, file);
1449 }
00139ef4 1450 print $0;
e81552c8
AM
1451}
1452END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
40240acb
JB
1453cd ..
1454done
e81552c8 1455%endif
adfd3b3d 1456
e408c264 1457%if !%{with cross}
55139ed8 1458diet %{__cc} %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
f70abfbb 1459%endif
b6bedda4 1460
d90a3b13 1461%install
1462rm -rf $RPM_BUILD_ROOT
f307cfc5 1463install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd}
f8865a58 1464
e2a5184e 1465cd builddir
5240d049 1466env LANGUAGE=C LC_ALL=C \
1739e791 1467%{__make} install \
bab19d4a 1468 install_root=$RPM_BUILD_ROOT \
1469 infodir=%{_infodir} \
1470 mandir=%{_mandir}
f8865a58 1471
0a85848c 1472%if %{with localedb}
5240d049 1473env LANGUAGE=C LC_ALL=C \
8ab3a6c9 1474%{__make} localedata/install-locales \
bab19d4a 1475 install_root=$RPM_BUILD_ROOT
0a85848c 1476%endif
d90a3b13 1477
5240d049
TP
1478PICFILES="libc_pic.a libc.map
1479 math/libm_pic.a libm.map
1480 resolv/libresolv_pic.a"
71a76fad 1481
5240d049
TP
1482install $PICFILES $RPM_BUILD_ROOT%{_libdir}
1483install elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
1484install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
cfac0d25 1485cd ..
8ab3a6c9 1486
e408c264 1487%if !%{with cross}
b6bedda4 1488install glibc-postinst $RPM_BUILD_ROOT/sbin
f70abfbb 1489%endif
b6bedda4 1490
4c3586c2 1491%{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
c4fea372 1492mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
77d92b8b 1493
b1414da6
JB
1494rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
1495# moved to tzdata package
1496rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo
d90a3b13 1497
277c4a9d 1498ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
ff4a133a 1499
277c4a9d 1500# make symlinks across top-level directories absolute
0781f7b6 1501for l in anl BrokenLocale crypt dl m nsl resolv rt thread_db util ; do
277c4a9d 1502 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
c4fea372 1503 ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
277c4a9d
JB
1504done
1505
05486726
AM
1506install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1507install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
1508install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
87d5a0d2 1509install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
bebe21cc 1510sed -e 's#\([ \t]\)db\([ \t]\)#\1#g' nss/nsswitch.conf > $RPM_BUILD_ROOT%{_sysconfdir}/nsswitch.conf
87d5a0d2 1511install posix/gai.conf $RPM_BUILD_ROOT%{_sysconfdir}
16c630b5 1512
c646f82f 1513bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
21f1736f 1514> $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
60d03a9f 1515install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
5145b9c7 1516echo 'include ld.so.conf.d/*.conf' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
8ab3a6c9 1517rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
c37d4a8e 1518
ddf4fb34 1519:> $RPM_BUILD_ROOT/var/log/nscd
f307cfc5
JB
1520:> $RPM_BUILD_ROOT/var/lib/nscd/passwd
1521:> $RPM_BUILD_ROOT/var/lib/nscd/group
1522:> $RPM_BUILD_ROOT/var/lib/nscd/hosts
236a5027 1523
cfac0d25
JB
1524rm -rf documentation
1525install -d documentation
16c630b5 1526
5145b9c7
JB
1527for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing}; do
1528 cp -f nptl/$f documentation/$f.nptl
3cc9adfc 1529done
5145b9c7 1530cp -f crypt/README.ufc-crypt ChangeLog* documentation
d90a3b13 1531
49db3d50 1532rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
5873e793 1533
c7d9be53 1534# strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
e6a48891 1535%{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/%{_lib}/ld-*.so}
c7d9be53 1536
503c0862 1537# Collect locale files and mark them with %%lang()
cfac0d25
JB
1538rm -f glibc.lang
1539echo '%defattr(644,root,root,755)' > glibc.lang
49db3d50 1540for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
503c0862 1541 if [ -d $i ]; then
1aa895e1 1542 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
a7079698 1543 twochar=1
1544 # list of long %%lang values we do support
aa65c8d7 1545 for j in de_AT de_BE de_CH de_LU es_AR es_MX pt_BR \
a7079698 1546 zh_CN zh_CN.gbk zh_HK zh_TW ; do
1547 if [ $j = "$lang" ]; then
1548 twochar=
1549 fi
1550 done
1551 if [ -n "$twochar" ]; then
1552 if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
1553 lang=`echo $lang | sed "s,\..*,,"`
1554 else
dfd9b0bb 1555 lang=`echo $lang | sed "s,_.*,,"`
c5387ad5 1556 fi
1557 fi
503c0862 1558 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
cfac0d25 1559 echo "%lang($lang) $dir" >> glibc.lang
503c0862
JR
1560 fi
1561done
51d79c6b 1562# XXX: to be added when become supported by glibc
5f34e158 1563# az_IR (gtk+)
e74d046c 1564# gn (gn_BR in gnome, maybe gn_PY)
f2510dca 1565# dv, haw, kok, ps (iso-codes)
5f34e158 1566# my (gaim)
5f34e158 1567#
4b000c98 1568# NOTES:
692dc976
JB
1569# what about sr@ije? it used to be sr_CS@ije (should be @[i]jekavian?), but
1570# now this dialect uses sr_ME locale - rename dir to sr_ME?
1571#
b4ec8e5c 1572# bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
7f81230c 1573# till now
b4ec8e5c 1574#
4b000c98 1575# omitted here - already existing (with libc.mo):
b4ec8e5c 1576# be,ca,cs,da,de,el,en_GB,es,fi,fr,gl,hr,hu,it,ja,ko,nb,nl,pl,pt_BR,sk,sv,
1577# tr,zh_CN,zh_TW
1578#
4707c1ba 1579for i in aa af am ang ar as az bg bn bn_IN br bs byn cy de_AT dz en en@boldquot \
514d3fbb 1580 en@quot en_AU en_CA en_US eo es_AR es_MX es_NI et eu fa fo fr_BE fy ga \
d51224e2
JB
1581 gez gu gv he hi hsb hy ia id is it_CH iu ka kk kl km kn ku kw ky leet lg li \
1582 lo lt lv mg mi mk ml mn mr ms mt nds ne nl_BE nn nso oc om or pa pt rm ro \
4707c1ba 1583 ru rw sa se si sid sl so sq sr sr@Latn sr@ije ss syr sw ta te tg th ti tig \
22c6c00b 1584 tk tl tlh tt ug uk ur uz ve vi wa wal wo xh yi yo zh_HK zu ; do
8ab3a6c9 1585 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
5b2b5619 1586 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
1587 lang=`echo $i | sed -e 's/_.*//'`
cfac0d25 1588 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
5b2b5619 1589 fi
1590done
503c0862 1591
40430bed 1592# localedb-gen infrastructure
ae7aa792
ER
1593sed -e 's,@localedir@,%{_libdir}/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1594chmod +x $RPM_BUILD_ROOT%{_bindir}/localedb-gen
cfac0d25 1595install localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
40430bed 1596
8ab3a6c9 1597# shutup check-files
8bc00675
JB
1598rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
1599rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
1600rm -f $RPM_BUILD_ROOT%{_infodir}/dir
8ab3a6c9 1601# we don't support kernel without ptys support
49db3d50 1602rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
88300fde 1603
ea870772
JB
1604%clean
1605rm -rf $RPM_BUILD_ROOT
1606
fc7d9af9
JB
1607# don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
1608# when %%postun is run
002a72ae 1609
e408c264 1610%if !%{with cross}
d326d834 1611%post -p /sbin/postshell
3a32e57b 1612/sbin/glibc-postinst /%{_lib}/%{_host_cpu} /%{_lib}/tls
ecf87e84 1613/sbin/ldconfig
88300fde
AF
1614-/sbin/telinit u
1615
d326d834 1616%postun -p /sbin/postshell
d326d834 1617/sbin/ldconfig
88300fde 1618-/sbin/telinit u
d90a3b13 1619
5145b9c7 1620%triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.5-7.6
60d03a9f
JB
1621-/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1622-/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
f70abfbb 1623%endif
60d03a9f 1624
5240d049 1625%post memusage -p /sbin/ldconfig
5145b9c7 1626%postun memusage -p /sbin/ldconfig
05486726 1627
188ceaa6 1628%post -n iconv -p %{_sbindir}/iconvconfig
436fd1ea 1629
d90a3b13 1630%post devel
19cc9468 1631[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
d90a3b13 1632
d34cb8bc 1633%postun devel
19cc9468 1634[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
d90a3b13 1635
da7cc665 1636%pre -n nscd
e9351fa5
ER
1637%groupadd -P nscd -g 144 -r nscd
1638%useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "nscd" -g nscd nscd
da7cc665 1639
8912a874 1640%post -n nscd
19cc9468 1641/sbin/chkconfig --add nscd
c6600969 1642touch /var/log/nscd
1643chmod 000 /var/log/nscd
1644chown root:root /var/log/nscd
1645chmod 640 /var/log/nscd
9b9eac8d 1646%service nscd restart "nscd daemon"
8912a874 1647
1648%preun -n nscd
19cc9468 1649if [ "$1" = "0" ]; then
9b9eac8d 1650 %service nscd stop
19cc9468 1651 /sbin/chkconfig --del nscd
1652fi
8912a874 1653
da7cc665
JB
1654%postun -n nscd
1655if [ "$1" = "0" ]; then
1656 %userremove nscd
1657 %groupremove nscd
1658fi
1659
d22b4284
SP
1660%files
1661%defattr(644,root,root,755)
e2a5184e 1662%doc README NEWS FAQ BUGS
e408c264 1663%if !%{with cross}
b6bedda4 1664%attr(755,root,root) /sbin/glibc-postinst
f70abfbb 1665%endif
fea833d1 1666%attr(755,root,root) /sbin/ldconfig
c4fea372
JK
1667# ld* and libc.so.6 SONAME symlinks must be in package because of
1668# chicken-egg problem (postshell is dynamically linked with libc);
c793d691 1669# NOTE: postshell is now linked statically with diet
05743f54
JB
1670# ld-*.so SONAME is:
1671# ld.so.1 on ppc
1672# ld64.so.1 on ppc64,s390x
1673# ld-linux-ia64.so.2 on ia64
7adf02d6 1674# ld-linux-x86-64.so.2 on x86_64
05743f54 1675# ld-linux.so.2 on other archs
c4fea372
JK
1676%attr(755,root,root) /%{_lib}/ld*
1677%attr(755,root,root) /%{_lib}/libanl*
1678%attr(755,root,root) /%{_lib}/libdl*
1679%attr(755,root,root) /%{_lib}/libnsl*
1680%attr(755,root,root) /%{_lib}/lib[BScmprtu]*
0a85848c 1681%{?with_localedb:%dir %{_libdir}/locale}
f307cfc5 1682%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
60d03a9f 1683%dir %{_sysconfdir}/ld.so.conf.d
05643622 1684%ghost %{_sysconfdir}/ld.so.cache
c4fea372 1685
0b0bde94
JK
1686#%files -n nss_dns
1687%defattr(644,root,root,755)
1688%attr(755,root,root) /%{_lib}/libnss_dns*.so*
1689
1690#%files -n nss_files
1691%defattr(644,root,root,755)
1692%attr(755,root,root) /%{_lib}/libnss_files*.so*
1693
c4fea372
JK
1694%files misc -f %{name}.lang
1695%defattr(644,root,root,755)
236a5027 1696
f307cfc5 1697%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
87d5a0d2
AM
1698%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gai.conf
1699
4206408a 1700%config %{_sysconfdir}/rpc
c37d4a8e 1701
fea833d1 1702%attr(755,root,root) /sbin/sln
ba697d79 1703%attr(755,root,root) %{_bindir}/catchsegv
72549d49 1704%attr(755,root,root) %{_bindir}/getconf
ba697d79 1705%attr(755,root,root) %{_bindir}/getent
3abcf615 1706%attr(755,root,root) %{_bindir}/iconv
ba697d79 1707%attr(755,root,root) %{_bindir}/ldd
472e31ee 1708%ifarch %{ix86} m68k sparc sparcv9
ba697d79 1709%attr(755,root,root) %{_bindir}/lddlibc4
f15a9825 1710%endif
ba697d79 1711%attr(755,root,root) %{_bindir}/locale
ba697d79 1712%attr(755,root,root) %{_bindir}/rpcgen
1713%attr(755,root,root) %{_bindir}/tzselect
ba697d79 1714
bab19d4a 1715%attr(755,root,root) %{_sbindir}/rpcinfo
bab19d4a 1716%attr(755,root,root) %{_sbindir}/zdump
1717%attr(755,root,root) %{_sbindir}/zic
236a5027 1718
72549d49
JB
1719%dir %{_libexecdir}/getconf
1720%attr(755,root,root) %{_libexecdir}/getconf/*
1721
503c0862
JR
1722%dir %{_datadir}/locale
1723%{_datadir}/locale/locale.alias
236a5027 1724
fa0f5e25 1725%{_mandir}/man1/catchsegv.1*
72549d49 1726%{_mandir}/man1/getconf.1*
4377d843 1727%{_mandir}/man1/getent.1*
fa0f5e25 1728%{_mandir}/man1/iconv.1*
3d65e37f 1729%{_mandir}/man1/ldd.1*
fa0f5e25
JB
1730%{_mandir}/man1/locale.1*
1731%{_mandir}/man1/rpcgen.1*
1732%{_mandir}/man5/locale.5*
1733%{_mandir}/man5/nsswitch.conf.5*
1734%{_mandir}/man5/tzfile.5*
3d65e37f 1735%{_mandir}/man7/*
fa0f5e25
JB
1736%{_mandir}/man8/ld*.8*
1737%{_mandir}/man8/rpcinfo.8*
1738%{_mandir}/man8/sln.8*
1739%{_mandir}/man8/tzselect.8*
1740%{_mandir}/man8/zdump.8*
1741%{_mandir}/man8/zic.8*
1742%lang(cs) %{_mandir}/cs/man7/*
1743%lang(de) %{_mandir}/de/man5/tzfile.5*
1744%lang(de) %{_mandir}/de/man7/*
49ead7a0 1745%lang(es) %{_mandir}/es/man1/ldd.1*
fa0f5e25
JB
1746%lang(es) %{_mandir}/es/man5/locale.5*
1747%lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
1748%lang(es) %{_mandir}/es/man5/tzfile.5*
1749%lang(es) %{_mandir}/es/man7/*
1750%lang(es) %{_mandir}/es/man8/ld*.8*
1751%lang(es) %{_mandir}/es/man8/tzselect.8*
1752%lang(es) %{_mandir}/es/man8/zdump.8*
1753%lang(es) %{_mandir}/es/man8/zic.8*
3d65e37f 1754%lang(fi) %{_mandir}/fi/man1/ldd.1*
1755%lang(fr) %{_mandir}/fr/man1/ldd.1*
fa0f5e25
JB
1756%lang(fr) %{_mandir}/fr/man5/locale.5*
1757%lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
1758%lang(fr) %{_mandir}/fr/man5/tzfile.5*
1759%lang(fr) %{_mandir}/fr/man7/*
1760%lang(fr) %{_mandir}/fr/man8/ld*.8*
1761%lang(fr) %{_mandir}/fr/man8/tzselect.8*
1762%lang(fr) %{_mandir}/fr/man8/zdump.8*
1763%lang(fr) %{_mandir}/fr/man8/zic.8*
3d65e37f 1764%lang(hu) %{_mandir}/hu/man1/ldd.1*
fa0f5e25
JB
1765%lang(hu) %{_mandir}/hu/man7/*
1766%lang(hu) %{_mandir}/hu/man8/ld*.8*
1767%lang(hu) %{_mandir}/hu/man8/zdump.8*
1768%lang(it) %{_mandir}/it/man5/locale.5*
1769%lang(it) %{_mandir}/it/man7/*
1770%lang(it) %{_mandir}/it/man8/tzselect.8*
1771%lang(it) %{_mandir}/it/man8/zdump.8*
3d65e37f 1772%lang(ja) %{_mandir}/ja/man1/ldd.1*
fa0f5e25
JB
1773%lang(ja) %{_mandir}/ja/man1/rpcgen.1*
1774%lang(ja) %{_mandir}/ja/man5/locale.5*
1775%lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
1776%lang(ja) %{_mandir}/ja/man5/tzfile.5*
3d65e37f 1777%lang(ja) %{_mandir}/ja/man7/*
fa0f5e25
JB
1778%lang(ja) %{_mandir}/ja/man8/ld*.8*
1779%lang(ja) %{_mandir}/ja/man8/rpcinfo.8*
1780%lang(ja) %{_mandir}/ja/man8/sln.8*
1781%lang(ja) %{_mandir}/ja/man8/tzselect.8*
1782%lang(ja) %{_mandir}/ja/man8/zdump.8*
1783%lang(ja) %{_mandir}/ja/man8/zic.8*
49ead7a0 1784%lang(ko) %{_mandir}/ko/man1/ldd.1*
fa0f5e25
JB
1785%lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
1786%lang(ko) %{_mandir}/ko/man5/tzfile.5*
1787%lang(ko) %{_mandir}/ko/man7/*
1788%lang(ko) %{_mandir}/ko/man8/tzselect.8*
1789%lang(ko) %{_mandir}/ko/man8/zdump.8*
3d65e37f 1790%lang(pl) %{_mandir}/pl/man1/ldd.1*
fa0f5e25
JB
1791%lang(pl) %{_mandir}/pl/man5/locale.5*
1792%lang(pl) %{_mandir}/pl/man7/*
1793%lang(pl) %{_mandir}/pl/man8/ld*.8*
1794%lang(pt) %{_mandir}/pt/man5/locale.5*
1795%lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
1796%lang(pt) %{_mandir}/pt/man5/tzfile.5*
3d65e37f 1797%lang(pt) %{_mandir}/pt/man7/*
fa0f5e25
JB
1798%lang(pt) %{_mandir}/pt/man8/ld*.8*
1799%lang(pt) %{_mandir}/pt/man8/tzselect.8*
1800%lang(pt) %{_mandir}/pt/man8/zdump.8*
1801%lang(pt) %{_mandir}/pt/man8/zic.8*
49ead7a0
JB
1802%lang(ru) %{_mandir}/ru/man1/getent.1*
1803%lang(ru) %{_mandir}/ru/man1/iconv.1*
1804%lang(ru) %{_mandir}/ru/man1/ldd.1*
1805%lang(ru) %{_mandir}/ru/man1/locale.1*
1806%lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1807%lang(ru) %{_mandir}/ru/man5/locale.5*
fa0f5e25
JB
1808%lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
1809%lang(ru) %{_mandir}/ru/man5/tzfile.5*
1810%lang(ru) %{_mandir}/ru/man7/*
49ead7a0
JB
1811%lang(ru) %{_mandir}/ru/man8/ld*.8*
1812%lang(ru) %{_mandir}/ru/man8/rpcinfo.8*
fa0f5e25
JB
1813%lang(ru) %{_mandir}/ru/man8/tzselect.8*
1814%lang(ru) %{_mandir}/ru/man8/zdump.8*
1815%lang(ru) %{_mandir}/ru/man8/zic.8*
49ead7a0
JB
1816%lang(tr) %{_mandir}/tr/man1/iconv.1*
1817%lang(tr) %{_mandir}/tr/man1/ldd.1*
fa0f5e25
JB
1818%lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
1819%lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
1820%lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
1821%lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
1822%lang(zh_CN) %{_mandir}/zh_CN/man7/*
1823%lang(zh_CN) %{_mandir}/zh_CN/man8/tzselect.8*
1824%lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1825%lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
4206408a 1826
94655bd2 1827%files -n nss_compat
1828%defattr(644,root,root,755)
c4fea372 1829%attr(755,root,root) /%{_lib}/libnss_compat*.so*
94655bd2 1830
e82c8242 1831%files -n nss_hesiod
1832%defattr(644,root,root,755)
c4fea372 1833%attr(755,root,root) /%{_lib}/libnss_hesiod*.so*
e82c8242 1834
1835%files -n nss_nis
1836%defattr(644,root,root,755)
c4fea372
JK
1837%attr(755,root,root) /%{_lib}/libnss_nis.so.*
1838%attr(755,root,root) /%{_lib}/libnss_nis-*.so
e82c8242 1839
1840%files -n nss_nisplus
1841%defattr(644,root,root,755)
c4fea372 1842%attr(755,root,root) /%{_lib}/libnss_nisplus*.so*
e82c8242 1843
fd1d4127 1844%if %{with memusage}
4206408a 1845%files memusage
1846%defattr(644,root,root,755)
1847%attr(755,root,root) %{_bindir}/memusage*
fd1d4127 1848%attr(755,root,root) %{_libdir}/libmemusage.so
5ea2d863 1849%endif
4206408a 1850
462c36a3 1851%files devel
236a5027 1852%defattr(644,root,root,755)
40240acb
JB
1853%attr(755,root,root) %{_libdir}/lib[!cmp]*.so
1854%attr(755,root,root) %{_libdir}/libcrypt.so
1855%attr(755,root,root) %{_libdir}/libm.so
1856%attr(755,root,root) %{_libdir}/libpcprofile.so
1857%attr(755,root,root) %{_libdir}/*crt*.o
1858# ld scripts
1859%{_libdir}/libc.so
1860%{_libdir}/libpthread.so
40240acb
JB
1861%{_libdir}/libbsd-compat.a
1862%{_libdir}/libbsd.a
1863%{_libdir}/libc_nonshared.a
1864%{_libdir}/libg.a
1865%{_libdir}/libieee.a
5145b9c7
JB
1866%ifarch alpha ppc sparc
1867%{_libdir}/libnldbl_nonshared.a
1868%endif
40240acb
JB
1869%{_libdir}/libpthread_nonshared.a
1870%{_libdir}/librpcsvc.a
fb46cf23 1871%ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
5b00029e 1872%{_includedir}/gnu/stubs-*.h
fb46cf23 1873%endif
5b00029e
JB
1874
1875%files headers
1876%defattr(644,root,root,755)
462c36a3 1877%{_includedir}/*.h
3c882bd9
JB
1878%ifarch alpha
1879%{_includedir}/alpha
1880%endif
462c36a3 1881%{_includedir}/arpa
1882%{_includedir}/bits
5b00029e
JB
1883%dir %{_includedir}/gnu
1884%{_includedir}/gnu/lib*.h
1885%{_includedir}/gnu/stubs.h
462c36a3 1886%{_includedir}/net
1887%{_includedir}/netash
1888%{_includedir}/netatalk
1889%{_includedir}/netax25
1890%{_includedir}/neteconet
1891%{_includedir}/netinet
1892%{_includedir}/netipx
1893%{_includedir}/netpacket
1894%{_includedir}/netrom
1895%{_includedir}/netrose
1896%{_includedir}/nfs
1897%{_includedir}/protocols
1898%{_includedir}/rpc
1899%{_includedir}/rpcsvc
1900%{_includedir}/scsi
1901%{_includedir}/sys
1902
5b00029e
JB
1903%files devel-utils
1904%defattr(644,root,root,755)
1905%attr(755,root,root) %{_bindir}/gencat
1906%attr(755,root,root) %{_bindir}/*prof*
1907%attr(755,root,root) %{_bindir}/*trace
1908
1909%files devel-doc
1910%defattr(644,root,root,755)
1911%doc documentation/* NOTES PROJECTS
900994f2 1912%{_infodir}/libc.info*
d90a3b13 1913
fa0f5e25 1914%{_mandir}/man1/sprof.1*
2c6699cc 1915%{_mandir}/man3/*
1fc785e2 1916%lang(cs) %{_mandir}/cs/man3/*
1917%lang(de) %{_mandir}/de/man3/*
1918%lang(es) %{_mandir}/es/man3/*
1919%lang(fr) %{_mandir}/fr/man3/*
1920%lang(hu) %{_mandir}/hu/man3/*
fa0f5e25 1921%lang(it) %{_mandir}/it/man3/*
1145bfaf 1922%lang(ja) %{_mandir}/ja/man3/*
1923%lang(ko) %{_mandir}/ko/man3/*
1924%lang(nl) %{_mandir}/nl/man3/*
1925%lang(pl) %{_mandir}/pl/man3/*
1926%lang(pt) %{_mandir}/pt/man3/*
49ead7a0 1927%lang(ru) %{_mandir}/ru/man1/sprof.1*
1145bfaf 1928%lang(ru) %{_mandir}/ru/man3/*
49ead7a0 1929%lang(tr) %{_mandir}/tr/man3/*
fa0f5e25
JB
1930%lang(uk) %{_mandir}/uk/man3/*
1931%lang(zh_CN) %{_mandir}/zh_CN/man3/*
236a5027 1932
bab19d4a 1933%files -n nscd
1934%defattr(644,root,root,755)
f307cfc5
JB
1935%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
1936%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
46b7a91b 1937%attr(754,root,root) /etc/rc.d/init.d/nscd
4206408a 1938%attr(755,root,root) %{_sbindir}/nscd*
f307cfc5 1939%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
ddf4fb34 1940%attr(640,root,root) %ghost /var/log/nscd
7dc8db4b 1941%dir /var/run/nscd
f307cfc5
JB
1942%dir /var/lib/nscd
1943%attr(600,root,root) %ghost /var/lib/nscd/passwd
1944%attr(600,root,root) %ghost /var/lib/nscd/group
1945%attr(600,root,root) %ghost /var/lib/nscd/hosts
fa0f5e25
JB
1946%{_mandir}/man5/nscd.conf.5*
1947%{_mandir}/man8/nscd.8*
1948%{_mandir}/man8/nscd_nischeck.8*
49ead7a0
JB
1949%lang(es) %{_mandir}/es/man5/nscd.conf.5*
1950%lang(es) %{_mandir}/es/man8/nscd.8*
fa0f5e25
JB
1951%lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
1952%lang(fr) %{_mandir}/fr/man8/nscd.8*
1953%lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
1954%lang(ja) %{_mandir}/ja/man8/nscd.8*
1955%lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
1956%lang(pt) %{_mandir}/pt/man8/nscd.8*
49ead7a0
JB
1957%lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
1958%lang(ru) %{_mandir}/ru/man8/nscd.8*
1959%lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
c43e39f5 1960
d34cb8bc 1961%files -n localedb-src
1962%defattr(644,root,root,755)
ba697d79 1963%attr(755,root,root) %{_bindir}/localedef
40430bed 1964%attr(755,root,root) %{_bindir}/localedb-gen
d34cb8bc 1965%{_datadir}/i18n
fa0f5e25 1966%{_mandir}/man1/localedef.1*
49ead7a0 1967%lang(ru) %{_mandir}/ru/man1/localedef.1*
40430bed 1968
0a85848c 1969%if %{with localedb}
40430bed
JB
1970%files localedb-all
1971%defattr(644,root,root,755)
fbd4c876 1972%{_libdir}/locale/locale-archive
0a85848c 1973%endif
d34cb8bc 1974
1975%files -n iconv
1976%defattr(644,root,root,755)
436fd1ea 1977%attr(755,root,root) %{_sbindir}/iconvconfig
fbd4c876 1978%dir %{_libdir}/gconv
1979%{_libdir}/gconv/gconv-modules
1980%attr(755,root,root) %{_libdir}/gconv/*.so
d34cb8bc 1981
c7df086f 1982%files static
1983%defattr(644,root,root,755)
fbd4c876 1984%{_libdir}/libanl.a
1985%{_libdir}/libBrokenLocale.a
1986%{_libdir}/libc.a
1987%{_libdir}/libcrypt.a
1988%{_libdir}/libdl.a
1989%{_libdir}/libm.a
1990%{_libdir}/libmcheck.a
1991%{_libdir}/libnsl.a
1992%{_libdir}/libpthread.a
1993%{_libdir}/libresolv.a
1994%{_libdir}/librt.a
1995%{_libdir}/libutil.a
e2a5184e 1996
d34cb8bc 1997%files profile
1998%defattr(644,root,root,755)
fbd4c876 1999%{_libdir}/lib*_p.a
71a76fad 2000
2001%files pic
2002%defattr(644,root,root,755)
fbd4c876 2003%{_libdir}/lib*_pic.a
2004%{_libdir}/lib*.map
2005%{_libdir}/soinit.o
2006%{_libdir}/sofini.o
This page took 0.797162 seconds and 4 git commands to generate.