File libradius.spec of Package libradius
Name: libradius
Summary: RADIUS Client Library
URL: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/libradius/
Vendor: John Polstra
Packager: Ronan LE MEILLAT
Distribution: Kerbra
Group: RADIUS
License: BSD
Version: 20040920
Release: 20080104.1
# list of sources
Source: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/libradius/libradius-%{version}.tar.bz2
Source1: radius.conf
Patch0: makefile.patch
Patch1: srandomdev.patch
# build information
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libradius library implements the client side of the Remote
Authentication Dial-In User Service (RADIUS). RADIUS, defined in
RFCs 2138 and 2139, allows clients to perform authentication and
accounting by means of network requests to remote servers. This
implementation was originally written by John Polstra, and donated
to the FreeBSD project by Juniper Networks, Inc.
%prep
%setup -n libradius
%patch0 -p1
%patch1 -p1
%build
make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir}
%install
make install \
DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir}
mkdir -p -m 755 \
$RPM_BUILD_ROOT/etc/libradius
install -c -m 644 \
$RPM_SOURCE_DIR/radius.conf $RPM_BUILD_ROOT/etc/libradius/
%files
%defattr(-,root,root)
/etc/libradius/radius.conf
%{_prefix}/include/radlib.h
%{_libdir}/libradius.a
%{_mandir}/man3/libradius.3.gz
%{_mandir}/man5/radius.conf.5.gz
%clean
rm -rf $RPM_BUILD_ROOT