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