File login.spec of Package login
#
# spec file for package login (Version 3.40)
#
# Copyright (c) 2009 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 (or similar) ; BSD 4-clause (or similar)
Group: System/Base
AutoReqProv: on
Version: 3.40
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
%config /etc/pam.d/remote
/bin/login
/usr/sbin/faillog
/usr/bin/lastlog
%doc %{_mandir}/man?/*
%changelog