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