]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- update
[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.3.0rc1.tar.gz
59 # Source10-md5: aabf7055ede2c5f1d179f879560e5baf
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 ln -s ../libidn/idn-int.h include/idn-int.h
620
621 cp libidn-*/libc/getaddrinfo.c sysdeps/posix/
622 cp libidn-*/libc/netdb.h resolv/
623
624 #cp libidn-*/libc/*.patch libc-idn.patch
625 #patch -p0 < libc-idn.patch
626
627 touch libidn/libidn.texi
628
629 #make proper symlink for asm in headers
630 #cd usr/include
631 #%ifarch %{ix86}
632 #ln -s asm-i386 asm
633 #%endif
634 #cd ../..
635
636 %build
637 # Prepare kernel headers
638 TARGET_CPU=$(echo "%{_target_cpu}" | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
639                                    -e s/athlon/i386/ -e s/arm.*/arm/ \
640                                    -e s/sa110/arm/ -e s/s390x/s390/)
641 _headers_dir=`pwd`/usr/include; export _headers_dir;
642 (cd $_headers_dir && ln -s asm-${TARGET_CPU} asm)
643
644 # Build glibc
645 mkdir builddir
646 cd builddir
647 # avoid stripping ld.so by -s in rpmldflags
648 LDFLAGS=" " ; export LDFLAGS
649 #CFLAGS="-I $_headers_dir %{rpmcflags}"; export CFLAGS
650 ../%configure \
651         --enable-add-ons=linuxthreads,libidn \
652         --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
653         --enable-profile \
654         --%{?_without_fp:en}%{!?_without_fp:dis}able-omitfp \
655 %if 0%{!?_with_kernheaders:1}
656         CPPFLAGS="-I%{_kernelsrcdir}/include" \
657         --with-headers=%{_kernelsrcdir}/include
658 %else
659         CPPFLAGS="-I$_headers_dir" \
660         --with-headers=$_headers_dir
661 %endif
662
663 # problem compiling with --enable-bounded (must be reported to libc-alpha)
664
665 %{__make} %{?parallelmkflags}
666
667 %install
668 rm -rf $RPM_BUILD_ROOT
669 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
670
671 _headers_dir=`pwd`/usr/include; export _headers_dir;
672
673 cd builddir
674
675 env LANGUAGE=C LC_ALL=C \
676 %{__make} install \
677         %{?parallelmkflags} \
678         install_root=$RPM_BUILD_ROOT \
679         infodir=%{_infodir} \
680         mandir=%{_mandir}
681
682 env LANGUAGE=C LC_ALL=C \
683 %{__make} localedata/install-locales \
684         %{?parallelmkflags} \
685         install_root=$RPM_BUILD_ROOT
686
687 PICFILES="libc_pic.a libc.map
688         math/libm_pic.a libm.map
689         resolv/libresolv_pic.a"
690
691 install $PICFILES                               $RPM_BUILD_ROOT%{_libdir}
692 install elf/soinit.os                           $RPM_BUILD_ROOT%{_libdir}/soinit.o
693 install elf/sofini.os                           $RPM_BUILD_ROOT%{_libdir}/sofini.o
694
695 install elf/postshell                           $RPM_BUILD_ROOT/sbin
696
697 %{!?_without_memusage:mv -f $RPM_BUILD_ROOT/lib*/libmemusage.so $RPM_BUILD_ROOT%{_libdir}}
698 mv -f $RPM_BUILD_ROOT/lib*/libpcprofile.so      $RPM_BUILD_ROOT%{_libdir}
699
700 %{__make} -C ../linuxthreads/man
701 install ../linuxthreads/man/*.3thr                      $RPM_BUILD_ROOT%{_mandir}/man3
702
703 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules,posix/*}
704
705 #cd $RPM_BUILD_ROOT%{_datadir}/zoneinfo
706 #for i in [A-Z]*; do
707 #       ln -s ../$i posix
708 #done
709 #cd -
710
711 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
712 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
713 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
714 ln -sf libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
715
716 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
717
718 # make symlinks across top-level directories absolute
719 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
720         rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
721         ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
722 done
723
724 install %{SOURCE2}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
725 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
726 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
727 install ../nscd/nscd.conf       $RPM_BUILD_ROOT%{_sysconfdir}
728 install ../nss/nsswitch.conf    $RPM_BUILD_ROOT%{_sysconfdir}
729
730 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
731 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
732 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
733 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
734 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
735
736 :> $RPM_BUILD_ROOT/var/log/nscd
737
738 rm -rf ../documentation
739 install -d ../documentation
740
741 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
742 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
743 cp -f ../linuxthreads/README ../documentation/README.threads
744 cp -f ../crypt/README.ufc-crypt ../documentation/
745
746 cp -f ../ChangeLog* ../documentation
747
748 rm -f $RPM_BUILD_ROOT%{_libdir}*/libnss_*.so
749
750 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
751 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib*/ld-%{version}.so}
752
753 # Collect locale files and mark them with %%lang()
754 rm -f ../glibc.lang
755 echo '%defattr(644,root,root,755)' > ../glibc.lang
756 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}*/locale/* ; do
757         if [ -d $i ]; then
758                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
759                 twochar=1
760                 # list of long %%lang values we do support
761                 for j in de_AT de_BE de_CH de_LU es_AR es_MX ja_JP.SJIS ko_KR.utf8 pt_BR \
762                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
763                         if [ $j = "$lang" ]; then
764                                 twochar=
765                         fi
766                 done
767                 if [ -n "$twochar" ]; then
768                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
769                                 lang=`echo $lang | sed "s,\..*,,"`
770                         else
771                                 lang=`echo $lang | sed "s,_.*,,"`
772                         fi
773                 fi
774                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
775                 echo "%lang($lang) $dir" >> ../glibc.lang
776         fi
777 done
778 # XXX: to be added when become supported by glibc
779 # am,bn,ml (present in sources, but incomplete and disabled) (used by GNOME)
780 # ia,kn,li,mn,sr@Latn (used by GNOME)
781 #       note: GNOME2 uses sr as cyrillic!
782 # nso,ss,ven,xh,zu (used by KDE)
783 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 \
784          ga gr he hi hr hu id is ja_JP.SJIS ka lg lt lv mk ms mt nn pt ro ru \
785          se sl sq sr sr@cyrillic ta tg th uk uz vi wa yi zh_CN ; do
786         if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
787                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
788                 lang=`echo $i | sed -e 's/_.*//'`
789                 echo "%lang($lang) %{_datadir}/locale/$i" >> ../glibc.lang
790         fi
791 done
792 install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
793
794 # localedb-gen infrastructure
795 install %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
796 cat > $RPM_BUILD_ROOT/etc/sysconfig/localedb <<EOF
797 # list of supported locales
798 #SUPPORTED_LOCALES="pl_PL/ISO-8859-2 de_DE/ISO-8859-2 en_GB/ISO-8859-1 en_US/ISO-8859-1"
799 EOF
800 install ../localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
801
802 # shutup check-files
803 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
804 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
805 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
806 # we don't support kernel without ptys support
807 rm -f $RPM_BUILD_ROOT%{_libdir}*/pt_chown
808
809 # copy actual kernel headers for glibc-kernel-headers
810 %if 0%{!?_with_kernheaders:1}
811 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
812 %{__cp} -Hr %{_kernelsrcdir}/include/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
813 if [ -d %{_kernelsrcdir}/include/asm-generic ] ; then
814         %{__cp} -Hr %{_kernelsrcdir}/include/asm-generic $RPM_BUILD_ROOT%{_includedir}
815 fi
816 %else
817 %{__cp} -Hr $_headers_dir/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
818 %endif
819
820 %clean
821 rm -rf $RPM_BUILD_ROOT
822
823 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
824 # when %%postun is run
825
826 %post   -p /sbin/postshell
827 /sbin/ldconfig
828 -/sbin/telinit u
829
830 %postun -p /sbin/postshell
831 /sbin/ldconfig
832 -/sbin/telinit u
833
834 %post   memusage -p /sbin/ldconfig
835 %postun memusage -p /sbin/ldconfig
836
837 %post -n iconv -p %{_sbindir}/iconvconfig
838
839 %post devel
840 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
841 echo "Please install glibc-kernel-headers or, if you are a brave man,"
842 echo "make appropriate links in /usr/include pointing to an already"
843 echo "installed previously chosen kernel-headers package or other"
844 echo "kernel headers you have."
845
846 %postun devel
847 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
848
849 %pre kernel-headers
850 # useful if these are symlinks
851 if [ -h %{_includedir}/asm ]; then rm -f %{_includedir}/asm; fi
852 if [ -h %{_includedir}/linux ]; then rm -f %{_includedir}/linux; fi
853
854 %post -n nscd
855 /sbin/chkconfig --add nscd
856 touch /var/log/nscd
857 chmod 000 /var/log/nscd
858 chown root:root /var/log/nscd
859 chmod 640 /var/log/nscd
860 if [ -f /var/lock/subsys/nscd ]; then
861         /etc/rc.d/init.d/nscd restart 1>&2
862 else
863         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
864 fi
865
866 %preun -n nscd
867 if [ "$1" = "0" ]; then
868         if [ -f /var/lock/subsys/nscd ]; then
869                 /etc/rc.d/init.d/nscd stop 1>&2
870         fi
871         /sbin/chkconfig --del nscd
872 fi
873
874 %files -f %{name}.lang
875 %defattr(644,root,root,755)
876 %doc README NEWS FAQ BUGS
877
878 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
879 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
880 %config %{_sysconfdir}/rpc
881 %ghost %{_sysconfdir}/ld.so.cache
882
883 %attr(755,root,root) /sbin/*
884 %attr(755,root,root) %{_bindir}/catchsegv
885 %attr(755,root,root) %{_bindir}/getent
886 %attr(755,root,root) %{_bindir}/glibcbug
887 %attr(755,root,root) %{_bindir}/iconv
888 %attr(755,root,root) %{_bindir}/ldd
889 %ifnarch alpha sparc sparc64 ppc
890 %attr(755,root,root) %{_bindir}/lddlibc4
891 %endif
892 %attr(755,root,root) %{_bindir}/locale
893 %attr(755,root,root) %{_bindir}/rpcgen
894 %attr(755,root,root) %{_bindir}/tzselect
895
896 %attr(755,root,root) %{_sbindir}/rpcinfo
897 %attr(755,root,root) %{_sbindir}/zdump
898 %attr(755,root,root) %{_sbindir}/zic
899
900 %attr(755,root,root) /lib*/ld-*
901 %attr(755,root,root) /lib*/libanl*
902 %attr(755,root,root) /lib*/libdl*
903 %attr(755,root,root) /lib*/libnsl*
904 %attr(755,root,root) /lib*/lib[BScmprtu]*
905
906 %dir %{_datadir}/locale
907 %{_datadir}/locale/locale.alias
908 %{_datadir}/zoneinfo
909 %exclude %{_datadir}/zoneinfo/right
910
911 %dir %{_libdir}*/locale
912
913 %{_mandir}/man1/[!lsg]*
914 %{_mandir}/man1/getent.1*
915 %{_mandir}/man1/locale.1*
916 %{_mandir}/man1/ldd.1*
917 %{_mandir}/man5/???[!d]*
918 %{_mandir}/man7/*
919 %{_mandir}/man8/[!n]*
920 %lang(cs) %{_mandir}/cs/man[578]/*
921 %lang(de) %{_mandir}/de/man[578]/*
922 %lang(es) %{_mandir}/es/man[578]/*
923 %lang(fi) %{_mandir}/fi/man1/ldd.1*
924 %lang(fr) %{_mandir}/fr/man1/ldd.1*
925 %lang(fr) %{_mandir}/fr/man[578]/*
926 %lang(hu) %{_mandir}/hu/man1/ldd.1*
927 %lang(hu) %{_mandir}/hu/man[578]/*
928 %lang(it) %{_mandir}/it/man[578]/*
929 %lang(ja) %{_mandir}/ja/man1/[!lsg]*
930 %lang(ja) %{_mandir}/ja/man1/ldd.1*
931 %lang(ja) %{_mandir}/ja/man5/???[!d]*
932 %lang(ja) %{_mandir}/ja/man7/*
933 %lang(ja) %{_mandir}/ja/man8/[!n]*
934 %lang(ko) %{_mandir}/ko/man[578]/*
935 # %lang(nl) %{_mandir}/nl/man[578]/*
936 %lang(pl) %{_mandir}/pl/man1/ldd.1*
937 %lang(pl) %{_mandir}/pl/man[578]/*
938 %lang(pt) %{_mandir}/pt/man5/???[!d]*
939 %lang(pt) %{_mandir}/pt/man7/*
940 %lang(pt) %{_mandir}/pt/man8/[!n]*
941 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[!d]*
942 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
943 %lang(pt_BR) %{_mandir}/pt_BR/man8/[!n]*
944 %lang(ru) %{_mandir}/ru/man[578]/*
945
946 #%files -n nss_dns
947 %defattr(644,root,root,755)
948 %attr(755,root,root) /lib*/libnss_dns*.so*
949
950 #%files -n nss_files
951 %defattr(644,root,root,755)
952 %attr(755,root,root) /lib*/libnss_files*.so*
953
954 %files zoneinfo_right
955 %defattr(644,root,root,755)
956 %{_datadir}/zoneinfo/right
957
958 %files -n nss_compat
959 %defattr(644,root,root,755)
960 %attr(755,root,root) /lib*/libnss_compat*.so*
961
962 %files -n nss_hesiod
963 %defattr(644,root,root,755)
964 %attr(755,root,root) /lib*/libnss_hesiod*.so*
965
966 %files -n nss_nis
967 %defattr(644,root,root,755)
968 %attr(755,root,root) /lib*/libnss_nis.so.*
969 %attr(755,root,root) /lib*/libnss_nis-*.so
970
971 %files -n nss_nisplus
972 %defattr(644,root,root,755)
973 %attr(755,root,root) /lib*/libnss_nisplus*.so*
974
975 %if %{?_without_memusage:0}%{!?_without_memusage:1}
976 %files memusage
977 %defattr(644,root,root,755)
978 %attr(755,root,root) %{_bindir}/memusage*
979 %attr(755,root,root) %{_libdir}*/libmemusage*
980 %endif
981
982 %files devel
983 %defattr(644,root,root,755)
984 %doc documentation/* NOTES PROJECTS
985 %attr(755,root,root) %{_bindir}/gencat
986 %attr(755,root,root) %{_bindir}/getconf
987 %attr(755,root,root) %{_bindir}/*prof*
988 %attr(755,root,root) %{_bindir}/*trace
989
990 %{_includedir}/*.h
991 %{_includedir}/arpa
992 %{_includedir}/bits
993 %{_includedir}/gnu
994 %{_includedir}/net
995 %{_includedir}/netash
996 %{_includedir}/netatalk
997 %{_includedir}/netax25
998 %{_includedir}/neteconet
999 %{_includedir}/netinet
1000 %{_includedir}/netipx
1001 %{_includedir}/netpacket
1002 %{_includedir}/netrom
1003 %{_includedir}/netrose
1004 %{_includedir}/nfs
1005 %{_includedir}/protocols
1006 %{_includedir}/rpc
1007 %{_includedir}/rpcsvc
1008 %{_includedir}/scsi
1009 %{_includedir}/sys
1010
1011 %{_infodir}/libc.info*
1012
1013 %attr(755,root,root) %{_libdir}*/lib[!m]*.so
1014 %attr(755,root,root) %{_libdir}*/libm.so
1015 %attr(755,root,root) %{_libdir}*/*crt*.o
1016 %{_libdir}*/libbsd-compat.a
1017 %{_libdir}*/libbsd.a
1018 %{_libdir}*/libc_nonshared.a
1019 %{_libdir}*/libg.a
1020 %{_libdir}*/libieee.a
1021 %{_libdir}*/libpthread_nonshared.a
1022 %{_libdir}*/librpcsvc.a
1023
1024 %{_mandir}/man1/getconf*
1025 %{_mandir}/man1/sprof*
1026 %{_mandir}/man3/*
1027 %lang(cs) %{_mandir}/cs/man3/*
1028 %lang(de) %{_mandir}/de/man3/*
1029 %lang(es) %{_mandir}/es/man3/*
1030 %lang(fr) %{_mandir}/fr/man3/*
1031 %lang(hu) %{_mandir}/hu/man3/*
1032 # %lang(it) %{_mandir}/it/man3/*
1033 %lang(ja) %{_mandir}/ja/man3/*
1034 %lang(ko) %{_mandir}/ko/man3/*
1035 %lang(nl) %{_mandir}/nl/man3/*
1036 %lang(pl) %{_mandir}/pl/man3/*
1037 %lang(pt) %{_mandir}/pt/man3/*
1038 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
1039 %lang(ru) %{_mandir}/ru/man3/*
1040
1041 %files kernel-headers
1042 %defattr(644,root,root,755)
1043 %{_includedir}/asm*
1044 %{_includedir}/linux
1045
1046 %files -n nscd
1047 %defattr(644,root,root,755)
1048 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
1049 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
1050 %attr(754,root,root) /etc/rc.d/init.d/nscd
1051 %attr(755,root,root) %{_sbindir}/nscd*
1052 %attr(640,root,root) /etc/logrotate.d/nscd
1053 %attr(640,root,root) %ghost /var/log/nscd
1054 %{_mandir}/man5/nscd.conf*
1055 %{_mandir}/man8/nscd*
1056 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
1057 %lang(ja) %{_mandir}/ja/man8/nscd*
1058 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
1059 %lang(pt) %{_mandir}/pt/man8/nscd*
1060 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
1061 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
1062
1063 %files -n localedb-src
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/localedef
1066 %attr(755,root,root) %{_bindir}/localedb-gen
1067 %{_datadir}/i18n
1068 %{_mandir}/man1/localedef*
1069 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/localedb
1070
1071 %files localedb-all
1072 %defattr(644,root,root,755)
1073 %{_libdir}*/locale/locale-archive
1074
1075 %files -n iconv
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_sbindir}/iconvconfig
1078 %dir %{_libdir}*/gconv
1079 %{_libdir}*/gconv/gconv-modules
1080 %attr(755,root,root) %{_libdir}*/gconv/*.so
1081
1082 %files static
1083 %defattr(644,root,root,755)
1084 %{_libdir}*/libanl.a
1085 %{_libdir}*/libBrokenLocale.a
1086 %{_libdir}*/libc.a
1087 %{_libdir}*/libcrypt.a
1088 %{_libdir}*/libdl.a
1089 %{_libdir}*/libm.a
1090 %{_libdir}*/libmcheck.a
1091 %{_libdir}*/libnsl.a
1092 %{_libdir}*/libpthread.a
1093 %{_libdir}*/libresolv.a
1094 %{_libdir}*/librt.a
1095 %{_libdir}*/libutil.a
1096
1097 %files profile
1098 %defattr(644,root,root,755)
1099 %{_libdir}*/lib*_p.a
1100
1101 %files pic
1102 %defattr(644,root,root,755)
1103 %{_libdir}*/lib*_pic.a
1104 %{_libdir}*/lib*.map
1105 %{_libdir}*/soinit.o
1106 %{_libdir}*/sofini.o
This page took 1.420956 seconds and 4 git commands to generate.