]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- security fix for overflow in resolver (when using dns for networks in
[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 %{!?min_kernel:%define          min_kernel      2.2.0}
6
7 Summary:        GNU libc
8 Summary(de):    GNU libc
9 Summary(fr):    GNU libc
10 Summary(pl):    GNU libc
11 Summary(ru):    GNU libc ×ÅÒÓÉÉ 2.2
12 Summary(tr):    GNU libc
13 Summary(uk):    GNU libc ×ÅÒÓ¦§ 2.2
14 Name:           glibc
15 Version:        2.2.5
16 Release:        17
17 Epoch:          6
18 License:        LGPL
19 Group:          Libraries
20 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
21 Source1:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
22 Source2:        nscd.init
23 Source3:        nscd.sysconfig
24 Source4:        nscd.logrotate
25 Source5:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
26 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
27 Source7:        postshell.c
28 Patch0:         %{name}-info.patch
29 Patch1:         %{name}-versions.awk_fix.patch
30 Patch2:         %{name}-pld.patch
31 Patch3:         %{name}-crypt-blowfish.patch
32 Patch4:         %{name}-string2-pointer-arith.patch
33 Patch5:         %{name}-linuxthreads-lock.patch
34 Patch6:         %{name}-pthread_create-manpage.patch
35 Patch7:         %{name}-sparc-linux-chown.patch
36 Patch8:         %{name}-ldconfig-bklinks.patch
37 Patch9:         %{name}-paths.patch
38 Patch10:        %{name}-vaargs.patch
39 Patch11:        %{name}-getaddrinfo-workaround.patch
40 Patch12:        %{name}-use-int-not-arpa.patch
41 Patch13:        %{name}-divdi3.patch
42 Patch14:        %{name}-nss_dns-overflow.patch
43 URL:            http://www.gnu.org/software/libc/
44 BuildRequires:  gd-devel >= 2.0.1
45 BuildRequires:  gettext-devel >= 0.10.36
46 BuildRequires:  libpng-devel
47 BuildRequires:  perl
48 BuildRequires:  rpm-build >= 4.0.2-46
49 BuildRequires:  texinfo
50 Provides:       ld.so.2
51 Provides:       ldconfig
52 Provides:       /sbin/ldconfig
53 Obsoletes:      %{name}-common
54 Obsoletes:      %{name}-debug
55 Obsoletes:      ldconfig
56 Autoreq:        false
57 PreReq:         basesystem
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 Conflicts:      kernel < %{min_kernel}
60 Conflicts:      man-pages < 1.43
61 Conflicts:      ld.so < 1.9.9-10
62
63 %define         debugcflags     -O1 -g
64
65 %description
66 Contains the standard libraries that are used by multiple programs on
67 the system. In order to save disk space and memory, as well as to ease
68 upgrades, common system code is kept in one place and shared between
69 programs. This package contains the most important sets of shared
70 libraries, the standard C library and the standard math library.
71 Without these, a Linux system will not function. It also contains
72 national language (locale) support and timezone databases.
73
74 %description -l de
75 Enthält die Standard-Libraries, die von verschiedenen Programmen im
76 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
77 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
78 einer einzigen Stelle gespeichert und wird von den Programmen
79 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
80 shared Libraries, die Standard-C-Library und die
81 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
82 Ferner enthält es den Support für die verschiedenen Sprachgregionen
83 (locale) und die Zeitzonen-Datenbank.
84
85 %description -l fr
86 Contient les bibliothèques standards utilisées par de nombreux
87 programmes du système. Afin d'économiser l'espace disque et mémoire,
88 et de faciliter les mises à jour, le code commun au système est mis à
89 un endroit et partagé entre les programmes. Ce paquetage contient les
90 bibliothèques partagées les plus importantes, la bibliothèque standard
91 du C et la bibliothèque mathématique standard. Sans celles-ci, un
92 système Linux ne peut fonctionner. Il contient aussi la gestion des
93 langues nationales (locales) et les bases de données des zones
94 horaires.
95
96 %description -l pl
97 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
98 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
99 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
100 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
101 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
102 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
103 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
104 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
105 jêzyków (locale) oraz definicje stref czasowych.
106
107 %description -l ru
108 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
109 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
110 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
111 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
112 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
113 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
114 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
115 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
116 ×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
117
118 %description -l tr
119 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
120 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
121 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
122 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
123 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
124 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
125 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
126
127 %description -l uk
128 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
129 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
130 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
131 ÓЦÌØÎÉÊ ÄÌÑ ×ӦȠÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍՠͦÓæ ¦ ËÏÌÅËÔÉ×ÎÏ
132 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
133 Ú ÄÉÎÁͦÞÎÉȠ¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎՠ¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
134 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉȠ¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
135 ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
136 ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
137
138 %package devel
139 Summary:        Additional libraries required to compile
140 Summary(de):    Weitere Libraries zum Kompilieren
141 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
142 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
143 Summary(ru):    äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
144 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
145 Summary(uk):    äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
146 Group:          Development/Libraries
147 Requires:       %{name} = %{version}
148
149 %description devel
150 To develop programs which use the standard C libraries (which nearly
151 all programs do), the system needs to have these standard header files
152 and object files available for creating the executables.
153
154 %description devel -l de
155 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
156 verwenden (also fast alle), benötigt das System diese Standard-Header-
157 und Objektdateien zum Erstellen der ausführbaren Programme.
158
159 %description devel -l fr
160 Pour développer des programmes utilisant les bibliothèques standard du
161 C (ce que presque tous les programmes font), le système doit posséder
162 ces fichiers en-têtes et objets standards pour créer les exécutables.
163
164 %description devel -l pl
165 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
166 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
167 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
168 wykonywalnych i innych bibliotek.
169
170 %description devel -l ru
171 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
172 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
173 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
174 ÉÓÐÏÌÎÑÅÍÙÅ ÆÁÊÌÙ.
175
176 %description devel -l tr
177 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
178 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
179 kitaplýklar.
180
181 %description devel -l uk
182 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ C
183 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äÈÅÄÅÒÉ
184 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
185 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
186
187 %package -n nscd
188 Summary:        Name Service Caching Daemon
189 Summary(pl):    Demon zapamiêtuj±cy odpowiedzi serwisów nazw
190 Summary(ru):    ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
191 Summary(uk):    ëÅÛÕÀÞÉÊ ÄÅÍÏΠÓÅצӦנ¦ÍÅÎ
192 Group:          Networking/Daemons
193 PreReq:         /sbin/chkconfig
194 PreReq:         rc-scripts >= 0.2.0
195 Requires:       %{name} = %{version}
196 Requires(post): fileutils
197
198 %description -n nscd
199 nscd caches name service lookups; it can dramatically improve
200 performance with NIS+, and may help with DNS as well. You cannot use
201 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
202 nscd happens to hit these bugs particularly hard.
203
204 %description -n nscd -l pl
205 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
206 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
207 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
208 obs³udze w±tków.
209
210 %description -n nscd -l ru
211 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
212 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
213 DNS.
214
215 %description -n nscd -l uk
216 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏӦנÄÏ ÓÅÒצӦנ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
217 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
218
219 %package -n localedb-src
220 Summary:        locale database source code
221 Summary(pl):    Kod ¼ród³owy bazy locale
222 Group:          Daemons
223 Requires:       %{name} = %{version}
224
225 %description -n localedb-src
226 This add-on package contains the data needed to build the locale data
227 files to use the internationalization features of the GNU libc. glibc
228 package contains standard set of locale binary database so you need
229 this package only when you want to build some non-standard locale
230 database.
231
232 %description -n localedb-src -l pl
233 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
234 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
235 libc. glibc zawiera standardowy zestaw binarnych baz lokalizacyjnych,
236 w zwi±zku z czym ten pakiet jest potrzebny tylko w sytuacji budowania
237 jakiej¶ niestandardowej bazy.
238
239 %package -n iconv
240 Summary:        Convert encoding of given files from one encoding to another
241 Summary(pl):    Program do konwersji plików tekstowych z jednego kodowania do innego
242 Group:          Applications/Text
243 Requires:       %{name} = %{version}
244
245 %description -n iconv
246 Convert encoding of given files from one encoding to another. You need
247 this package if you want to convert some documet from one encoding to
248 another or if you have installed some programs which use Generic
249 Character Set Conversion Interface.
250
251 %description -n iconv -l pl
252 Program do konwersji plików tekstowych z jednego kodowania do innego.
253 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
254 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
255 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
256 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
257 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
258
259 %package static
260 Summary:        Static libraries
261 Summary(pl):    Biblioteki statyczne
262 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
263 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
264 Group:          Development/Libraries
265 Requires:       %{name}-devel = %{version}
266
267 %description static
268 GNU libc static libraries.
269
270 %description static -l pl
271 Biblioteki statyczne GNU libc.
272
273 %description static -l ru
274 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
275 ×ÈÏÄÑÔ × glibc-devel.
276
277 %description static -l uk
278 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, ÝϠ¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
279 ÓËÌÁÄ glibc-devel.
280
281 %package profile
282 Summary:        glibc with profiling support
283 Summary(de):    glibc mit Profil-Unterstützung
284 Summary(fr):    glibc avec support pour profiling
285 Summary(pl):    glibc ze wsparciem dla profilowania
286 Summary(ru):    GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
287 Summary(tr):    Ölçüm desteði olan glibc
288 Summary(uk):    GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
289 Group:          Development/Libraries/Libc
290 Obsoletes:      libc-profile
291 Requires:       %{name}-devel = %{version}
292
293 %description profile
294 When programs are being profiled used gprof, they must use these
295 libraries instead of the standard C libraries for gprof to be able to
296 profile them correctly.
297
298 %description profile -l de
299 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
300 Libraries anstelle der üblichen C-Libraries verwendet werden.
301
302 %description profile -l pl
303 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
304 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
305 wyprofilowaæ.
306
307 %description profile -l uk
308 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
309 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅˠ¦Â̦ÏÔÅËÉ, ÝϠͦÓÔÑÔØÓÑ
310 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
311 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁԦנÂÕÄÅ ÐÏËÁÚÕ×ÁÔɠæÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
312 ÐÏÚÁÍÉÎÕÌÏÍÕ ÒÏæ...
313
314 %description profile -l tr
315 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
316 kitaplýðý kullanmak zorundadýrlar.
317
318 %description profile -l ru
319 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
320 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
321 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
322 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
323 ÐÏÚÁÐÒÏÛÌÏÍ ÇÏÄÕ...
324
325 %package pic
326 Summary:        glibc PIC archive
327 Summary(pl):    archiwum PIC glibc
328 Group:          Development/Libraries/Libc
329 Requires:       %{name}-devel = %{version}
330
331 %description pic
332 GNU C Library PIC archive contains an archive library (ar file)
333 composed of individual shared objects. This is used for creating a
334 library which is a smaller subset of the standard libc shared library.
335
336 %description pic -l pl
337 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
338 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
339 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
340 biblioteki wspó³dzielonej libc.
341
342 %package -n nss_compat
343 Summary:        Old style NYS NSS glibc module
344 Summary(pl):    Stary modu³ NYS NSS glibc
345 Group:          Base
346 Requires:       %{name} = %{version}
347
348 %description -n nss_compat
349 Old style NYS NSS glibc module.
350
351 %description -n nss_compat -l pl
352 Stary modu³ NYS NSS glibc.
353
354 %package -n nss_dns
355 Summary:        BIND NSS glibc module
356 Summary(pl):    Modu³ BIND NSS glibc
357 Group:          Base
358 Requires:       %{name} = %{version}
359
360 %description -n nss_dns
361 BIND NSS glibc module.
362
363 %description -n nss_dns -l pl
364 Modu³ BIND NSS glibc.
365
366 %package -n nss_files
367 Summary:        Traditional files databases NSS glibc module
368 Summary(pl):    Modu³ tradycyjnych plikowych baz danych NSS glibc
369 Group:          Base
370 Requires:       %{name} = %{version}
371
372 %description -n nss_files
373 Traditional files databases NSS glibc module.
374
375 %description -n nss_files -l pl
376 Modu³ tradycyjnych plikowych baz danych NSS glibc.
377
378 %package -n nss_hesiod
379 Summary:        Hesiod NSS glibc module
380 Summary(pl):    Modu³ hesiod NSS glibc
381 Group:          Base
382 Requires:       %{name} = %{version}
383
384 %description -n nss_hesiod
385 glibc NSS (Name Service Switch) module for databases access.
386
387 %description -n nss_hesiod -l pl
388 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
389
390 %package -n nss_nis
391 Summary:        NIS(YP) NSS glibc module
392 Summary(pl):    Modu³ NIS(YP) NSS glibc
393 Group:          Base
394 Requires:       %{name} = %{version}
395
396 %description -n nss_nis
397 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
398
399 %description -n nss_nis -l pl
400 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
401
402 %package -n nss_nisplus
403 Summary:        NIS+ NSS module
404 Summary(pl):    Modu³ NIS+ NSS
405 Group:          Base
406 Requires:       %{name} = %{version}
407
408 %description -n nss_nisplus
409 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
410
411 %description -n nss_nisplus -l pl
412 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
413
414 %package memusage
415 Summary:        A toy
416 Summary(pl):    Zabawka
417 Group:          Applications
418 Requires:       %{name} = %{version}
419 Requires:       gd
420
421 %description memusage
422 A toy.
423
424 %description memusage -l pl
425 Zabawka.
426
427 %prep
428 %setup -q -a 1
429 %patch0 -p1
430 %patch1 -p1
431 %patch2 -p1
432 %patch3 -p1
433 %patch4 -p1
434 %patch5 -p1
435 %patch6 -p1
436 %patch7 -p1
437 #%patch8 -p1
438 %patch9 -p1
439 %patch10 -p1
440 %patch11 -p1
441 %patch12 -p1
442 %patch13 -p1
443 %patch14 -p1
444
445 chmod +x scripts/cpp
446
447 %build
448 # avoid stripping ld.so by -s in rpmldflags
449 LDFLAGS=" " ; export LDFLAGS
450 %configure2_13 \
451         --enable-add-ons=linuxthreads \
452         --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
453         --enable-profile \
454         --disable-omitfp
455
456 %{__make}
457
458 # this need improvements (like building agains new builded glibc) but works
459 %{__cc} -o postshell %{rpmcflags} %{rpmldflags} %{SOURCE7}
460
461 %install
462 rm -rf $RPM_BUILD_ROOT
463 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
464
465 env LANGUAGE=C LC_ALL=C \
466 %{__make} install \
467         install_root=$RPM_BUILD_ROOT \
468         infodir=%{_infodir} \
469         mandir=%{_mandir}
470
471 env LANGUAGE=C LC_ALL=C \
472 %{__make} install-locales -C localedata \
473         install_root=$RPM_BUILD_ROOT
474
475 PICFILES="libc_pic.a libc.map
476         math/libm_pic.a libm.map
477         resolv/libresolv_pic.a"
478
479 install $PICFILES                               $RPM_BUILD_ROOT%{_libdir}
480 install elf/soinit.os                           $RPM_BUILD_ROOT%{_libdir}/soinit.o
481 install elf/sofini.os                           $RPM_BUILD_ROOT%{_libdir}/sofini.o
482
483 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so        $RPM_BUILD_ROOT%{_libdir}
484 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so       $RPM_BUILD_ROOT%{_libdir}
485
486 %{__make} -C linuxthreads/man
487 install linuxthreads/man/*.3thr                 $RPM_BUILD_ROOT%{_mandir}/man3
488
489 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
490
491 ln -sf ../../..%{_sysconfdir}/localtime         $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
492 ln -sf localtime                                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
493 ln -sf localtime                                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
494 ln -sf ../..%{_libdir}/libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
495
496 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
497
498 install %{SOURCE2}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
499 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
500 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
501 install nscd/nscd.conf          $RPM_BUILD_ROOT%{_sysconfdir}
502 install nss/nsswitch.conf       $RPM_BUILD_ROOT%{_sysconfdir}
503
504 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
505 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
506 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
507 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
508 rm -f %{_mandir}/hu/man7/man.7
509
510 :> $RPM_BUILD_ROOT/var/log/nscd
511
512 rm -rf documentation
513 install -d documentation
514
515 cp -f linuxthreads/ChangeLog documentation/ChangeLog.threads
516 cp -f linuxthreads/Changes documentation/Changes.threads
517 cp -f linuxthreads/README documentation/README.threads
518 cp -f crypt/README.ufc-crypt documentation/
519
520 cp -f ChangeLog documentation
521
522 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
523
524 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
525 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
526
527 # Collect locale files and mark them with %%lang()
528 rm -f glibc.lang
529 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
530         if [ -d $i ]; then
531                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
532                 twochar=1
533                 # list of long %%lang values we do support
534                 for j in de_AT de_BE de_CH de_LU ja_JP.SJIS ko_KR.utf8 pt_BR \
535                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
536                         if [ $j = "$lang" ]; then
537                                 twochar=
538                         fi
539                 done
540                 if [ -n "$twochar" ]; then
541                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
542                                 lang=`echo $lang | sed "s,\..*,,"`
543                         else
544                                 lang=`echo $lang | sed "s,_.*,,"`
545                         fi 
546                 fi      
547                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
548                 echo "%lang($lang) $dir" >> glibc.lang
549         fi
550 done
551 for i in af az bg de_AT el en eo es_ES et eu fi gr he hr hu id is ja_JP.SJIS \
552          lt lv ms nn pt ro ru sl sr ta uk wa zh_CN ; do
553         if [ ! -d $i ]; then
554                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
555                 lang=`echo $i | sed -e 's/_.*//'`
556                 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
557         fi
558 done
559
560
561 install -m755 postshell $RPM_BUILD_ROOT/sbin
562
563 %clean
564 rm -rf $RPM_BUILD_ROOT
565
566 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
567 # when %%postun is run
568
569 %post   -p /sbin/postshell
570 /sbin/ldconfig
571 -/sbin/telinit u
572
573 %postun -p /sbin/postshell 
574 /sbin/ldconfig
575 -/sbin/telinit u
576
577 %post   memusage -p /sbin/ldconfig
578 %postun memusage -p /sbin/ldconfig
579
580 %post -n iconv -p %{_sbindir}/iconvconfig
581
582 %post devel
583 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
584
585 %postun devel
586 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
587
588 %post -n nscd
589 /sbin/chkconfig --add nscd
590 touch /var/log/nscd && (chmod 000 /var/log/nscd; chown root.root /var/log/nscd; chmod 640 /var/log/nscd)
591 if [ -f /var/lock/subsys/nscd ]; then
592         /etc/rc.d/init.d/nscd restart 1>&2
593 else
594         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
595 fi
596
597 %preun -n nscd
598 if [ "$1" = "0" ]; then
599         if [ -f /var/lock/subsys/nscd ]; then
600                 /etc/rc.d/init.d/nscd stop 1>&2
601         fi
602         /sbin/chkconfig --del nscd
603 fi
604
605 %files -f %{name}.lang
606 %defattr(644,root,root,755)
607 %doc README NEWS FAQ BUGS
608
609 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
610 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
611 %config %{_sysconfdir}/rpc
612 %ghost %{_sysconfdir}/ld.so.cache
613
614 %attr(755,root,root) /sbin/*
615 %attr(755,root,root) %{_bindir}/catchsegv
616 %attr(755,root,root) %{_bindir}/getent
617 %attr(755,root,root) %{_bindir}/glibcbug
618 %attr(755,root,root) %{_bindir}/iconv
619 %attr(755,root,root) %{_bindir}/ldd
620 %ifnarch alpha sparc sparc64 ppc
621 %attr(755,root,root) %{_bindir}/lddlibc4
622 %endif
623 %attr(755,root,root) %{_bindir}/locale
624 %attr(755,root,root) %{_bindir}/rpcgen
625 %attr(755,root,root) %{_bindir}/tzselect
626
627 %attr(755,root,root) %{_sbindir}/rpcinfo
628 %attr(755,root,root) %{_sbindir}/zdump
629 %attr(755,root,root) %{_sbindir}/zic
630
631 %attr(755,root,root) /lib/ld-*
632 %attr(755,root,root) /lib/libanl*
633 %attr(755,root,root) /lib/libdl*
634 %attr(755,root,root) /lib/libnsl*
635 %attr(755,root,root) /lib/lib[BScmprtu]*
636
637 %dir %{_datadir}/locale
638 %{_datadir}/locale/locale.alias
639 %{_datadir}/zoneinfo
640
641 %dir %{_libdir}/locale
642
643 %{_mandir}/man1/[^lsg]*
644 %{_mandir}/man1/getent.1*
645 %{_mandir}/man1/locale.1*
646 %{_mandir}/man1/ldd.1*
647 %{_mandir}/man5/???[^d]*
648 %{_mandir}/man7/*
649 %{_mandir}/man8/[^n]*
650 %lang(cs) %{_mandir}/cs/man[578]/*
651 %lang(de) %{_mandir}/de/man[578]/*
652 %lang(es) %{_mandir}/es/man[578]/*
653 %lang(fi) %{_mandir}/fi/man1/ldd.1*
654 %lang(fr) %{_mandir}/fr/man1/ldd.1*
655 %lang(fr) %{_mandir}/fr/man[578]/*
656 %lang(hu) %{_mandir}/hu/man1/ldd.1*
657 %lang(hu) %{_mandir}/hu/man[578]/*
658 %lang(it) %{_mandir}/it/man[578]/*
659 %lang(ja) %{_mandir}/ja/man1/[^lsg]*
660 %lang(ja) %{_mandir}/ja/man1/ldd.1*
661 %lang(ja) %{_mandir}/ja/man5/???[^d]*
662 %lang(ja) %{_mandir}/ja/man7/*
663 %lang(ja) %{_mandir}/ja/man8/[^n]*
664 %lang(ko) %{_mandir}/ko/man[578]/*
665 # %lang(nl) %{_mandir}/nl/man[578]/*
666 %lang(pl) %{_mandir}/pl/man1/ldd.1*
667 %lang(pl) %{_mandir}/pl/man[578]/*
668 %lang(pt) %{_mandir}/pt/man5/???[^d]*
669 %lang(pt) %{_mandir}/pt/man7/*
670 %lang(pt) %{_mandir}/pt/man8/[^n]*
671 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[^d]*
672 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
673 %lang(pt_BR) %{_mandir}/pt_BR/man8/[^n]*
674 %lang(ru) %{_mandir}/ru/man[578]/*
675
676 #%files -n nss_dns
677 %defattr(644,root,root,755)
678 %attr(755,root,root) /lib/libnss_dns*.so*
679
680 #%files -n nss_files
681 %defattr(644,root,root,755)
682 %attr(755,root,root) /lib/libnss_files*.so*
683
684 %files -n nss_compat
685 %defattr(644,root,root,755)
686 %attr(755,root,root) /lib/libnss_compat*.so*
687
688 %files -n nss_hesiod
689 %defattr(644,root,root,755)
690 %attr(755,root,root) /lib/libnss_hesiod*.so*
691
692 %files -n nss_nis
693 %defattr(644,root,root,755)
694 %attr(755,root,root) /lib/libnss_nis.so.*
695 %attr(755,root,root) /lib/libnss_nis-*.so
696
697 %files -n nss_nisplus
698 %defattr(644,root,root,755)
699 %attr(755,root,root) /lib/libnss_nisplus*.so*
700
701 %files memusage
702 %defattr(644,root,root,755)
703 %attr(755,root,root) %{_bindir}/memusage*
704 %attr(755,root,root) %{_libdir}/libmemusage*
705
706 %files devel
707 %defattr(644,root,root,755)
708 %doc documentation/* NOTES PROJECTS
709 %attr(755,root,root) %{_bindir}/gencat
710 %attr(755,root,root) %{_bindir}/getconf
711 %attr(755,root,root) %{_bindir}/*prof*
712 %attr(755,root,root) %{_bindir}/*trace
713
714 %{_includedir}/*
715
716 %{_infodir}/libc.info*
717
718 %attr(755,root,root) %{_libdir}/lib[^m]*.so
719 %attr(755,root,root) %{_libdir}/libm.so
720 %attr(755,root,root) %{_libdir}/*crt*.o
721 %{_libdir}/libbsd-compat.a
722 %{_libdir}/libbsd.a
723 %{_libdir}/libc_nonshared.a
724 %{_libdir}/libg.a
725 %{_libdir}/libieee.a
726 %{_libdir}/librpcsvc.a
727
728 %{_mandir}/man1/getconf*
729 %{_mandir}/man1/sprof*
730 %{_mandir}/man3/*
731 %lang(cs) %{_mandir}/cs/man3/*
732 %lang(de) %{_mandir}/de/man3/*
733 %lang(es) %{_mandir}/es/man3/*
734 %lang(fr) %{_mandir}/fr/man3/*
735 %lang(hu) %{_mandir}/hu/man3/*
736 # %lang(it) %{_mandir}/it/man3/*
737 %lang(ja) %{_mandir}/ja/man3/*
738 %lang(ko) %{_mandir}/ko/man3/*
739 %lang(nl) %{_mandir}/nl/man3/*
740 %lang(pl) %{_mandir}/pl/man3/*
741 %lang(pt) %{_mandir}/pt/man3/*
742 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
743 %lang(ru) %{_mandir}/ru/man3/*
744
745 %files -n nscd
746 %defattr(644,root,root,755)
747 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
748 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
749 %attr(754,root,root) /etc/rc.d/init.d/nscd
750 %attr(755,root,root) %{_sbindir}/nscd*
751 %attr(640,root,root) /etc/logrotate.d/nscd
752 %attr(640,root,root) %ghost /var/log/nscd
753 %{_mandir}/man5/nscd.conf*
754 %{_mandir}/man8/nscd*
755 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
756 %lang(ja) %{_mandir}/ja/man8/nscd*
757 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
758 %lang(pt) %{_mandir}/pt/man8/nscd*
759 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
760 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
761
762 %files -n localedb-src
763 %defattr(644,root,root,755)
764 %attr(755,root,root) %{_bindir}/localedef
765 %{_datadir}/i18n
766 %{_mandir}/man1/localedef*
767
768 %files -n iconv
769 %defattr(644,root,root,755)
770 %attr(755,root,root) %{_sbindir}/iconvconfig
771 %dir %{_libdir}/gconv
772 %{_libdir}/gconv/gconv-modules
773 %attr(755,root,root) %{_libdir}/gconv/*.so
774
775 %files static
776 %defattr(644,root,root,755)
777 %{_libdir}/libanl.a
778 %{_libdir}/libBrokenLocale.a
779 %{_libdir}/libc.a
780 %{_libdir}/libcrypt.a
781 %{_libdir}/libdl.a
782 %{_libdir}/libm.a
783 %{_libdir}/libmcheck.a
784 %{_libdir}/libnsl.a
785 %{_libdir}/libpthread.a
786 %{_libdir}/libresolv.a
787 %{_libdir}/librt.a
788 %{_libdir}/libutil.a
789
790 %files profile
791 %defattr(644,root,root,755)
792 %{_libdir}/lib*_p.a
793
794 %files pic
795 %defattr(644,root,root,755)
796 %{_libdir}/lib*_pic.a
797 %{_libdir}/lib*.map
798 %{_libdir}/soinit.o
799 %{_libdir}/sofini.o
This page took 0.147315 seconds and 3 git commands to generate.