+# TODO: review default login.defs
#
# Conditional build:
-%bcond_without ldap # build without LDAP support
+%bcond_without ldap # build without LDAP support
%bcond_without selinux # build without SELinux support
#
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.6.94
-Release: 0.1
+Version: 3.0
+Release: 2
License: GPL v2
Group: Applications/System
Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/%{name}-%{version}.tar.bz2
-# Source0-md5: e28822a9c81c381aceb47879694a6a99
+# Source0-md5: be954620dfb8f2b36b398d7d4742d205
Source1: %{name}.useradd
Source2: %{name}.rpasswdd.init
Source3: %{name}.login.defs
Source7: passwd.pamd
Source8: useradd.pamd
Source9: userdb.pamd
-Source10: %{name}-pl.po
Patch0: %{name}-f-option.patch
+Patch1: %{name}-pl.po-update.patch
+Patch2: %{name}-no_bash.patch
+Patch3: %{name}-silent_crontab.patch
URL: http://www.thkukuk.de/pam/pwdutils/
BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: automake >= 1:1.7
BuildRequires: gcc >= 5:3.2
BuildRequires: gettext-devel
BuildRequires: libnscd-devel
%{?with_selinux:BuildRequires: libselinux-devel}
+BuildRequires: libtool
%{?with_ldap:BuildRequires: openldap-devel}
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: openslp-devel
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
-cp %{SOURCE10} po/pl.po
-sed -i -e 's/\(ALL_LINGUAS\)="de"/\1="de pl"/' configure.in
rm -f po/stamp-po
-sed -i -e 's#EXTRA_CFLAGS=.*#EXTRA_CFLAGS="-W -Wall"#g' configure.in
+sed -i -e 's/-Werror //' configure.in
%build
%{__gettextize}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/*
%attr(750,root,root) %dir %{_sysconfdir}/%{name}
%attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.local
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/logging
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chage
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chfn
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/chsh
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/passwd
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/useradd
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/shadow
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/login.defs
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/login.defs
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/rpasswd.conf
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/chfn.allow
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/chsh.allow