]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
added new crypt for glibc
[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
8 Release:        6
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 Patch0:         glibc-info.patch
20 URL:            http://www.gnu.org/software/libc/
21 Provides:       ld.so.2
22 Obsoletes:      %{name}-profile
23 Obsoletes:      %{name}-debug
24 Autoreq:        false
25 BuildRoot:      /tmp/%{name}-%{version}-root
26
27 %description
28 Contains the standard libraries that are used by multiple programs on
29 the system. In order to save disk space and memory, as well as to
30 ease upgrades, common system code is kept in one place and shared between
31 programs. This package contains the most important sets of shared libraries,
32 the standard C library and the standard math library. Without these, a
33 Linux system will not function. It also contains national language (locale)
34 support and timezone databases.
35
36 %description -l de
37 Enthält die Standard-Libraries, die von verschiedenen Programmen im System
38 benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen und zur
39 Vereinfachung von Upgrades ist der gemeinsame Systemcode an einer einzigen
40 Stelle gespeichert und wird von den Programmen gemeinsam genutzt. Dieses
41 Paket enthält die wichtigsten Sets der shared Libraries, die
42 Standard-C-Library und die Standard-Math-Library, ohne die das Linux-System
43 nicht funktioniert. Ferner enthält es den Support für die verschiedenen
44 Sprachgregionen (locale) und die Zeitzonen-Datenbank.
45
46 %description -l fr
47 Contient les bibliothèques standards utilisées par de nombreux programmes
48 du système. Afin d'économiser l'espace disque et mémoire, et de faciliter
49 les mises à jour, le code commun au système est mis à un endroit et partagé
50 entre les programmes. Ce paquetage contient les bibliothèques partagées les
51 plus importantes, la bibliothèque standard du C et la bibliothèque
52 mathématique standard. Sans celles-ci, un système Linux ne peut fonctionner.
53 Il contient aussi la gestion des langues nationales (locales) et les bases
54 de données des zones horaires.
55
56 %description -l pl
57 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne programy
58 w Twoim systemie. U¿ywanie przez programy bibliotek z tego pakietu oszczêdza
59 miejsce na dysku i pamiêæ. Wiekszo¶æ kodu systemowego jest usytuowane w
60 jednym miejscu i dzielone miêdzy wieloma programami. Pakiet ten zawiera
61 bardzo wa¿ny zbiór bibliotek standardowych wspó³dzielonych (dynamicznych)
62 bibliotek C i matematycznych. Bez glibc system Linux nie jest w stanie
63 funkcjonowaæ. Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla
64 wielu jêzyków (locale) oraz definicje stref czasowych.
65
66 %description -l tr
67 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir. Disk
68 alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme iþlemlerini
69 kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde tutulup programlar
70 arasýnda paylaþtýrýlýr. Bu paket en önemli ortak kitaplýklarý, standart
71 C kitaplýðýný ve standart matematik kitaplýðýný içerir. Bu kitaplýklar olmadan
72 Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi veri tabaný
73 da bu pakette yer alýr.
74
75 %package        devel
76 Summary:        Additional libraries required to compile
77 Summary(de):    Weitere Libraries zum Kompilieren
78 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
79 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
80 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
81 Group:          Development/Libraries
82 Group(pl):      Programowanie/Biblioteki
83 Prereq:         /sbin/install-info
84 Requires:       %{name} = %{version}
85
86 %description devel
87 To develop programs which use the standard C libraries (which nearly all
88 programs do), the system needs to have these standard header files and object
89 files available for creating the executables.
90
91 %description -l de devel
92 Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
93 (also fast alle), benötigt das System diese Standard-Header- und Objektdateien
94 zum Erstellen der ausführbaren Programme.
95
96 %description -l fr devel
97 Pour développer des programmes utilisant les bibliothèques standard du C
98 (ce que presque tous les programmes font), le système doit posséder ces
99 fichiers en-têtes et objets standards pour créer les exécutables.
100
101 %description -l pl devel
102 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów korzystaj±cych
103 ze standardowej biblioteki C. Znajduj± siê tutaj pliki nag³ówkowe oraz pliki 
104 objektowe, niezbêdne do kompilacji programów wykonywalnych i innych bibliotek.
105
106 %description -l tr devel
107 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
108 geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
109
110 %prep 
111 %setup -q -a 1 -a 2
112 %patch -p1
113
114 %build
115 install -d sunrpc/cpp; ln -s /lib/cpp sunrpc/cpp/cpp 
116 CFLAGS="$RPM_OPT_FLAGS -pipe" \
117 ./configure \
118         --enable-add-ons=crypt,linuxthreads \
119         --disable-profile \
120         --prefix=/usr \
121         --disable-omitfp
122 make  
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,usr/man/man3,var/db}
127
128 make install_root=$RPM_BUILD_ROOT install
129 make install_root=$RPM_BUILD_ROOT install-locales -C localedata
130
131 make -C linuxthreads/man
132 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT/usr/man/man3
133
134 rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo/{localtime,posixtime,posixrules}
135
136 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/localtime
137 ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixtime
138 ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixrules
139 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT/usr/lib/libbsd.a
140
141 rm -f $RPM_BUILD_ROOT/etc/localtime
142
143 install %{SOURCE3} $RPM_BUILD_ROOT/etc/nsswitch.conf
144
145 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
146 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
147
148 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
149 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
150
151 install nss/db-Makefile $RPM_BUILD_ROOT/var/db
152
153 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
154 #!/bin/sh
155 /usr/bin/make -f /var/db/db-Makefile
156 EOF
157
158 ln -sf create-db $RPM_BUILD_ROOT/usr/bin/update-db 
159
160 rm -rf documentation
161 install -d documentation
162
163 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
164 cp linuxthreads/Changes documentation/Changes.threads
165 cp linuxthreads/README documentation/README.threads
166 cp login/README.utmpd documentation/
167 cp crypt/README documentation/README.crypt
168
169 cp ChangeLog ChangeLog.8 documentation
170
171 bzip2 -9 documentation/*
172
173 strip $RPM_BUILD_ROOT/{sbin/*,usr/{bin/*,sbin/*}} || :
174
175 bzip2 -9 README NEWS FAQ BUGS NOTES PROJECTS
176
177 gzip -9fn $RPM_BUILD_ROOT/usr/{man/man*/*,info/libc*}
178
179 %post   -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
181
182 %post devel
183 /sbin/install-info /usr/info/libc.info.gz /etc/info-dir
184
185 %preun devel
186 if [ "$1" = 0 ]; then
187         /sbin/install-info --delete /usr/info/libc.info.gz /etc/info-dir
188 fi
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %files
194 %defattr(644,root,root,755)
195 %doc {README,NEWS,FAQ,BUGS}.bz2
196
197 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
198 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
199 %config /etc/rpc
200
201 %attr(750,root,root) /etc/rc.d/init.d/*
202
203 %attr(755,root,root) /sbin/*
204 %attr(755,root,root) /usr/bin/*
205 %attr(755,root,root) /usr/sbin/*
206
207 %attr(755,root,root) /lib/ld-*
208 %attr(755,root,root) /lib/lib*
209
210 %dir /usr/lib/gconv
211 /usr/lib/gconv/gconv-modules
212
213 /usr/share/i18n
214 /usr/share/locale
215 /usr/share/zoneinfo
216
217 %dir /var/db
218 %config /var/db/db-*
219
220 %files devel
221 %defattr(644,root,root,755)
222 %doc documentation/* {NOTES,PROJECTS}.bz2
223
224 /usr/include/*.h
225 /usr/include/arpa
226 /usr/include/bits
227 /usr/include/db1
228 /usr/include/gnu
229 /usr/include/net
230 /usr/include/netash
231 /usr/include/netatalk
232 /usr/include/netax25
233 /usr/include/neteconet
234 /usr/include/netinet
235 /usr/include/netipx
236 /usr/include/netpacket
237 /usr/include/netrom
238 /usr/include/netrose
239 /usr/include/nfs
240 /usr/include/protocols
241 /usr/include/rpc
242 /usr/include/rpcsvc
243 /usr/include/scsi
244 /usr/include/sys
245
246 /usr/info/libc.inf*.gz
247
248 %attr(755,root,root) /usr/lib/lib*.so
249 /usr/lib/*.o
250 /usr/lib/lib*.a
251
252 %attr(755,root,root) /usr/lib/gconv/*.so
253 /usr/man/man3/*
254
255 %changelog
256 * Sun Mar 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
257   [2.1-6]
258 - updated glibc-crypt to version-2.1
259
260 * Sat Mar 06 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
261   [2.1-5]
262 - removed striping of shared libraries -- no debug info in this libs,
263 - fixed /etc/rc.d/init.d/* -- Tomek, never again 754 on start scripts... 
264 - fixed permission of /var/db directory -- should be 755...
265
266 * Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
267   [2.1-4]
268 - removed man group from man pages,
269 - standarized {un}registering info pages (added libc-info.patch),
270 - changed base source url to ftp://sourceware.cygnus.com/pub/glibc/,
271 - changed URL,
272 - siplifications in %files devel,
273 - Group in devel changed to Development/Libraries,
274 - removed some %doc (INSTALL and outdated ChangeLog),
275 - removed %config and %verify rules fromn /etc/rc.d/init.d/* files,
276 - changed permission to 754 on /etc/rc.d/init.d/*,
277 - added striping shared libraries.
278
279 * Sun Feb 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
280   [2.1-3d]
281 - updated to stable version,
282 - fixed stripping ELF binaries,
283 - removed obsoletes /usr/include/{asm,linux}
284
285 * Fri Jan 29 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
286   [2.0.111-1d]
287 - updated to latest snapshoot,
288 - added utmpd.init, (don't run this piece of ... by default)
289 - added /var/db, (don't generate a data base by default)
290 - removed unused /usr/libexec/pt_ch*
291 - other changes.
292
293 * Sat Nov 07 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
294   [2.0.100-1d]
295 - updated to latest snapshoot,
296 - added install-locales,
297 - minor changes.
298
299 * Tue Oct 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
300   [2.0.99-1d]
301 - updated to 2.0.99,
302 - added Obsoletes: glibc-debug, glibc-profile
303
304 * Thu Aug 06 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
305   [2.0.96-1d]
306 - updated to 2.0.96,
307 - translation modified for pl, 
308   (follow the suggestions Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>)
309 - major changes.
310       (rewrote spec file -- follow the PLD policy)
311
312 * Wed Jul 16 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
313   [2.0.94-2d]
314 - added nscd.init and config
315 - fixed permision of pt_chown to 4711 
316 - added %defattr
317 - moved linux include links from kernel-headers to glibc-devel
318
319 * Tue Jun 2 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
320   [2.0.94-1d]
321 - updated to glibc 2.0.94
322
323 * Sun May 24 1998 Marcin Korzonek <mkorz@euler.mat.univ.szczecin.pl>
324   [2.0.93-1d]
325 - updated for glibc 2.0.93
326 - build prepare for PLD-1.1 Tornado
327 - removed glibc-debug and glibc-profile packages generation (it took too
328   long to compile the full featured version on my home linux box ;)
329 - compilation is now performed in compile directory as advised 
330   in Glibc HOWTO,
331 - start at invalid RH spec file.  
332
333
334   [2.1.1-1]
335 - based on RH spec,
336 - spec rewrited by PLD team,
337   we start at GNU libc 2.0.92 one year ago ...
338 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
This page took 0.103484 seconds and 3 git commands to generate.