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