Summary(tr): GNU libc
name: glibc
Version: 2.1.1
-Release: 4
+Release: 6
Copyright: LGPL
Group: Libraries
Group(pl): Biblioteki
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
%package -n nscd
Summary: Name Service Caching Daemon
Summary(pl): Name Service Caching Daemon
-Group: Networnikng/Daemons
-Group: Sieciowe/Serwery
+Group: Networking/Daemons
+Group(pl): Sieciowe/Serwery
Prereq: /sbin/chkconfig
%description -n nscd
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%build
%configure \
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig},%{_mandir}/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 \
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%{_bindir}/update-db
documentation/* login/README.utmpd
strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
-strip strip--unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
+strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
$RPM_BUILD_ROOT/usr/lib/gconv/*.so
%post -p /sbin/ldconfig
%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 &>/dev/null
+ /etc/rc.d/init.d/nscd restart 1>&2
else
- echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon."
+ 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 &>/dev/null
+ /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 &>/dev/null
+ /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 &>/dev/null
+ /etc/rc.d/init.d/utmpd stop 1>&2
fi
%clean
%{_datadir}/locale
%{_datadir}/zoneinfo
-%config /var/db/db-*
+%config /var/db/Makefile
%files devel
%defattr(644,root,root,755)
%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)
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
-
-%changelog
-changes from devel and getaddrinfo.patch
-
-Revision 1.54 1999/07/12 23:05:57 kloczek
-- added using CVS keywords in %changelog (for automating them).
-
-- added stripping
- [2.1.1-3]
-- added stripping /usr/lib/gconv/*.so modules (it saves next ~300KB),
-- added glibc-versions.awk_fix.patch (fix using sort in
- scripts/versions.awk),
-- added stripping
-- permission on rc scripts changed to 754,
-- removed /var/db (it is in filesystem).
-
-* Wed Jun 02 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-- added static subpackage,
-- added {utmpd,nscd}.sysconfig,
-- fixed %doc && {utmpd,nscd}.init,
-- macro %configure in use ...
-
-* Wed May 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
- [2.1.1-2]
-- fixed utpmd.init,
-- added %post & %pre for utmpd subpackage.
-- macro %{_target_platform},
-- fixed %build,
-- minor changes.
-
-- pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>. [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>.