Summary(fr): GNU libc
Summary(pl): GNU libc
Summary(tr): GNU libc
-Name: glibc
-Version: 2.1
-Release: 8
+name: glibc
+Version: 2.1.1
+Release: 6
Copyright: LGPL
Group: Libraries
Group(pl): Biblioteki
Source2: http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-%{version}.tar.gz
Source3: utmpd.init
Source4: nscd.init
+Source5: utmpd.sysconfig
+Source6: nscd.sysconfig
+Source7: nscd.logrotate
Patch0: glibc-info.patch
+Patch1: glibc-paths.patch
+Patch2: glibc-versions.awk_fix.patch
+Patch3: glibc-pld.patch
+Patch4: glibc-getaddrinfo.patch
+Patch5: glibc-gcc-2.95.patch
URL: http://www.gnu.org/software/libc/
+BuildRequires: perl
Provides: ld.so.2
Obsoletes: %{name}-profile
Obsoletes: %{name}-debug
BuildRoot: /tmp/%{name}-%{version}-root
%description
-Contains the standard libraries that are used by multiple programs on
-the system. In order to save disk space and memory, as well as to
-ease upgrades, common system code is kept in one place and shared between
-programs. This package contains the most important sets of shared libraries,
-the standard C library and the standard math library. Without these, a
-Linux system will not function. It also contains national language (locale)
-support and timezone databases.
+Contains the standard libraries that are used by multiple programs on the
+system. In order to save disk space and memory, as well as to ease upgrades,
+common system code is kept in one place and shared between programs. This
+package contains the most important sets of shared libraries, the standard C
+library and the standard math library. Without these, a Linux system will
+not function. It also contains national language (locale) support and
+timezone databases.
%description -l de
Enthält die Standard-Libraries, die von verschiedenen Programmen im System
Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi veri tabaný
da bu pakette yer alýr.
-%package devel
+%package devel
Summary: Additional libraries required to compile
Summary(de): Weitere Libraries zum Kompilieren
Summary(fr): Librairies supplémentaires nécessaires à la compilation.
C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
+%package -n nscd
+Summary: Name Service Caching Daemon
+Summary(pl): Name Service Caching Daemon
+Group: Networking/Daemons
+Group(pl): Sieciowe/Serwery
+Prereq: /sbin/chkconfig
+
+%description -n nscd
+nscd caches name service lookups; it can dramatically improve performance
+with NIS+, and may help with DNS as well.
+
+You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
+support. nscd happens to hit these bugs particularly hard.
+
+%description -n nscd -l pl
+nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie
+poprawiæ szybko¶æ dzia³ania NIS+.
+
+Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
+po stronie j±dra w ods³udze w±tków.
+
+%package -n utmpd
+Summary: utmp and utmpx synchronizer for libc5 applications.
+Summary(pl): Synchrnnizuje zapis do plików utmp i utmpx.
+Group: Daemons
+Group(pl): Serwery
+Prereq: /sbin/chkconfig
+
+%description -n utmpd
+utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
+program with utmp access.
+
+%description -n utmpd -l pl
+utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików
+/var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
+ze starszych programów (bazuj±cych na libc5).
+
+%package static
+Summary: Static libraries
+Summary(pl): Biblioteki statyczne
+Group: Development/Libraries
+Group(pl): Programowanie/Biblioteki
+Requires: %{name}-devel = %{version}
+
+%description static
+GNU libc-2.1 Static libraries
+
+%description -l pl static
+GNU libc-2.1 Static libraries
+
%prep
-%setup -q -a 1 -a 2
-%patch -p1
+%setup -q -a 1 -a 2
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%build
-install -d sunrpc/cpp; ln -s /lib/cpp sunrpc/cpp/cpp
-CFLAGS="$RPM_OPT_FLAGS -pipe" \
-%ifarch sparc sparc64
-sparc32 \
-%endif
-./configure \
+%configure \
--enable-add-ons=crypt,linuxthreads \
--disable-profile \
- --prefix=/usr \
--disable-omitfp \
- --enable-add-ons=yes \
- $RPM_ARCH-linux
-make
+ --infodir=%{_infodir} \
+ --mandir=%{_mandir}
+make
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,usr/man/man3,var/db}
+install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
+
+make install \
+ install_root=$RPM_BUILD_ROOT \
+ infodir=%{_infodir} \
+ mandir=%{_mandir}
-make install_root=$RPM_BUILD_ROOT install
-make install_root=$RPM_BUILD_ROOT install-locales -C localedata
+make install-locales -C localedata \
+ install_root=$RPM_BUILD_ROOT
make -C linuxthreads/man
-install linuxthreads/man/*.3thr $RPM_BUILD_ROOT/usr/man/man3
+install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
-rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo/{localtime,posixtime,posixrules}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
-ln -sf ../../../etc/localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/localtime
-ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixtime
-ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixrules
-ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT/usr/lib/libbsd.a
+ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
+ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
+ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
+ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
rm -f $RPM_BUILD_ROOT/etc/localtime
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/nsswitch.conf
-
-install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
-
+install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
+install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nscd
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/utmpd
+install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
install nscd/nscd.conf $RPM_BUILD_ROOT/etc
install nss/nsswitch.conf $RPM_BUILD_ROOT/etc
-install nss/db-Makefile $RPM_BUILD_ROOT/var/db
+install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
+:> $RPM_BUILD_ROOT/var/log/nscd
cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
#!/bin/sh
-/usr/bin/make -f /var/db/db-Makefile
+/usr/bin/make -sC /var/db/
EOF
-ln -sf create-db $RPM_BUILD_ROOT/usr/bin/update-db
+ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
rm -rf documentation
install -d documentation
cp linuxthreads/ChangeLog documentation/ChangeLog.threads
cp linuxthreads/Changes documentation/Changes.threads
cp linuxthreads/README documentation/README.threads
-cp login/README.utmpd documentation/
cp crypt/README documentation/README.crypt
cp ChangeLog ChangeLog.8 documentation
+gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
+ $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
+ documentation/* login/README.utmpd
-strip $RPM_BUILD_ROOT/{sbin/*,usr/{bin/*,sbin/*}} || :
-
-
-gzip -9fn $RPM_BUILD_ROOT/usr/{man/man*/*,info/libc*} \
- README NEWS FAQ BUGS NOTES PROJECTS \
- documentation/*
+strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
+strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
+ $RPM_BUILD_ROOT/usr/lib/gconv/*.so
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel
-/sbin/install-info /usr/info/libc.info.gz /etc/info-dir
+/sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
%preun devel
if [ "$1" = 0 ]; then
- /sbin/install-info --delete /usr/info/libc.info.gz /etc/info-dir
+ /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
+fi
+
+%post -n nscd
+/sbin/chkconfig --add nscd
+touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
+if [ -f /var/lock/subsys/nscd ]; then
+ /etc/rc.d/init.d/nscd restart 1>&2
+else
+ echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
+fi
+
+%preun -n nscd
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del nscd
+ /etc/rc.d/init.d/nscd stop 1>&2
+fi
+
+%post -n utmpd
+/sbin/chkconfig --add utmpd
+if [ -f /var/lock/subsys/utmpd ]; then
+ /etc/rc.d/init.d/utmpd restart 1>&2
+else
+ echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
+fi
+
+%preun -n utmpd
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del utmpd
+ /etc/rc.d/init.d/utmpd stop 1>&2
fi
%clean
%defattr(644,root,root,755)
%doc {README,NEWS,FAQ,BUGS}.gz
-%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
%config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
%config /etc/rpc
-%attr(754,root,root) /etc/rc.d/init.d/*
-
%attr(755,root,root) /sbin/*
-%attr(755,root,root) /usr/bin/*
-%attr(755,root,root) /usr/sbin/*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/rpcinfo
+%attr(755,root,root) %{_sbindir}/zdump
+%attr(755,root,root) %{_sbindir}/zic
%attr(755,root,root) /lib/ld-*
%attr(755,root,root) /lib/lib*
-%dir /usr/lib/gconv
-/usr/lib/gconv/gconv-modules
+%dir %{_libdir}/gconv
+%{_libdir}/gconv/gconv-modules
-/usr/share/i18n
-/usr/share/locale
-/usr/share/zoneinfo
+%{_datadir}/i18n
+%{_datadir}/locale
+%{_datadir}/zoneinfo
-%dir /var/db
-%config /var/db/db-*
+%config /var/db/Makefile
%files devel
%defattr(644,root,root,755)
%doc documentation/* {NOTES,PROJECTS}.gz
-/usr/include/*.h
-/usr/include/arpa
-/usr/include/bits
-/usr/include/db1
-/usr/include/gnu
-/usr/include/net
-/usr/include/netash
-/usr/include/netatalk
-/usr/include/netax25
-/usr/include/neteconet
-/usr/include/netinet
-/usr/include/netipx
-/usr/include/netpacket
-/usr/include/netrom
-/usr/include/netrose
-/usr/include/nfs
-/usr/include/protocols
-/usr/include/rpc
-/usr/include/rpcsvc
-/usr/include/scsi
-/usr/include/sys
-
-/usr/info/libc.inf*.gz
-
-%attr(755,root,root) /usr/lib/lib*.so
-/usr/lib/*.o
-/usr/lib/lib*.a
-
-%attr(755,root,root) /usr/lib/gconv/*.so
-/usr/man/man3/*
-
-%changelog
-* Mon Mar 15 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.1-7]
-- on sparc{64} ./configure must be runed throw sparc32 wrapper.
-
-* Sun Mar 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.1-6]
-- updated glibc-crypt to version-2.1
-
-* Sat Mar 06 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.1-5]
-- removed striping of shared libraries -- no debug info in this libs,
-- fixed permission of /var/db directory -- should be 755...
-
-* Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [2.1-4]
-- removed man group from man pages,
-- standarized {un}registering info pages (added libc-info.patch),
-- changed base source url to ftp://sourceware.cygnus.com/pub/glibc/,
-- changed URL,
-- siplifications in %files devel,
-- Group in devel changed to Development/Libraries,
-- removed some %doc (INSTALL and outdated ChangeLog),
-- removed %config and %verify rules fromn /etc/rc.d/init.d/* files,
-- changed permission to 754 on /etc/rc.d/init.d/*,
-- added striping shared libraries.
-
-* Sun Feb 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.1-3d]
-- updated to stable version,
-- fixed stripping ELF binaries,
-- removed obsoletes /usr/include/{asm,linux}
-
-* Fri Jan 29 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.0.111-1d]
-- updated to latest snapshoot,
-- added utmpd.init, (don't run this piece of ... by default)
-- added /var/db, (don't generate a data base by default)
-- removed unused /usr/libexec/pt_ch*
-- other changes.
-
-* Sat Nov 07 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.0.100-1d]
-- updated to latest snapshoot,
-- added install-locales,
-- minor changes.
-
-* Tue Oct 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.0.99-1d]
-- updated to 2.0.99,
-- added Obsoletes: glibc-debug, glibc-profile
-
-* Thu Aug 06 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
- [2.0.96-1d]
-- updated to 2.0.96,
-- translation modified for pl,
- (follow the suggestions Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>)
-- major changes.
- (rewrote spec file -- follow the PLD policy)
-
-* Wed Jul 16 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
- [2.0.94-2d]
-- added nscd.init and config
-- fixed permision of pt_chown to 4711
-- added %defattr
-- moved linux include links from kernel-headers to glibc-devel
-
-* Tue Jun 2 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
- [2.0.94-1d]
-- updated to glibc 2.0.94
-
-* Sun May 24 1998 Marcin Korzonek <mkorz@euler.mat.univ.szczecin.pl>
- [2.0.93-1d]
-- updated for glibc 2.0.93
-- build prepare for PLD-1.1 Tornado
-- removed glibc-debug and glibc-profile packages generation (it took too
- long to compile the full featured version on my home linux box ;)
-- compilation is now performed in compile directory as advised
- in Glibc HOWTO,
-- start at invalid RH spec file.
-
-
- [2.1.1-1]
-- based on RH spec,
-- spec rewrited by PLD team,
- we start at GNU libc 2.0.92 one year ago ...
-- pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
+%{_includedir}/*.h
+%{_includedir}/arpa
+%{_includedir}/bits
+%{_includedir}/db1
+%{_includedir}/gnu
+%{_includedir}/net
+%{_includedir}/netash
+%{_includedir}/netatalk
+%{_includedir}/netax25
+%{_includedir}/neteconet
+%{_includedir}/netinet
+%{_includedir}/netipx
+%{_includedir}/netpacket
+%{_includedir}/netrom
+%{_includedir}/netrose
+%{_includedir}/nfs
+%{_includedir}/protocols
+%{_includedir}/rpc
+%{_includedir}/rpcsvc
+%{_includedir}/scsi
+%{_includedir}/sys
+
+%{_infodir}/libc.inf*.gz
+
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/*.o
+%attr(755,root,root) %{_libdir}/gconv/*.so
+
+%{_mandir}/man3/*
+
+%files -n nscd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
+%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
+%attr(755,root,root) /etc/rc.d/init.d/nscd
+%attr(755,root,root) %{_sbindir}/nscd
+%attr(640,root,root) /etc/logrotate.d/nscd
+%attr(640,root,root) %ghost /var/log/nscd
+
+%files -n utmpd
+%defattr(644,root,root,755)
+%doc login/README.utmpd.gz
+%attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
+%attr(755,root,root) /etc/rc.d/init.d/utmpd
+%attr(755,root,root) %{_sbindir}/utmpd
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a