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