File pam_login.spec of Package pam_login

#
# spec file for package pwdutils (Version 3.1.4)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           pam_login
BuildRequires:  audit-devel gettext-devel libnscd-devel pam-devel
URL:            http://www.thkukuk.de/pam/pwdutils/
License:        GPL v2 only
Group:          System/Base
Autoreqprov:    on
Version:        3.35
Release:        18
Summary:        Utilities to Manage User and Group Accounts
Source:         pam_login-%{version}.tar.bz2
Patch:          bugzilla-148065.patch
Patch1:         pam_login-3.31-suppress_hostname.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package includes the necessary programs for logging in to a system
on the console, converting plain password files to the shadow password
format, and managing user and group accounts in both local files and in
an LDAP database.


%prep
%setup -q
%patch -p0
%patch1 -p1

%build
autoreconf
CFLAGS="$RPM_OPT_FLAGS" ./configure
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/etc/login.defs
#
# Find all translations
#
%{find_lang} login pam_login.lang

%clean
rm -rf $RPM_BUILD_ROOT

%files -f pam_login.lang
%defattr(-,root,root,755)
%config /etc/pam.d/login
/bin/login
/usr/sbin/faillog
/usr/bin/lastlog
%doc %{_mandir}/man?/*

%changelog

openSUSE Build Service is sponsored by