File login.spec of Package login

#
# spec file for package login
#
# Copyright (c) 2011 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:        BSD3c(or similar) ; BSD4c(or similar)
Group:          System/Base
AutoReqProv:    on
Version:        4.0
Release:        7.<RELEASE3>
Summary:        Login Program
Source:         pam_login-%{version}.tar.bz2
Patch:          bugzilla-148065.patch
Patch1:         pam_login-3.35-pts.patch
Patch2:         bnc652633.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang

%description
Unix login program that uses pam for authentication.

%lang_package
%prep
%setup -q -n pam_login-%{version}
%patch -p0
%patch1 -p0
%patch2 -p0

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure
make %{?_smp_mflags}

%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
%defattr(-,root,root,755)
%config(noreplace) /etc/pam.d/login
%config(noreplace) /etc/pam.d/remote
/bin/login
/usr/bin/lastlog
%doc %{_mandir}/man?/*

%files lang -f login.lang

%changelog
openSUSE Build Service is sponsored by