File login.spec of Package login
#
# spec file for package login (Version 3.37)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: login
BuildRequires: audit-devel gettext-devel libnscd-devel pam-devel
Url: http://www.thkukuk.de/pam/pam_login/
License: BSD 3-Clause; BSD 4-Clause
Group: System/Base
AutoReqProv: on
Version: 3.37
Release: 1
Summary: Login Program
Source: pam_login-%{version}.tar.bz2
Patch: bugzilla-148065.patch
Patch1: pam_login-3.31-suppress_hostname.patch
Patch2: pam_login-3.35-pts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Unix login program that uses pam for authentication.
%prep
%setup -q -n pam_login-%{version}
%patch -p0
%patch1 -p1
%patch2 -p0
%build
autoreconf
CFLAGS="$RPM_OPT_FLAGS" ./configure
make %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
# /etc/login.defs is also provided by the pwdutils package
rm -f $RPM_BUILD_ROOT/etc/login.defs
#
# Find all translations
#
%{find_lang} login
%clean
rm -rf $RPM_BUILD_ROOT
%files -f login.lang
%defattr(-,root,root,755)
%config /etc/pam.d/login
/bin/login
/usr/sbin/faillog
/usr/bin/lastlog
%doc %{_mandir}/man?/*
%changelog
* Fri Nov 21 2008 kukuk@suse.de
- Update to login 3.37:
- Update translations
- Merge pam.d/login patch
* Tue Oct 14 2008 kukuk@suse.de
- Fix patch for [bnc#374299]
* Wed Sep 03 2008 kukuk@suse.de
- Remove pam_resmgr from pam config file [bnc#422617]
* Tue May 20 2008 kukuk@suse.de
- Update to login 3.36
- Use audit_log_acct_message() call [bnc#382205].
- Update translations.
* Fri Apr 18 2008 werner@suse.de
- Add missing setutent() in case of network login (bnc#374299)
- Handle pts slave lines like utemper
* Wed Feb 13 2008 rguenther@suse.de
- Split from pwdutils.