File pam_radius.spec of Package pam_radius

#
# spec file for package pam_radius
#
# Copyright (c) 2013 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/
#


Name:           pam_radius
BuildRequires:  pam-devel
Summary:        A PAM Module for User Authentication using a Radius Server
License:        GPL-2.0+
Group:          Productivity/Security
Version:        1.3.16
Release:        0
Requires:       pam
Url:            http://www.freeradius.org/
Source:         pam_radius-%{version}.tar.bz2
              #ftp://ftp.freeradius.org/pub/radius/pam_radius-%{version}.tar
Source2:        baselibs.conf
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 750 $RPM_BUILD_ROOT/etc/raddb/
install -m 600 pam_radius_auth.conf $RPM_BUILD_ROOT/etc/raddb/server

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

%changelog
openSUSE Build Service is sponsored by