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