File pam_radius.spec of Package pam_radius

#
# spec file for package pam_radius (Version 1.3.16)
#
# 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:           pam_radius
BuildRequires:  pam-devel
Summary:        A PAM Module for User Authentication using a Radius Server
Version:        1.3.16
Release:        216
Group:          Productivity/Security
Requires:       pam
License:        GPL v2 or later
Url:            http://www.freeradius.org/
Source:         pam_radius-%{version}.tar.bz2
              #ftp://ftp.freeradius.org/pub/radius/pam_radius-%{version}.tar
Patch:          pam_radius-%{version}.diff
Patch1:         pam_radius-md5-ppc-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pam_radius is a PAM module which allows user authentication using a
radius server.



Authors:
--------
    Alan DeKok <aland@ox.org>

%prep
%setup -n pam_radius-%{version}
%patch
%patch1 -p1

%build
make CFLAGS="-fPIC $RPM_OPT_FLAGS"

%install
install -d -m 755 $RPM_BUILD_ROOT/%{_lib}/security/
install -m 755 pam_radius_auth.so $RPM_BUILD_ROOT/%{_lib}/security/
install -d -m 755 $RPM_BUILD_ROOT/etc/raddb/
install -m 600 pam_radius_auth.conf $RPM_BUILD_ROOT/etc/raddb/server

%files
%defattr(-,root,root)
/%{_lib}/security/pam_radius_auth.so
%config(noreplace) /etc/raddb/server
%dir /etc/raddb/
%doc Changelog
%doc INSTALL
%doc README
%doc TODO
%doc USAGE
%doc index.html

%changelog
openSUSE Build Service is sponsored by