]> git.pld-linux.org Git - packages/pwdutils.git/blobdiff - pwdutils.spec
- updated to 2.6 (pam_rpasswd needs subpackage)
[packages/pwdutils.git] / pwdutils.spec
index 3e019c0ffb64a44c5efbde267b2f0a0578948156..e2c044605f6ebf0ab5463f4d420b839eddef52ef 100644 (file)
@@ -1,15 +1,12 @@
-# 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.4
-Release:       2
+Version:       2.6
+Release:       1
 License:       GPL
 Group:         Applications/System
 Source0:       ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
-# Source0-md5: 7635c09b005f0e9447df8b42b3942187
+# Source0-md5: 8567328b1ad7609f8851eec57658f1a0
 Source1:       %{name}.useradd
 Source2:       %{name}.rpasswdd.init
 Source3:       %{name}.login.defs
@@ -18,17 +15,23 @@ Source5:    chfn.pamd
 Source6:       chsh.pamd
 Source7:       passwd.pamd
 Source8:       useradd.pamd
+Source9:       userdb.pamd
+URL:           http://www.thkukuk.de/pam/pwdutils/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: gcc >= 5:3.2
 BuildRequires: gettext-devel
 BuildRequires: libselinux-devel
 BuildRequires: openldap-devel
 BuildRequires: openssl-devel
+BuildRequires: openslp-devel
 BuildRequires: pam-devel
+BuildRequires: sed >= 4.0
+Provides:      shadow = 2:%{version}-%{release}
+Provides:      shadow-extras = 2:%{version}-%{release}
 Obsoletes:     shadow
 Obsoletes:     shadow-extras
-Provides:      shadow
-Provides:      shadow-extras
+Conflicts:     util-linux < 2.12-10
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -74,13 +77,19 @@ by
 %setup -q
 
 %build
+sed -i -e 's#EXTRA_CFLAGS=.*#EXTRA_CFLAGS="-W -Wall"#g' configure.in
 %{__gettextize}
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
+       --enable-pam_rpasswd \
        --enable-selinux \
+       --enable-slp \
+       --enable-ssl \
+       --enable-ldap \
+       --enable-nls \
        --disable-rpath
 %{__make}
 
@@ -101,6 +110,7 @@ install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/chfn
 install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/chsh
 install %{SOURCE7} $RPM_BUILD_ROOT/etc/pam.d/passwd
 install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
+install %{SOURCE9} $RPM_BUILD_ROOT/etc/pam.d/shadow
 
 :> $RPM_BUILD_ROOT/etc/shadow
 
@@ -110,13 +120,10 @@ install %{SOURCE8} $RPM_BUILD_ROOT/etc/pam.d/useradd
 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
@@ -146,6 +153,7 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/chsh
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/passwd
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/useradd
+%attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/shadow
 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs
 %dir /etc/skel
 %attr(755,root,root) %{_bindir}/chage
@@ -153,12 +161,19 @@ fi
 %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}/groupadd
 %attr(755,root,root) %{_sbindir}/groupdel
 %attr(755,root,root) %{_sbindir}/groupmod
+%attr(755,root,root) %{_sbindir}/grpconv
+%attr(755,root,root) %{_sbindir}/grpck
+%attr(755,root,root) %{_sbindir}/grpunconv
+%attr(755,root,root) %{_sbindir}/pwconv
+%attr(755,root,root) %{_sbindir}/pwck
+%attr(755,root,root) %{_sbindir}/pwunconv
 %attr(755,root,root) %{_sbindir}/rpasswdd
 %attr(755,root,root) %{_sbindir}/useradd
 %attr(755,root,root) %{_sbindir}/userdel
@@ -173,4 +188,5 @@ fi
 %attr(755,root,root) %{_sbindir}/rpasswdd
 %attr(754,root,root) /etc/rc.d/init.d/rpasswdd
 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/rpasswd
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/rpasswd.conf
 %{_mandir}/man8/rpasswdd*
This page took 0.316188 seconds and 4 git commands to generate.