File pam_radius.spec of Package pam_radius

#
# spec file for package pam_radius (Version 1.3.16)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        178
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
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Wed Feb 27 2008 jdelvare@suse.de
- Fix MD5 support on PPC (360648).
* Wed May 17 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Fix linking of shared library.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 16 2004 kukuk@suse.de
- Add pam-devel to neededforbuild
* Sun Jan 11 2004 adrian@suse.de
- add %%defattr
* Fri Nov 28 2003 stark@suse.de
- update to 1.3.16
  * Added dummy pam_sm_acct_mgmt() function, which is
  needed by pppd 2.4
  * Increase the allowed length of user names
* Mon Aug 18 2003 stark@suse.de
- packaged /etc/raddb with mode 755 (#29062)
* Wed Jun 12 2002 stark@suse.de
- update to version 1.3.15
  * Bug fix: don't try to free() static storage when using
  skip_passwd
  * Implement retry option
- use %%{_lib} for 32/64bit coexistence
* Tue Sep 18 2001 stark@suse.de
- update to version 1.3.14:
  - Solaris 8 changed their header files for PAM.                                 - Bug fix to work on HURD: Don't use PATH_MAX.
* Wed May 23 2001 stark@suse.de
- update to version 1.3.13
* Tue Mar 13 2001 stark@suse.de
- update to version 1.3.12 (security fixes)
* Thu Jan 04 2001 stark@suse.de
- initial package
openSUSE Build Service is sponsored by