]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
c5ccaf4dc7acd656b616e24c828ab6a22fb09921
[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 BuildPrereq:    perl
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 %patch2 -p1
168
169 %build
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 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
233 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
234         $RPM_BUILD_ROOT/usr/lib/gconv/*.so
235
236 %post   -p /sbin/ldconfig
237 %postun -p /sbin/ldconfig
238
239 %post devel
240 /sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
241
242 %preun devel
243 if [ "$1" = 0 ]; then
244         /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
245 fi
246
247 %post -n nscd
248 /sbin/chkconfig --add nscd
249 if [ -f /var/lock/subsys/nscd ]; then
250         /etc/rc.d/init.d/nscd restart &>/dev/null
251 else
252         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon."
253 fi
254
255 %preun -n nscd
256 if [ "$1" = "0" ]; then
257         /sbin/chkconfig --del nscd
258         /etc/rc.d/init.d/nscd stop
259 fi
260
261 %post -n utmpd
262 /sbin/chkconfig --add utmpd
263 if [ -f /var/lock/subsys/utmpd ]; then
264         /etc/rc.d/init.d/utmpd restart
265 else
266         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon."
267 fi
268
269 %preun -n utmpd
270 if [ "$1" = "0" ]; then
271         /sbin/chkconfig --del utmpd
272         /etc/rc.d/init.d/utmpd stop
273 fi
274
275 %clean
276 rm -rf $RPM_BUILD_ROOT
277
278 %files
279 %defattr(644,root,root,755)
280 %doc {README,NEWS,FAQ,BUGS}.gz
281
282 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
283 %config /etc/rpc
284
285 %attr(755,root,root) /sbin/*
286 %attr(755,root,root) %{_bindir}/*
287 %attr(755,root,root) %{_sbindir}/rpcinfo
288 %attr(755,root,root) %{_sbindir}/zdump
289 %attr(755,root,root) %{_sbindir}/zic
290
291 %attr(755,root,root) /lib/ld-*
292 %attr(755,root,root) /lib/lib*
293
294 %dir %{_libdir}/gconv
295 %{_libdir}/gconv/gconv-modules
296
297 %{_datadir}/i18n
298 %{_datadir}/locale
299 %{_datadir}/zoneinfo
300
301 %config /var/db/db-*
302
303 %files devel
304 %defattr(644,root,root,755)
305 %doc documentation/* {NOTES,PROJECTS}.gz
306
307 %{_includedir}/*.h
308 %{_includedir}/arpa
309 %{_includedir}/bits
310 %{_includedir}/db1
311 %{_includedir}/gnu
312 %{_includedir}/net
313 %{_includedir}/netash
314 %{_includedir}/netatalk
315 %{_includedir}/netax25
316 %{_includedir}/neteconet
317 %{_includedir}/netinet
318 %{_includedir}/netipx
319 %{_includedir}/netpacket
320 %{_includedir}/netrom
321 %{_includedir}/netrose
322 %{_includedir}/nfs
323 %{_includedir}/protocols
324 %{_includedir}/rpc
325 %{_includedir}/rpcsvc
326 %{_includedir}/scsi
327 %{_includedir}/sys
328
329 %{_infodir}/libc.inf*.gz
330
331 %attr(755,root,root) %{_libdir}/lib*.so
332 %attr(755,root,root) %{_libdir}/*.o
333 %attr(755,root,root) %{_libdir}/gconv/*.so
334
335 %{_mandir}/man3/*
336
337 %files -n nscd
338 %defattr(644,root,root,755)
339 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
340 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
341 %attr(755,root,root) /etc/rc.d/init.d/nscd
342 %attr(755,root,root) %{_sbindir}/nscd
343
344 %files -n utmpd
345 %defattr(644,root,root,755)
346 %doc login/README.utmpd.gz
347 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
348 %attr(755,root,root) /etc/rc.d/init.d/utmpd
349 %attr(755,root,root) %{_sbindir}/utmpd
350
351 %files static
352 %defattr(644,root,root,755)
353 %{_libdir}/lib*.a
This page took 0.26213 seconds and 3 git commands to generate.