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