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