-# TODO:
-# - finish and test it
-#
Summary: Utilities to manage the passwd and shadow user information
Summary(pl): Narzêdzia do zarz±dzania informacjami o u¿ytkownikach z passwd i shadow
Name: pwdutils
-Version: 2.5.93
-Release: 2
+Version: 2.5.97
+Release: 1
License: GPL
Group: Applications/System
Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
-# Source0-md5: 2886ac0bd345f1525121c5f8c840fd8b
+# Source0-md5: e221330372be7931bd80542082bafe4b
Source1: %{name}.useradd
Source2: %{name}.rpasswdd.init
Source3: %{name}.login.defs
BuildRequires: openldap-devel
BuildRequires: openssl-devel
BuildRequires: pam-devel
-Obsoletes: shadow
-Obsoletes: shadow-extras
+BuildRequires: sed >= 4.0
Provides: shadow = 2:%{version}-%{release}
Provides: shadow-extras = 2:%{version}-%{release}
+Obsoletes: shadow
+Obsoletes: shadow-extras
+Conflicts: util-linux < 2.12-10
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/ldconfig
if [ ! -f /etc/shadow ]; then
%{_sbindir}/pwconv
fi
-%postun -p /sbin/ldconfig
-
%post -n rpasswdd
/sbin/chkconfig --add rpasswdd
if [ -f /var/lock/subsys/rpasswdd ]; then
%attr(4755,root,root) %{_bindir}/chsh
%attr(4755,root,root) %{_bindir}/expiry
%attr(4755,root,root) %{_bindir}/gpasswd
+%attr(755,root,root) %{_bindir}/newgrp
%attr(4755,root,root) %{_bindir}/passwd
%attr(755,root,root) %{_bindir}/rpasswd
%attr(755,root,root) %{_sbindir}/chpasswd
%attr(755,root,root) %{_sbindir}/vipw
%{_mandir}/man?/*
%exclude %{_mandir}/man8/rpasswdd*
-%exclude %{_mandir}/man1/newgrp*
%files -n rpasswdd
%defattr(644,root,root,755)