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