]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- added Requires: rc-scripts to utmpd and nscd
[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.2
8 Release:        9
9 Copyright:      LGPL
10 Group:          Libraries
11 Group(pl):      Biblioteki
12 Source0:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.bz2
13 Source1:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.bz2
14 Source2:        http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-2.1.1.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 BuildRequires:  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:          Networking/Daemons
120 Group(pl):      Sieciowe/Serwery
121 Prereq:         /sbin/chkconfig
122 Requires:       rc-scripts
123
124 %description -n nscd
125 nscd caches name service lookups; it can dramatically improve performance
126 with NIS+, and may help with DNS as well.
127
128 You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
129 support. nscd happens to hit these bugs particularly hard.
130
131 %description -n nscd -l pl
132 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie 
133 poprawiæ szybko¶æ dzia³ania NIS+.
134
135 Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
136 po stronie j±dra w ods³udze w±tków.
137
138 %package -n utmpd
139 Summary:        utmp and utmpx synchronizer for libc5 applications.
140 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
141 Group:          Daemons
142 Group(pl):      Serwery
143 Prereq:         /sbin/chkconfig
144 Requires:       rc-scripts
145
146 %description -n utmpd
147 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based 
148 program with utmp access.
149
150 %description -n utmpd -l pl
151 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików 
152 /var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
153 ze starszych programów (bazuj±cych na libc5).
154
155 %package static
156 Summary:        Static libraries
157 Summary(pl):    Biblioteki statyczne 
158 Group:          Development/Libraries
159 Group(pl):      Programowanie/Biblioteki
160 Requires:       %{name}-devel = %{version}
161
162 %description static
163 GNU libc-2.1 Static libraries
164
165 %description -l pl static
166 GNU libc-2.1 Static libraries
167
168 %prep 
169 %setup  -q -a 1 -a 2
170 %patch0 -p1
171 %patch1 -p1
172 %patch2 -p1
173 %patch3 -p1
174 %patch4 -p1
175
176 %build
177 %configure \
178         --enable-add-ons=crypt,linuxthreads \
179         --disable-profile \
180         --disable-omitfp \
181         --mandir=%{_mandir}
182 make   
183
184 %install
185 rm -rf $RPM_BUILD_ROOT
186 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
187
188 make install \
189         install_root=$RPM_BUILD_ROOT \
190         infodir=%{_infodir} \
191         mandir=%{_mandir}
192
193 make install-locales -C localedata \
194         install_root=$RPM_BUILD_ROOT
195
196 make -C linuxthreads/man
197 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
198
199 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
200
201 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
202 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
203 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
204 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
205
206 rm -f $RPM_BUILD_ROOT/etc/localtime
207
208 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
209 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
210 install %{SOURCE6}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
211 install %{SOURCE5}              $RPM_BUILD_ROOT/etc/sysconfig/utmpd
212 install %{SOURCE7}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
213 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
214 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
215
216 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
217 :> $RPM_BUILD_ROOT/var/log/nscd
218
219 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
220 #!/bin/sh
221 /usr/bin/make -sC /var/db/
222 EOF
223
224 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db 
225
226 rm -rf documentation
227 install -d documentation
228
229 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
230 cp linuxthreads/Changes documentation/Changes.threads
231 cp linuxthreads/README documentation/README.threads
232 cp crypt/README documentation/README.crypt
233
234 cp ChangeLog ChangeLog.8 documentation
235
236 gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
237         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
238         documentation/* login/README.utmpd
239
240 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
241 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
242         $RPM_BUILD_ROOT/usr/lib/gconv/*.so
243
244 %post   -p /sbin/ldconfig
245 %postun -p /sbin/ldconfig
246
247 %post devel
248 /sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
249
250 %preun devel
251 if [ "$1" = 0 ]; then
252         /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
253 fi
254
255 %post -n nscd
256 /sbin/chkconfig --add nscd
257 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
258 if [ -f /var/lock/subsys/nscd ]; then
259         /etc/rc.d/init.d/nscd restart 1>&2
260 else
261         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
262 fi
263
264 %preun -n nscd
265 if [ "$1" = "0" ]; then
266         /sbin/chkconfig --del nscd
267         /etc/rc.d/init.d/nscd stop 1>&2
268 fi
269
270 %post -n utmpd
271 /sbin/chkconfig --add utmpd
272 if [ -f /var/lock/subsys/utmpd ]; then
273         /etc/rc.d/init.d/utmpd restart 1>&2
274 else
275         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
276 fi
277
278 %preun -n utmpd
279 if [ "$1" = "0" ]; then
280         /sbin/chkconfig --del utmpd
281         /etc/rc.d/init.d/utmpd stop 1>&2
282 fi
283
284 %clean
285 rm -rf $RPM_BUILD_ROOT
286
287 %files
288 %defattr(644,root,root,755)
289 %doc {README,NEWS,FAQ,BUGS}.gz
290
291 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
292 %config /etc/rpc
293
294 %attr(755,root,root) /sbin/*
295 %attr(755,root,root) %{_bindir}/*
296 %attr(755,root,root) %{_sbindir}/rpcinfo
297 %attr(755,root,root) %{_sbindir}/zdump
298 %attr(755,root,root) %{_sbindir}/zic
299
300 %attr(755,root,root) /lib/ld-*
301 %attr(755,root,root) /lib/lib*
302
303 %dir %{_libdir}/gconv
304 %{_libdir}/gconv/gconv-modules
305
306 %{_datadir}/i18n
307 %{_datadir}/locale
308 %{_datadir}/zoneinfo
309
310 %config /var/db/Makefile
311
312 %files devel
313 %defattr(644,root,root,755)
314 %doc documentation/* {NOTES,PROJECTS}.gz
315
316 %{_includedir}/*.h
317 %{_includedir}/arpa
318 %{_includedir}/bits
319 %{_includedir}/db1
320 %{_includedir}/gnu
321 %{_includedir}/net
322 %{_includedir}/netash
323 %{_includedir}/netatalk
324 %{_includedir}/netax25
325 %{_includedir}/neteconet
326 %{_includedir}/netinet
327 %{_includedir}/netipx
328 %{_includedir}/netpacket
329 %{_includedir}/netrom
330 %{_includedir}/netrose
331 %{_includedir}/nfs
332 %{_includedir}/protocols
333 %{_includedir}/rpc
334 %{_includedir}/rpcsvc
335 %{_includedir}/scsi
336 %{_includedir}/sys
337
338 %{_infodir}/libc.inf*.gz
339
340 %attr(755,root,root) %{_libdir}/lib*.so
341 %attr(755,root,root) %{_libdir}/*.o
342 %attr(755,root,root) %{_libdir}/gconv/*.so
343
344 %{_mandir}/man3/*
345
346 %files -n nscd
347 %defattr(644,root,root,755)
348 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
349 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
350 %attr(755,root,root) /etc/rc.d/init.d/nscd
351 %attr(755,root,root) %{_sbindir}/nscd
352 %attr(640,root,root) /etc/logrotate.d/nscd
353 %attr(640,root,root) %ghost /var/log/nscd
354
355 %files -n utmpd
356 %defattr(644,root,root,755)
357 %doc login/README.utmpd.gz
358 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
359 %attr(755,root,root) /etc/rc.d/init.d/utmpd
360 %attr(755,root,root) %{_sbindir}/utmpd
361
362 %files static
363 %defattr(644,root,root,755)
364 %{_libdir}/lib*.a
This page took 0.118 seconds and 4 git commands to generate.