]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- try to enable IDN support in glibc
[packages/glibc.git] / glibc.spec
1 #
2 # You can define min_kernel macro by "rpm --define 'min_kernel version'"
3 # default is 2.2.0 (no changes up to 2.3.25)
4 #
5 # _without_dist_kernel  build without kernel from the distribution;
6 #                       headers will be searched in %_kernelsrcdir/include.
7 # _without_fp           build without frame pointer (pass --enable-omitfp)
8 # _without_memusage     build without memusage
9 #
10 # _with_kernheaders     use "kernheaders" as user-space kernel headers
11 #                       (instead of copying from kernel-headers 2.4.x)
12 #                       [broken at the moment]
13 #
14 # TODO:
15 # - localedb-gen man pages(?)
16 # - serious problem with upgrade (changing zoneinfo/posix/* dirs into symlinks)
17 #   are there any other solutions than revert???
18 #
19 # WARNING:
20 #       posix zoneinfo dir removed, /etc/rc.d/init.d/timezone must be changed
21 #       in order to use this version!
22 #
23 %{!?min_kernel:%define          min_kernel      2.2.0}
24 %define         rel 3
25 Summary:        GNU libc
26 Summary(de):    GNU libc
27 Summary(fr):    GNU libc
28 Summary(ja):    GNU libc ¥é¥¤¥Ö¥é¥ê
29 Summary(pl):    GNU libc
30 Summary(ru):    GNU libc ×ÅÒÓÉÉ 2.3
31 Summary(tr):    GNU libc
32 Summary(uk):    GNU libc ×ÅÒÓ¦§ 2.3
33 Name:           glibc
34 Version:        2.3.2
35 Release:        %{rel}
36 Epoch:          6
37 License:        LGPL
38 Group:          Libraries
39 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
40 # Source0-md5:  ede969aad568f48083e413384f20753c
41 Source1:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
42 # Source1-md5:  894b8969cfbdf787c73e139782167607
43 Source2:        nscd.init
44 Source3:        nscd.sysconfig
45 Source4:        nscd.logrotate
46 Source5:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
47 # Source5-md5:  ddba280857330dabba4d8c16d24a6dfd
48 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
49 # Source6-md5:  2e3992c2e1bc94212c2cd33236de6058
50 # borrowed from util-linux
51 Source7:        sln.8
52 Source8:        %{name}-localedb-gen
53 # Kernel headers for userspace
54 Source9:        %{name}-kernheaders.tar.bz2
55 # Source9-md5:  b48fec281f854627d6b8781cd1dd72d2
56 Source10:       ftp://alpha.gnu.org/pub/gnu/libidn/libidn-0.2.1.tar.gz
57 # Source10-md5: dedf4baabde459dc6263ca2f38d4f0f9
58 Patch0:         %{name}-info.patch
59 Patch2:         %{name}-pld.patch
60 Patch3:         %{name}-crypt-blowfish.patch
61 Patch4:         %{name}-string2-pointer-arith.patch
62 Patch5:         %{name}-linuxthreads-lock.patch
63 Patch6:         %{name}-pthread_create-manpage.patch
64 Patch9:         %{name}-paths.patch
65 Patch10:        %{name}-vaargs.patch
66 Patch11:        %{name}-getaddrinfo-workaround.patch
67 Patch12:        %{name}-postshell.patch
68 Patch13:        %{name}-pl.po-update.patch
69 Patch14:        %{name}-missing-nls.patch
70 Patch16:        %{name}-java-libc-wait.patch
71 Patch17:        %{name}-morelocales.patch
72 Patch18:        %{name}-lthrds_noomit.patch
73 Patch19:        %{name}-no_opt_override.patch
74 Patch20:        %{name}-gcc33.patch
75 #Patch21:       %{name}-sanity.patch
76 Patch22:        %{name}-secureexec.patch
77 Patch23:        %{name}-kernel_includes.patch
78 Patch24:        %{name}-sparc64_pause.patch
79 Patch25:        %{name}-linuxthreads.patch
80 Patch26:        %{name}-alpha-fix-as-syntax.patch
81 URL:            http://www.gnu.org/software/libc/
82 BuildRequires:  binutils >= 2.13.90.0.2
83 BuildRequires:  gcc >= 3.2
84 %{!?_without_memusage:BuildRequires:    gd-devel >= 2.0.1}
85 BuildRequires:  gettext-devel >= 0.10.36
86 %if 0%{!?_with_kernheaders:1}
87 %{!?_without_dist_kernel:BuildRequires: kernel-headers < 2.5}
88 %endif
89 BuildRequires:  perl-base
90 BuildRequires:  rpm-build >= 4.0.2-46
91 BuildRequires:  rpm-perlprov
92 BuildRequires:  sed >= 4.0.5
93 BuildRequires:  texinfo
94 Provides:       ld.so.2
95 Provides:       ldconfig
96 Provides:       /sbin/ldconfig
97 Obsoletes:      %{name}-common
98 Obsoletes:      %{name}-debug
99 Obsoletes:      ldconfig
100 Autoreq:        false
101 PreReq:         basesystem
102 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
103 Conflicts:      kernel < %{min_kernel}
104 Conflicts:      ld.so < 1.9.9-10
105 Conflicts:      man-pages < 1.43
106 Conflicts:      rc-scripts < 0.3.1-13
107 Conflicts:      rpm < 4.1
108
109 %define         debugcflags     -O1 -g
110 %ifarch sparc64
111 %define         _without_memusage       1
112 %define         specflags_sparc64       -mvis -fcall-used-g6
113 %endif
114
115 %description
116 Contains the standard libraries that are used by multiple programs on
117 the system. In order to save disk space and memory, as well as to ease
118 upgrades, common system code is kept in one place and shared between
119 programs. This package contains the most important sets of shared
120 libraries, the standard C library and the standard math library.
121 Without these, a Linux system will not function. It also contains
122 national language (locale) support and timezone databases.
123
124 Can be used on: Linux kernel >= %{min_kernel}.
125
126 %description -l de
127 Enthält die Standard-Libraries, die von verschiedenen Programmen im
128 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
129 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
130 einer einzigen Stelle gespeichert und wird von den Programmen
131 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
132 shared Libraries, die Standard-C-Library und die
133 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
134 Ferner enthält es den Support für die verschiedenen Sprachgregionen
135 (locale) und die Zeitzonen-Datenbank.
136
137 Can be used on: Linux kernel >= %{min_kernel}.
138
139 %description -l fr
140 Contient les bibliothèques standards utilisées par de nombreux
141 programmes du système. Afin d'économiser l'espace disque et mémoire,
142 et de faciliter les mises à jour, le code commun au système est mis à
143 un endroit et partagé entre les programmes. Ce paquetage contient les
144 bibliothèques partagées les plus importantes, la bibliothèque standard
145 du C et la bibliothèque mathématique standard. Sans celles-ci, un
146 système Linux ne peut fonctionner. Il contient aussi la gestion des
147 langues nationales (locales) et les bases de données des zones
148 horaires.
149
150 Can be used on: Linux kernel >= %{min_kernel}.
151
152 %description -l ja
153 glibc
154 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¥·¥¹¥Æ¥à¾å¤ÎÊ£¿ô¤Î¥×¥í¥°¥é¥à¤Ç»È¤ï¤ì¤ëɸ½à¥é¥¤¥Ö¥é¥ê¤ò
155 ¤Õ¤¯¤ß¤Þ¤¹¡£¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤È¥á¥â¥ê¤òÀáÌó¤·¤¿¤ê¡¢¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò
156 ÍѰդˤ¹¤ë¤¿¤á¤Ë¡¢¶¦Ä̤Υ·¥¹¥Æ¥à¥³¡¼¥É¤Ï°ì¤Ä¤Î¾ì½ê¤Ë¤ª¤«¤ì¡¢¥×¥í¥°¥é¥à
157 ´Ö¤Ç¶¦Í­¤µ¤ì¤Þ¤¹¡£¤³¤ÎÉôʬŪ¤Ê¥Ñ¥Ã¥±¡¼¥¸¤Ï¥·¥§¥¢¥É¥é¥¤¥Ö¥é¥ê¤Î¤«¤Ê¤ê
158 ½ÅÍפʥ»¥Ã¥È¤ò¤Õ¤¯¤ß¤Þ¤¹: É¸½à C ¥é¥¤¥Ö¥é¥ê¤Èɸ½à¿ôÃͥ饤¥Ö¥é¥ê¤Ç¤¹¡£
159 ¤³¤ÎÆó¤Ä¤Î¥é¥¤¥Ö¥é¥êÈ´¤­¤Ç¤Ï¡¢Linux ¥·¥¹¥Æ¥à¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£ glibc
160 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¤Þ¤¿ÃÏ°è¸À¸ì (locale) ¥µ¥Ý¡¼¥È¤È¥¿¥¤¥à¥¾¡¼¥ó¥Ç¡¼¥¿¥Ù¡¼¥¹
161 ¥µ¥Ý¡¼¥È¤ò¤Õ¤¯¤ß¤Þ¤¹¡£
162
163 Can be used on: Linux kernel >= %{min_kernel}.
164
165 %description -l pl
166 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
167 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
168 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
169 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
170 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
171 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
172 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
173 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
174 jêzyków (locale) oraz definicje stref czasowych.
175
176 Przeznaczony dla j±dra Linux >= %{min_kernel}.
177
178 %description -l ru
179 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
180 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
181 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
182 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
183 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
184 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
185 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
186 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
187 ×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
188
189 Can be used on: Linux kernel >= %{min_kernel}.
190
191 %description -l tr
192 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
193 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
194 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
195 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
196 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
197 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
198 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
199
200 Can be used on: Linux kernel >= %{min_kernel}.
201
202 %description -l uk
203 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
204 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
205 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
206 ÓЦÌØÎÉÊ ÄÌÑ ×ӦȠÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍՠͦÓæ ¦ ËÏÌÅËÔÉ×ÎÏ
207 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
208 Ú ÄÉÎÁͦÞÎÉȠ¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎՠ¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
209 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉȠ¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
210 ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
211 ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
212
213 Can be used on: Linux kernel >= %{min_kernel}.
214
215 %package devel
216 Summary:        Additional libraries required to compile
217 Summary(de):    Weitere Libraries zum Kompilieren
218 Summary(fr):    Librairies supplémentaires nécessaires à la compilation
219 Summary(ja):    É¸½à C ¥é¥¤¥Ö¥é¥ê¤Ç»È¤ï¤ì¤ë¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
220 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
221 Summary(ru):    äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
222 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
223 Summary(uk):    äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
224 Group:          Development/Libraries
225 Requires:       %{name} = %{epoch}:%{version}
226
227 %description devel
228 To develop programs which use the standard C libraries (which nearly
229 all programs do), the system needs to have these standard header files
230 and object files available for creating the executables.
231
232 %description devel -l de
233 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
234 verwenden (also fast alle), benötigt das System diese Standard-Header-
235 und Objektdateien zum Erstellen der ausführbaren Programme.
236
237 %description devel -l fr
238 Pour développer des programmes utilisant les bibliothèques standard du
239 C (ce que presque tous les programmes font), le système doit posséder
240 ces fichiers en-têtes et objets standards pour créer les exécutables.
241
242 %description devel -l ja
243 glibc-devel ¥Ñ¥Ã¥±¡¼¥¸¤Ï(¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î¥×¥í¥°¥é¥à¤Ç»È¤ï¤ì¤ë)ɸ½à C
244 ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ·¤¿¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤¿¤á¤Î¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È
245 ¥Õ¥¡¥¤¥ë¤ò´Þ¤ß¤Þ¤¹¡£¤â¤·É¸½à C
246 ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤Ê¤é
247 ¼Â¹Ô¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ëÌÜŪ¤Ç¤³¤ì¤é¤Îɸ½à¥Ø¥Ã¥À¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
248 ¤¬»ÈÍѤǤ­¤Þ¤¹¡£
249
250 %description devel -l pl
251 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
252 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
253 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
254 wykonywalnych i innych bibliotek.
255
256 %description devel -l ru
257 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
258 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
259 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
260 ÉÓÐÏÌÎÑÅÍÙÅ ÆÁÊÌÙ.
261
262 %description devel -l tr
263 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
264 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
265 kitaplýklar.
266
267 %description devel -l uk
268 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ C
269 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äÈÅÄÅÒÉ
270 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
271 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
272
273 %package kernel-headers
274 Summary:        Kernel header files the glibc has been built with
275 Summary(pl):    Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc
276 Release:        %{rel}
277 Group:          Development/Libraries
278
279 %description kernel-headers
280 Kernel header files for userspace.
281
282 %description kernel-headers -l pl
283 Pliki nag³ówkowe j±dra dla przestrzeni u¿ytkownika
284
285 %package -n nscd
286 Summary:        Name Service Caching Daemon
287 Summary(ja):    ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥ó¥°¥Ç¡¼¥â¥ó (nacd)
288 Summary(pl):    Demon zapamiêtuj±cy odpowiedzi serwisów nazw
289 Summary(ru):    ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
290 Summary(uk):    ëÅÛÕÀÞÉÊ ÄÅÍÏΠÓÅצӦנ¦ÍÅÎ
291 Release:        %{rel}
292 Group:          Networking/Daemons
293 PreReq:         rc-scripts >= 0.2.0
294 Requires(post,preun):   /sbin/chkconfig
295 Requires(post): fileutils
296 Requires:       %{name} = %{epoch}:%{version}
297
298 %description -n nscd
299 nscd caches name service lookups; it can dramatically improve
300 performance with NIS+, and may help with DNS as well. You cannot use
301 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
302 nscd happens to hit these bugs particularly hard.
303
304 %description -n nscd -l ja
305 Nscd ¤Ï¥Í¡¼¥à¥µ¡¼¥Ó¥¹»²¾È¤ò¥­¥ã¥Ã¥·¥å¤·¡¢NIS+ ¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ò
306 ¥É¥é¥Þ¥Æ¥£¥Ã¥¯¤Ë²þÁ±¤¹¤ë¤³¤È¤¬¤Ç¤­¡¢DNS ¤òƱÍͤËÊä½õ¤·¤Þ¤¹¡£ 2.0
307 ¥«¡¼¥Í¥ë¤Ç nscd ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
308 ¤½¤ì¤Ï¡¢¥«¡¼¥Í¥ë¦¤Î¥¹¥ì¥Ã¥É¥µ¥Ý¡¼¥È¤Ë¥Ð¥°¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£ÉÔ¹¬¤Ê¤³¤È¤Ë¡¢
309 nscd ¤Ï¤³¤ì¤é¤Î¥Ð¥°¤ËÆäˤϤ²¤·¤¯¤¢¤¿¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
310
311 %description -n nscd -l pl
312 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
313 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
314 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
315 obs³udze w±tków.
316
317 %description -n nscd -l ru
318 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
319 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
320 DNS.
321
322 %description -n nscd -l uk
323 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏӦנÄÏ ÓÅÒצӦנ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
324 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
325
326 %package -n localedb-src
327 Summary:        locale database source code
328 Summary(pl):    Kod ¼ród³owy bazy locale
329 Release:        %{rel}
330 Group:          Daemons
331 Requires:       %{name} = %{epoch}:%{version}
332
333 %description -n localedb-src
334 This add-on package contains the data needed to build the locale data
335 files to use the internationalization features of the GNU libc.
336
337 %description -n localedb-src -l pl
338 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
339 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
340 libc.
341
342 %package localedb-all
343 Summary:        locale database for all locales supported by glibc
344 Summary(pl):    Baza danych locale dla wszystkich lokalizacji obs³ugiwanych przez glibc
345 Release:        %{rel}
346 Group:          Libraries
347 Requires:       %{name} = %{epoch}:%{version}
348
349 %description localedb-all
350 This package contains locale database for all locales supported by
351 glibc. In glibc 2.3.x it's one large file (about 19MB) - if you want
352 something smaller with support for chosen locales only, consider
353 installing localedb-src and regenerating database using localedb-gen
354 script (when database is generated, localedb-src can be uninstalled).
355
356 %description localedb-all -l pl
357 Ten pakiet zawiera bazê danych locale dla wszystkich lokalizacji
358 obs³ugiwanych przez glibc. W glibc 2.3.x jest to jeden du¿y plik
359 (oko³o 19MB); aby mieæ co¶ mniejszego, z obs³ug± tylko wybranych
360 lokalizacji, nale¿y zainstalowaæ pakiet localedb-src i przegenerowaæ
361 bazê danych przy u¿yciu skryptu localedb-gen (po wygenerowaniu bazy
362 pakiet localedb-src mo¿na odinstalowaæ).
363
364 %package -n iconv
365 Summary:        Convert encoding of given files from one encoding to another
366 Summary(pl):    Program do konwersji plików tekstowych z jednego kodowania do innego
367 Release:        %{rel}
368 Group:          Applications/Text
369 Requires:       %{name} = %{epoch}:%{version}
370
371 %description -n iconv
372 Convert encoding of given files from one encoding to another. You need
373 this package if you want to convert some documet from one encoding to
374 another or if you have installed some programs which use Generic
375 Character Set Conversion Interface.
376
377 %description -n iconv -l pl
378 Program do konwersji plików tekstowych z jednego kodowania do innego.
379 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
380 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
381 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
382 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
383 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
384
385 %package static
386 Summary:        Static libraries
387 Summary(pl):    Biblioteki statyczne
388 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
389 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
390 Release:        %{rel}
391 Group:          Development/Libraries
392 Requires:       %{name}-devel = %{epoch}:%{version}
393
394 %description static
395 GNU libc static libraries.
396
397 %description static -l pl
398 Biblioteki statyczne GNU libc.
399
400 %description static -l ru
401 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
402 ×ÈÏÄÑÔ × glibc-devel.
403
404 %description static -l uk
405 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, ÝϠ¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
406 ÓËÌÁÄ glibc-devel.
407
408 %package profile
409 Summary:        glibc with profiling support
410 Summary(de):    glibc mit Profil-Unterstützung
411 Summary(fr):    glibc avec support pour profiling
412 Summary(pl):    glibc ze wsparciem dla profilowania
413 Summary(ru):    GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
414 Summary(tr):    Ölçüm desteði olan glibc
415 Summary(uk):    GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
416 Release:        %{rel}
417 Group:          Development/Libraries/Libc
418 Obsoletes:      libc-profile
419 Requires:       %{name}-devel = %{epoch}:%{version}
420
421 %description profile
422 When programs are being profiled used gprof, they must use these
423 libraries instead of the standard C libraries for gprof to be able to
424 profile them correctly.
425
426 %description profile -l de
427 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
428 Libraries anstelle der üblichen C-Libraries verwendet werden.
429
430 %description profile -l pl
431 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
432 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
433 wyprofilowaæ.
434
435 %description profile -l uk
436 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
437 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅˠ¦Â̦ÏÔÅËÉ, ÝϠͦÓÔÑÔØÓÑ
438 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
439 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁԦנÂÕÄÅ ÐÏËÁÚÕ×ÁÔɠæÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
440 ÐÏÚÁÍÉÎÕÌÏÍÕ ÒÏæ...
441
442 %description profile -l tr
443 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
444 kitaplýðý kullanmak zorundadýrlar.
445
446 %description profile -l ru
447 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
448 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
449 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
450 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
451 ÐÏÚÁÐÒÏÛÌÏÍ ÇÏÄÕ...
452
453 %package pic
454 Summary:        glibc PIC archive
455 Summary(pl):    Archiwum PIC glibc
456 Release:        %{rel}
457 Group:          Development/Libraries/Libc
458 Requires:       %{name}-devel = %{epoch}:%{version}
459
460 %description pic
461 GNU C Library PIC archive contains an archive library (ar file)
462 composed of individual shared objects. This is used for creating a
463 library which is a smaller subset of the standard libc shared library.
464
465 %description pic -l pl
466 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
467 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
468 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
469 biblioteki wspó³dzielonej libc.
470
471 %package -n nss_compat
472 Summary:        Old style NYS NSS glibc module
473 Summary(pl):    Stary modu³ NYS NSS glibc
474 Release:        %{rel}
475 Group:          Base
476 Requires:       %{name} = %{epoch}:%{version}
477
478 %description -n nss_compat
479 Old style NYS NSS glibc module.
480
481 %description -n nss_compat -l pl
482 Stary modu³ NYS NSS glibc.
483
484 %package -n nss_dns
485 Summary:        BIND NSS glibc module
486 Summary(pl):    Modu³ BIND NSS glibc
487 Release:        %{rel}
488 Group:          Base
489 Requires:       %{name} = %{epoch}:%{version}
490
491 %description -n nss_dns
492 BIND NSS glibc module.
493
494 %description -n nss_dns -l pl
495 Modu³ BIND NSS glibc.
496
497 %package -n nss_files
498 Summary:        Traditional files databases NSS glibc module
499 Summary(pl):    Modu³ tradycyjnych plikowych baz danych NSS glibc
500 Release:        %{rel}
501 Group:          Base
502 Requires:       %{name} = %{epoch}:%{version}
503
504 %description -n nss_files
505 Traditional files databases NSS glibc module.
506
507 %description -n nss_files -l pl
508 Modu³ tradycyjnych plikowych baz danych NSS glibc.
509
510 %package -n nss_hesiod
511 Summary:        hesiod NSS glibc module
512 Summary(pl):    Modu³ hesiod NSS glibc
513 Release:        %{rel}
514 Group:          Base
515 Requires:       %{name} = %{epoch}:%{version}
516
517 %description -n nss_hesiod
518 glibc NSS (Name Service Switch) module for databases access.
519
520 %description -n nss_hesiod -l pl
521 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
522
523 %package -n nss_nis
524 Summary:        NIS(YP) NSS glibc module
525 Summary(pl):    Modu³ NIS(YP) NSS glibc
526 Release:        %{rel}
527 Group:          Base
528 Requires:       %{name} = %{epoch}:%{version}
529
530 %description -n nss_nis
531 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
532
533 %description -n nss_nis -l pl
534 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
535
536 %package -n nss_nisplus
537 Summary:        NIS+ NSS module
538 Summary(pl):    Modu³ NIS+ NSS
539 Release:        %{rel}
540 Group:          Base
541 Requires:       %{name} = %{epoch}:%{version}
542
543 %description -n nss_nisplus
544 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
545
546 %description -n nss_nisplus -l pl
547 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
548
549 %package memusage
550 Summary:        A toy
551 Summary(pl):    Zabawka
552 Release:        %{rel}
553 Group:          Applications
554 Requires:       %{name} = %{epoch}:%{version}
555 Requires:       gd
556
557 %description memusage
558 A toy.
559
560 %description memusage -l pl
561 Zabawka.
562
563 %package zoneinfo_right
564 Summary:        Non-POSIX (real) time zones
565 Summary(pl):    Nie-POSIX-owe (prawdziwe) strefy czasowe
566 Release:        %{rel}
567 Group:          Libraries
568 Requires:       %{name} = %{epoch}:%{version}
569
570 %description zoneinfo_right
571 You don't want this. Details at:
572 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
573
574 %description zoneinfo_right -l pl
575 Nie potrzebujesz tego. Szczegó³y pod:
576 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
577
578 %prep
579 %setup -q -a 1 -a 9 -a 10
580 %patch0 -p1
581 %patch2 -p1
582 %patch3 -p1
583 %patch4 -p1
584 %patch5 -p1
585 %patch6 -p1
586 %patch9 -p1
587 %patch10 -p1
588 #%%patch11 -p1
589 %patch12 -p1
590 %patch13 -p1
591 %patch14 -p1
592 %patch16 -p1
593 %patch17 -p1
594 %patch18 -p1
595 # don't know, if it is good idea, for brave ones
596 #%patch19 -p1
597 %patch20 -p1
598 #%patch21 -p1
599 %patch22 -p1
600 %{!?_with_kernheaders:%patch23}
601 %patch24 -p1
602 # updated - lt
603 %ifnarch alpha
604 %patch25 -p1
605 %endif
606 %patch26 -p1
607
608 chmod +x scripts/cpp
609
610 # standardize name
611 mv -f localedata/locales/{lug_UG,lg_UG}
612
613 # This needs to be carefully checked when new glibc version arrives
614 ln -s libidn-* libidn
615 cp libidn/libc/Makefile libidn/libc/configure libidn/libc/Versions libidn/
616 cp libidn/libc/getaddrinfo.c sysdeps/posix/
617 cp libidn/libc/netdb.h resolv/
618 echo > libidn/libidn.texi
619
620 #make proper symlink for asm in headers
621 #cd usr/include
622 #%ifarch %{ix86}
623 #ln -s asm-i386 asm
624 #%endif
625 #cd ../..
626
627 %build
628 # Prepare kernel headers
629 TARGET_CPU=$(echo "%{_target_cpu}" | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
630                                    -e s/athlon/i386/ -e s/arm.*/arm/ \
631                                    -e s/sa110/arm/ -e s/s390x/s390/)
632 _headers_dir=`pwd`/usr/include; export _headers_dir;
633 (cd $_headers_dir && ln -s asm-${TARGET_CPU} asm)
634
635 # Build glibc
636 mkdir builddir
637 cd builddir
638 # avoid stripping ld.so by -s in rpmldflags
639 LDFLAGS=" " ; export LDFLAGS
640 #CFLAGS="-I $_headers_dir %{rpmcflags}"; export CFLAGS
641 ../%configure \
642         --enable-add-ons=linuxthreads,libidn \
643         --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
644         --enable-profile \
645         --%{?_without_fp:en}%{!?_without_fp:dis}able-omitfp \
646 %if 0%{!?_with_kernheaders:1}
647         CPPFLAGS="-I%{_kernelsrcdir}/include" \
648         --with-headers=%{_kernelsrcdir}/include
649 %else
650         CPPFLAGS="-I$_headers_dir" \
651         --with-headers=$_headers_dir
652 %endif
653
654 # problem compiling with --enable-bounded (must be reported to libc-alpha)
655
656 %{__make} %{?parallelmkflags}
657
658 %install
659 rm -rf $RPM_BUILD_ROOT
660 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
661
662 _headers_dir=`pwd`/usr/include; export _headers_dir;
663
664 cd builddir
665
666 env LANGUAGE=C LC_ALL=C \
667 %{__make} install \
668         %{?parallelmkflags} \
669         install_root=$RPM_BUILD_ROOT \
670         infodir=%{_infodir} \
671         mandir=%{_mandir}
672
673 env LANGUAGE=C LC_ALL=C \
674 %{__make} localedata/install-locales \
675         %{?parallelmkflags} \
676         install_root=$RPM_BUILD_ROOT
677
678 PICFILES="libc_pic.a libc.map
679         math/libm_pic.a libm.map
680         resolv/libresolv_pic.a"
681
682 install $PICFILES                               $RPM_BUILD_ROOT%{_libdir}
683 install elf/soinit.os                           $RPM_BUILD_ROOT%{_libdir}/soinit.o
684 install elf/sofini.os                           $RPM_BUILD_ROOT%{_libdir}/sofini.o
685
686 install elf/postshell                           $RPM_BUILD_ROOT/sbin
687
688 %{!?_without_memusage:mv -f $RPM_BUILD_ROOT/lib*/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
689 mv -f $RPM_BUILD_ROOT/lib*/libpcprofile.so      $RPM_BUILD_ROOT%{_libdir}
690
691 %{__make} -C ../linuxthreads/man
692 install ../linuxthreads/man/*.3thr                      $RPM_BUILD_ROOT%{_mandir}/man3
693
694 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules,posix/*}
695
696 #cd $RPM_BUILD_ROOT%{_datadir}/zoneinfo
697 #for i in [A-Z]*; do
698 #       ln -s ../$i posix
699 #done
700 #cd -
701
702 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
703 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
704 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
705 ln -sf libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
706
707 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
708
709 # make symlinks across top-level directories absolute
710 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
711         rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
712         ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
713 done
714
715 install %{SOURCE2}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
716 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
717 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
718 install ../nscd/nscd.conf       $RPM_BUILD_ROOT%{_sysconfdir}
719 install ../nss/nsswitch.conf    $RPM_BUILD_ROOT%{_sysconfdir}
720
721 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
722 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
723 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
724 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
725 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
726
727 :> $RPM_BUILD_ROOT/var/log/nscd
728
729 rm -rf ../documentation
730 install -d ../documentation
731
732 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
733 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
734 cp -f ../linuxthreads/README ../documentation/README.threads
735 cp -f ../crypt/README.ufc-crypt ../documentation/
736
737 cp -f ../ChangeLog* ../documentation
738
739 rm -f $RPM_BUILD_ROOT%{_libdir}*/libnss_*.so
740
741 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
742 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib*/ld-%{version}.so}
743
744 # Collect locale files and mark them with %%lang()
745 rm -f ../glibc.lang
746 echo '%defattr(644,root,root,755)' > ../glibc.lang
747 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}*/locale/* ; do
748         if [ -d $i ]; then
749                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
750                 twochar=1
751                 # list of long %%lang values we do support
752                 for j in de_AT de_BE de_CH de_LU es_AR es_MX ja_JP.SJIS ko_KR.utf8 pt_BR \
753                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
754                         if [ $j = "$lang" ]; then
755                                 twochar=
756                         fi
757                 done
758                 if [ -n "$twochar" ]; then
759                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
760                                 lang=`echo $lang | sed "s,\..*,,"`
761                         else
762                                 lang=`echo $lang | sed "s,_.*,,"`
763                         fi
764                 fi
765                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
766                 echo "%lang($lang) $dir" >> ../glibc.lang
767         fi
768 done
769 # XXX: to be added when become supported by glibc
770 # am,bn,ml (present in sources, but incomplete and disabled) (used by GNOME)
771 # ia,kn,li,mn,sr@Latn (used by GNOME)
772 #       note: GNOME2 uses sr as cyrillic!
773 # nso,ss,ven,xh,zu (used by KDE)
774 for i in af ar az be bg br bs cy de_AT el en en_AU eo es_AR es_MX et eu fa fi \
775          ga gr he hi hr hu id is ja_JP.SJIS ka lg lt lv mk ms mt nn pt ro ru \
776          se sl sq sr sr@cyrillic ta tg th uk uz vi wa yi zh_CN ; do
777         if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
778                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
779                 lang=`echo $i | sed -e 's/_.*//'`
780                 echo "%lang($lang) %{_datadir}/locale/$i" >> ../glibc.lang
781         fi
782 done
783 install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
784
785 # localedb-gen infrastructure
786 install %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
787 cat > $RPM_BUILD_ROOT/etc/sysconfig/localedb <<EOF
788 # list of supported locales
789 #SUPPORTED_LOCALES="pl_PL/ISO-8859-2 de_DE/ISO-8859-2 en_GB/ISO-8859-1 en_US/ISO-8859-1"
790 EOF
791 install ../localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
792
793 # shutup check-files
794 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
795 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
796 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
797 # we don't support kernel without ptys support
798 rm -f $RPM_BUILD_ROOT%{_libdir}*/pt_chown
799
800 # copy actual kernel headers for glibc-kernel-headers
801 %if 0%{!?_with_kernheaders:1}
802 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
803 %{__cp} -Hr %{_kernelsrcdir}/include/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
804 if [ -d %{_kernelsrcdir}/include/asm-generic ] ; then
805         %{__cp} -Hr %{_kernelsrcdir}/include/asm-generic $RPM_BUILD_ROOT%{_includedir}
806 fi
807 %else
808 %{__cp} -Hr $_headers_dir/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
809 %endif
810
811 %clean
812 rm -rf $RPM_BUILD_ROOT
813
814 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
815 # when %%postun is run
816
817 %post   -p /sbin/postshell
818 /sbin/ldconfig
819 -/sbin/telinit u
820
821 %postun -p /sbin/postshell
822 /sbin/ldconfig
823 -/sbin/telinit u
824
825 %post   memusage -p /sbin/ldconfig
826 %postun memusage -p /sbin/ldconfig
827
828 %post -n iconv -p %{_sbindir}/iconvconfig
829
830 %post devel
831 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
832 echo "Please install glibc-kernel-headers or, if you are a brave man,"
833 echo "make appropriate links in /usr/include pointing to an already"
834 echo "installed previously chosen kernel-headers package or other"
835 echo "kernel headers you have."
836
837 %postun devel
838 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
839
840 %pre kernel-headers
841 # useful if these are symlinks
842 if [ -h %{_includedir}/asm ]; then rm -f %{_includedir}/asm; fi
843 if [ -h %{_includedir}/linux ]; then rm -f %{_includedir}/linux; fi
844
845 %post -n nscd
846 /sbin/chkconfig --add nscd
847 touch /var/log/nscd
848 chmod 000 /var/log/nscd
849 chown root:root /var/log/nscd
850 chmod 640 /var/log/nscd
851 if [ -f /var/lock/subsys/nscd ]; then
852         /etc/rc.d/init.d/nscd restart 1>&2
853 else
854         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
855 fi
856
857 %preun -n nscd
858 if [ "$1" = "0" ]; then
859         if [ -f /var/lock/subsys/nscd ]; then
860                 /etc/rc.d/init.d/nscd stop 1>&2
861         fi
862         /sbin/chkconfig --del nscd
863 fi
864
865 %files -f %{name}.lang
866 %defattr(644,root,root,755)
867 %doc README NEWS FAQ BUGS
868
869 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
870 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
871 %config %{_sysconfdir}/rpc
872 %ghost %{_sysconfdir}/ld.so.cache
873
874 %attr(755,root,root) /sbin/*
875 %attr(755,root,root) %{_bindir}/catchsegv
876 %attr(755,root,root) %{_bindir}/getent
877 %attr(755,root,root) %{_bindir}/glibcbug
878 %attr(755,root,root) %{_bindir}/iconv
879 %attr(755,root,root) %{_bindir}/ldd
880 %ifnarch alpha sparc sparc64 ppc
881 %attr(755,root,root) %{_bindir}/lddlibc4
882 %endif
883 %attr(755,root,root) %{_bindir}/locale
884 %attr(755,root,root) %{_bindir}/rpcgen
885 %attr(755,root,root) %{_bindir}/tzselect
886
887 %attr(755,root,root) %{_sbindir}/rpcinfo
888 %attr(755,root,root) %{_sbindir}/zdump
889 %attr(755,root,root) %{_sbindir}/zic
890
891 %attr(755,root,root) /lib*/ld-*
892 %attr(755,root,root) /lib*/libanl*
893 %attr(755,root,root) /lib*/libdl*
894 %attr(755,root,root) /lib*/libnsl*
895 %attr(755,root,root) /lib*/lib[BScmprtu]*
896
897 %dir %{_datadir}/locale
898 %{_datadir}/locale/locale.alias
899 %{_datadir}/zoneinfo
900 %exclude %{_datadir}/zoneinfo/right
901
902 %dir %{_libdir}*/locale
903
904 %{_mandir}/man1/[!lsg]*
905 %{_mandir}/man1/getent.1*
906 %{_mandir}/man1/locale.1*
907 %{_mandir}/man1/ldd.1*
908 %{_mandir}/man5/???[!d]*
909 %{_mandir}/man7/*
910 %{_mandir}/man8/[!n]*
911 %lang(cs) %{_mandir}/cs/man[578]/*
912 %lang(de) %{_mandir}/de/man[578]/*
913 %lang(es) %{_mandir}/es/man[578]/*
914 %lang(fi) %{_mandir}/fi/man1/ldd.1*
915 %lang(fr) %{_mandir}/fr/man1/ldd.1*
916 %lang(fr) %{_mandir}/fr/man[578]/*
917 %lang(hu) %{_mandir}/hu/man1/ldd.1*
918 %lang(hu) %{_mandir}/hu/man[578]/*
919 %lang(it) %{_mandir}/it/man[578]/*
920 %lang(ja) %{_mandir}/ja/man1/[!lsg]*
921 %lang(ja) %{_mandir}/ja/man1/ldd.1*
922 %lang(ja) %{_mandir}/ja/man5/???[!d]*
923 %lang(ja) %{_mandir}/ja/man7/*
924 %lang(ja) %{_mandir}/ja/man8/[!n]*
925 %lang(ko) %{_mandir}/ko/man[578]/*
926 # %lang(nl) %{_mandir}/nl/man[578]/*
927 %lang(pl) %{_mandir}/pl/man1/ldd.1*
928 %lang(pl) %{_mandir}/pl/man[578]/*
929 %lang(pt) %{_mandir}/pt/man5/???[!d]*
930 %lang(pt) %{_mandir}/pt/man7/*
931 %lang(pt) %{_mandir}/pt/man8/[!n]*
932 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[!d]*
933 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
934 %lang(pt_BR) %{_mandir}/pt_BR/man8/[!n]*
935 %lang(ru) %{_mandir}/ru/man[578]/*
936
937 #%files -n nss_dns
938 %defattr(644,root,root,755)
939 %attr(755,root,root) /lib*/libnss_dns*.so*
940
941 #%files -n nss_files
942 %defattr(644,root,root,755)
943 %attr(755,root,root) /lib*/libnss_files*.so*
944
945 %files zoneinfo_right
946 %defattr(644,root,root,755)
947 %{_datadir}/zoneinfo/right
948
949 %files -n nss_compat
950 %defattr(644,root,root,755)
951 %attr(755,root,root) /lib*/libnss_compat*.so*
952
953 %files -n nss_hesiod
954 %defattr(644,root,root,755)
955 %attr(755,root,root) /lib*/libnss_hesiod*.so*
956
957 %files -n nss_nis
958 %defattr(644,root,root,755)
959 %attr(755,root,root) /lib*/libnss_nis.so.*
960 %attr(755,root,root) /lib*/libnss_nis-*.so
961
962 %files -n nss_nisplus
963 %defattr(644,root,root,755)
964 %attr(755,root,root) /lib*/libnss_nisplus*.so*
965
966 %if %{?_without_memusage:0}%{!?_without_memusage:1}
967 %files memusage
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/memusage*
970 %attr(755,root,root) %{_libdir}*/libmemusage*
971 %endif
972
973 %files devel
974 %defattr(644,root,root,755)
975 %doc documentation/* NOTES PROJECTS
976 %attr(755,root,root) %{_bindir}/gencat
977 %attr(755,root,root) %{_bindir}/getconf
978 %attr(755,root,root) %{_bindir}/*prof*
979 %attr(755,root,root) %{_bindir}/*trace
980
981 %{_includedir}/*.h
982 %{_includedir}/arpa
983 %{_includedir}/bits
984 %{_includedir}/gnu
985 %{_includedir}/net
986 %{_includedir}/netash
987 %{_includedir}/netatalk
988 %{_includedir}/netax25
989 %{_includedir}/neteconet
990 %{_includedir}/netinet
991 %{_includedir}/netipx
992 %{_includedir}/netpacket
993 %{_includedir}/netrom
994 %{_includedir}/netrose
995 %{_includedir}/nfs
996 %{_includedir}/protocols
997 %{_includedir}/rpc
998 %{_includedir}/rpcsvc
999 %{_includedir}/scsi
1000 %{_includedir}/sys
1001
1002 %{_infodir}/libc.info*
1003
1004 %attr(755,root,root) %{_libdir}*/lib[!m]*.so
1005 %attr(755,root,root) %{_libdir}*/libm.so
1006 %attr(755,root,root) %{_libdir}*/*crt*.o
1007 %{_libdir}*/libbsd-compat.a
1008 %{_libdir}*/libbsd.a
1009 %{_libdir}*/libc_nonshared.a
1010 %{_libdir}*/libg.a
1011 %{_libdir}*/libieee.a
1012 %{_libdir}*/libpthread_nonshared.a
1013 %{_libdir}*/librpcsvc.a
1014
1015 %{_mandir}/man1/getconf*
1016 %{_mandir}/man1/sprof*
1017 %{_mandir}/man3/*
1018 %lang(cs) %{_mandir}/cs/man3/*
1019 %lang(de) %{_mandir}/de/man3/*
1020 %lang(es) %{_mandir}/es/man3/*
1021 %lang(fr) %{_mandir}/fr/man3/*
1022 %lang(hu) %{_mandir}/hu/man3/*
1023 # %lang(it) %{_mandir}/it/man3/*
1024 %lang(ja) %{_mandir}/ja/man3/*
1025 %lang(ko) %{_mandir}/ko/man3/*
1026 %lang(nl) %{_mandir}/nl/man3/*
1027 %lang(pl) %{_mandir}/pl/man3/*
1028 %lang(pt) %{_mandir}/pt/man3/*
1029 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
1030 %lang(ru) %{_mandir}/ru/man3/*
1031
1032 %files kernel-headers
1033 %defattr(644,root,root,755)
1034 %{_includedir}/asm*
1035 %{_includedir}/linux
1036
1037 %files -n nscd
1038 %defattr(644,root,root,755)
1039 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
1040 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
1041 %attr(754,root,root) /etc/rc.d/init.d/nscd
1042 %attr(755,root,root) %{_sbindir}/nscd*
1043 %attr(640,root,root) /etc/logrotate.d/nscd
1044 %attr(640,root,root) %ghost /var/log/nscd
1045 %{_mandir}/man5/nscd.conf*
1046 %{_mandir}/man8/nscd*
1047 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
1048 %lang(ja) %{_mandir}/ja/man8/nscd*
1049 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
1050 %lang(pt) %{_mandir}/pt/man8/nscd*
1051 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
1052 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
1053
1054 %files -n localedb-src
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/localedef
1057 %attr(755,root,root) %{_bindir}/localedb-gen
1058 %{_datadir}/i18n
1059 %{_mandir}/man1/localedef*
1060 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/localedb
1061
1062 %files localedb-all
1063 %defattr(644,root,root,755)
1064 %{_libdir}*/locale/locale-archive
1065
1066 %files -n iconv
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{_sbindir}/iconvconfig
1069 %dir %{_libdir}*/gconv
1070 %{_libdir}*/gconv/gconv-modules
1071 %attr(755,root,root) %{_libdir}*/gconv/*.so
1072
1073 %files static
1074 %defattr(644,root,root,755)
1075 %{_libdir}*/libanl.a
1076 %{_libdir}*/libBrokenLocale.a
1077 %{_libdir}*/libc.a
1078 %{_libdir}*/libcrypt.a
1079 %{_libdir}*/libdl.a
1080 %{_libdir}*/libm.a
1081 %{_libdir}*/libmcheck.a
1082 %{_libdir}*/libnsl.a
1083 %{_libdir}*/libpthread.a
1084 %{_libdir}*/libresolv.a
1085 %{_libdir}*/librt.a
1086 %{_libdir}*/libutil.a
1087
1088 %files profile
1089 %defattr(644,root,root,755)
1090 %{_libdir}*/lib*_p.a
1091
1092 %files pic
1093 %defattr(644,root,root,755)
1094 %{_libdir}*/lib*_pic.a
1095 %{_libdir}*/lib*.map
1096 %{_libdir}*/soinit.o
1097 %{_libdir}*/sofini.o
This page took 0.15618 seconds and 4 git commands to generate.