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