]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
drobnostka wstripowaniu
[packages/glibc.git] / glibc.spec
1 Summary:        GNU libc
2 Summary(de):    GNU libc
3 Summary(fr):    GNU libc
4 Summary(pl):    GNU libc
5 Summary(tr):    GNU libc
6 name:           glibc
7 Version:        2.1.1
8 Release:        4
9 Copyright:      LGPL
10 Group:          Libraries
11 Group(pl):      Biblioteki
12 Source0:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.gz
13 Source1:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.gz
14 Source2:        http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-%{version}.tar.gz
15 Source3:        utmpd.init
16 Source4:        nscd.init
17 Source5:        utmpd.sysconfig
18 Source6:        nscd.sysconfig
19 Patch0:         glibc-info.patch
20 Patch1:         glibc-paths.patch
21 Patch2:         glibc-versions.awk_fix.patch
22 URL:            http://www.gnu.org/software/libc/
23 Provides:       ld.so.2
24 Obsoletes:      %{name}-profile
25 Obsoletes:      %{name}-debug
26 Autoreq:        false
27 BuildRoot:      /tmp/%{name}-%{version}-root
28
29 %description
30 Contains the standard libraries that are used by multiple programs on the
31 system. In order to save disk space and memory, as well as to ease upgrades,
32 common system code is kept in one place and shared between programs. This
33 package contains the most important sets of shared libraries, the standard C
34 library and the standard math library. Without these, a Linux system will
35 not function. It also contains national language (locale) support and
36 timezone databases.
37
38 %description -l de
39 Enthält die Standard-Libraries, die von verschiedenen Programmen im System
40 benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen und zur
41 Vereinfachung von Upgrades ist der gemeinsame Systemcode an einer einzigen
42 Stelle gespeichert und wird von den Programmen gemeinsam genutzt. Dieses
43 Paket enthält die wichtigsten Sets der shared Libraries, die
44 Standard-C-Library und die Standard-Math-Library, ohne die das Linux-System
45 nicht funktioniert. Ferner enthält es den Support für die verschiedenen
46 Sprachgregionen (locale) und die Zeitzonen-Datenbank.
47
48 %description -l fr
49 Contient les bibliothèques standards utilisées par de nombreux programmes
50 du système. Afin d'économiser l'espace disque et mémoire, et de faciliter
51 les mises à jour, le code commun au système est mis à un endroit et partagé
52 entre les programmes. Ce paquetage contient les bibliothèques partagées les
53 plus importantes, la bibliothèque standard du C et la bibliothèque
54 mathématique standard. Sans celles-ci, un système Linux ne peut fonctionner.
55 Il contient aussi la gestion des langues nationales (locales) et les bases
56 de données des zones horaires.
57
58 %description -l pl
59 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne programy
60 w Twoim systemie. U¿ywanie przez programy bibliotek z tego pakietu oszczêdza
61 miejsce na dysku i pamiêæ. Wiekszo¶æ kodu systemowego jest usytuowane w
62 jednym miejscu i dzielone miêdzy wieloma programami. Pakiet ten zawiera
63 bardzo wa¿ny zbiór bibliotek standardowych wspó³dzielonych (dynamicznych)
64 bibliotek C i matematycznych. Bez glibc system Linux nie jest w stanie
65 funkcjonowaæ. Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla
66 wielu jêzyków (locale) oraz definicje stref czasowych.
67
68 %description -l tr
69 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir. Disk
70 alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme iþlemlerini
71 kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde tutulup programlar
72 arasýnda paylaþtýrýlýr. Bu paket en önemli ortak kitaplýklarý, standart
73 C kitaplýðýný ve standart matematik kitaplýðýný içerir. Bu kitaplýklar olmadan
74 Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi veri tabaný
75 da bu pakette yer alýr.
76
77 %package        devel
78 Summary:        Additional libraries required to compile
79 Summary(de):    Weitere Libraries zum Kompilieren
80 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
81 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
82 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
83 Group:          Development/Libraries
84 Group(pl):      Programowanie/Biblioteki
85 Prereq:         /sbin/install-info
86 Requires:       %{name} = %{version}
87
88 %description devel
89 To develop programs which use the standard C libraries (which nearly all
90 programs do), the system needs to have these standard header files and object
91 files available for creating the executables.
92
93 %description -l de devel
94 Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
95 (also fast alle), benötigt das System diese Standard-Header- und Objektdateien
96 zum Erstellen der ausführbaren Programme.
97
98 %description -l fr devel
99 Pour développer des programmes utilisant les bibliothèques standard du C
100 (ce que presque tous les programmes font), le système doit posséder ces
101 fichiers en-têtes et objets standards pour créer les exécutables.
102
103 %description -l pl devel
104 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów korzystaj±cych
105 ze standardowej biblioteki C. Znajduj± siê tutaj pliki nag³ówkowe oraz pliki 
106 objektowe, niezbêdne do kompilacji programów wykonywalnych i innych bibliotek.
107
108 %description -l tr devel
109 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
110 geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
111
112 %package -n     nscd
113 Summary:        Name Service Caching Daemon
114 Summary(pl):    Name Service Caching Daemon
115 Group:          Networnikng/Daemons
116 Group:          Sieciowe/Serwery
117 Prereq:         /sbin/chkconfig
118
119 %description -n nscd
120 nscd caches name service lookups; it can dramatically improve performance
121 with NIS+, and may help with DNS as well.
122
123 You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
124 support. nscd happens to hit these bugs particularly hard.
125
126 %description -n nscd -l pl
127 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie 
128 poprawiæ szybko¶æ dzia³ania NIS+.
129
130 Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
131 po stronie j±dra w ods³udze w±tków.
132
133 %package -n     utmpd
134 Summary:        utmp and utmpx synchronizer for libc5 applications.
135 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
136 Group:          Daemons
137 Group(pl):      Serwery
138 Prereq:         /sbin/chkconfig
139
140 %description -n utmpd
141 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based 
142 program with utmp access.
143
144 %description -n utmpd -l pl
145 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików 
146 /var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
147 ze starszych programów (bazuj±cych na libc5).
148
149 %package        static
150 Summary:        Static libraries
151 Summary(pl):    Biblioteki statyczne 
152 Group:          Development/Libraries
153 Group(pl):      Programowanie/Biblioteki
154 Requires:       %{name}-devel = %{version}
155
156 %description static
157 GNU libc-2.1 Static libraries
158
159 %description -l pl static
160 GNU libc-2.1 Static libraries
161
162 %prep 
163 %setup  -q -a 1 -a 2
164 %patch0 -p1
165 %patch1 -p1
166 %patch2 -p1
167
168 %build
169 %configure \
170         --enable-add-ons=crypt,linuxthreads \
171         --disable-profile \
172         --disable-omitfp \
173         --infodir=%{_infodir} \
174         --mandir=%{_mandir}
175 make   
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig},%{_mandir}/man3,var/db}
180
181 make install \
182         install_root=$RPM_BUILD_ROOT \
183         infodir=%{_infodir} \
184         mandir=%{_mandir}
185
186 make install-locales -C localedata \
187         install_root=$RPM_BUILD_ROOT
188
189 make -C linuxthreads/man
190 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
191
192 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
193
194 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
195 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
196 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
197 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
198
199 rm -f $RPM_BUILD_ROOT/etc/localtime
200
201 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
202 strip strip--unneeded $RPM_BUILD_ROOT/lib/*.so.*
203
204 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
205 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
206 install %{SOURCE6}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
207 install %{SOURCE5}              $RPM_BUILD_ROOT/etc/sysconfig/utmpd
208 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
209 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
210
211 install nss/db-Makefile $RPM_BUILD_ROOT/var/db
212
213 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
214 #!/bin/sh
215 /usr/bin/make -f /var/db/db-Makefile
216 EOF
217
218 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db 
219
220 rm -rf documentation
221 install -d documentation
222
223 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
224 cp linuxthreads/Changes documentation/Changes.threads
225 cp linuxthreads/README documentation/README.threads
226 cp crypt/README documentation/README.crypt
227
228 cp ChangeLog ChangeLog.8 documentation
229
230 gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
231         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
232         documentation/* login/README.utmpd
233
234 %post   -p /sbin/ldconfig
235 %postun -p /sbin/ldconfig
236
237 %post devel
238 /sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
239
240 %preun devel
241 if [ "$1" = 0 ]; then
242         /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
243 fi
244
245 %post -n nscd
246 /sbin/chkconfig --add nscd
247 if [ -f /var/lock/subsys/nscd ]; then
248         /etc/rc.d/init.d/nscd restart &>/dev/null
249 else
250         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon."
251 fi
252
253 %preun -n nscd
254 if [ "$1" = "0" ]; then
255         /sbin/chkconfig --del nscd
256         /etc/rc.d/init.d/nscd stop &>/dev/null
257 fi
258
259 %post -n utmpd
260 /sbin/chkconfig --add utmpd
261
262 if [ -f /var/lock/subsys/utmpd ]; then
263         /etc/rc.d/init.d/utmpd restart &>/dev/null
264 fi
265
266 %preun -n utmpd
267 if [ "$1" = "0" ]; then
268         /sbin/chkconfig --del utmpd
269         /etc/rc.d/init.d/utmpd stop &>/dev/null
270 fi
271
272 %clean
273 rm -rf $RPM_BUILD_ROOT
274
275 %files
276 %defattr(644,root,root,755)
277 %doc {README,NEWS,FAQ,BUGS}.gz
278
279 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
280 %config /etc/rpc
281
282 %attr(755,root,root) /sbin/*
283 %attr(755,root,root) %{_bindir}/*
284 %attr(755,root,root) %{_sbindir}/rpcinfo
285 %attr(755,root,root) %{_sbindir}/zdump
286 %attr(755,root,root) %{_sbindir}/zic
287
288 %attr(755,root,root) /lib/ld-*
289 %attr(755,root,root) /lib/lib*
290
291 %dir %{_libdir}/gconv
292 %{_libdir}/gconv/gconv-modules
293
294 %{_datadir}/i18n
295 %{_datadir}/locale
296 %{_datadir}/zoneinfo
297
298 %config /var/db/db-*
299
300 %files devel
301 %defattr(644,root,root,755)
302 %doc documentation/* {NOTES,PROJECTS}.gz
303
304 %{_includedir}/*.h
305 %{_includedir}/arpa
306 %{_includedir}/bits
307 %{_includedir}/db1
308 %{_includedir}/gnu
309 %{_includedir}/net
310 %{_includedir}/netash
311 %{_includedir}/netatalk
312 %{_includedir}/netax25
313 %{_includedir}/neteconet
314 %{_includedir}/netinet
315 %{_includedir}/netipx
316 %{_includedir}/netpacket
317 %{_includedir}/netrom
318 %{_includedir}/netrose
319 %{_includedir}/nfs
320 %{_includedir}/protocols
321 %{_includedir}/rpc
322 %{_includedir}/rpcsvc
323 %{_includedir}/scsi
324 %{_includedir}/sys
325
326 %{_infodir}/libc.inf*.gz
327
328 %attr(755,root,root) %{_libdir}/lib*.so
329 %attr(755,root,root) %{_libdir}/*.o
330 %attr(755,root,root) %{_libdir}/gconv/*.so
331
332 %{_mandir}/man3/*
333
334 %files -n nscd
335 %defattr(644,root,root,755)
336 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
337 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
338 %attr(755,root,root) /etc/rc.d/init.d/nscd
339 %attr(755,root,root) %{_sbindir}/nscd
340
341 %files -n utmpd
342 %defattr(644,root,root,755)
343 %doc login/README.utmpd.gz
344 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
345 %attr(755,root,root) /etc/rc.d/init.d/utmpd
346 %attr(755,root,root) %{_sbindir}/utmpd
347
348 %files static
349 %defattr(644,root,root,755)
350 %{_libdir}/lib*.a
351
352 %changelog
353 changes from devel and getaddrinfo.patch
354
355 - added using CVS keywords in %changelog (for automating them).
356
357   [2.1.1-3]
358 - added stripping /usr/lib/gconv/*.so modules (it saves next ~300KB),
359 - added glibc-versions.awk_fix.patch (fix using sort in
360   scripts/versions.awk),
361 - added stripping
362 - permission on rc scripts changed to 754,
363 - removed /var/db (it is in filesystem).
364
365 * Wed Jun 02 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
366 - added static subpackage,
367 - added {utmpd,nscd}.sysconfig,
368 - fixed %doc && {utmpd,nscd}.init,
369 - macro %configure in use ...
370
371 * Wed May 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
372   [2.1.1-2]
373 - fixed utpmd.init,
374 - added %post & %pre for utmpd subpackage.
375 - macro %{_target_platform},
376 - fixed %build,
377 - minor changes.
378
379 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.  [2.1.1-1]
380 - based on RH spec,
381 - spec rewrited by PLD team,
382   we start at GNU libc 2.0.92 one year ago ...
383 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
This page took 0.05374 seconds and 4 git commands to generate.