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