LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File radiusclient-ng.spec of Package radiusclient-ng (Project home:vicidial)

Summary:        RADIUS Client Software
Name:		radiusclient-ng
%define lname	libradiusclient-ng2
Version:	0.5.6
Release:	0
Obsoletes:      radiusc radiusclient
Provides:       radiusc
Group:          Productivity/Networking/Radius/Clients
License:	Artistic License
URL:		http://developer.berlios.de/projects/radiusclient-ng/
Source0:	radiusclient-ng-%{version}.tar.bz2
Source1:        README.SUSE
Source2:        login.example
Patch1:		rad-buffer-overflow.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	autoconf, automake, libtool

%description
A portable, easy-to-use and standard compliant library suitable for developing free and commercial software that need support for a RADIUS protocol (RFCs 2128 and 2139). 
This is the next generation of "radiusclient" which used to live at http://www.cityline.net/~lf/radius/ but seems to be no longer maintained.

%package -n %lname
Summary:	A portable, easy-to-use and standard compliant library for RADIUS protocol (RFCs 2128 and 2139).
Group:          Development/Libraries

%description -n %lname
The package contains the shared library of radiusclient-ng by Maxim Sobolev <sobomax@portaone.com>.

%package devel
Summary:	Header files, libraries and development documentation for %{name}.
Group:		Development/Libraries
Requires:	%lname = %version

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. You need to install %{name}-devel if you want to develop applications using %{name}.

%prep
%setup
%patch -P 1 -p1
cp %{S:1} .
cp %{S:2} login.radius

%build
autoreconf -fi
%configure --enable-shared --disable-static \
        --enable-shadow \
        --with-secure-path
make %{?_smp_mflags}

%install
make "DESTDIR=$RPM_BUILD_ROOT" install
#chmod 755 $RPM_BUILD_ROOT/%{_libdir}/lib%{name}.so.*
rm -f $RPM_BUILD_ROOT/%{_sbindir}/login.radius
rm -f login.radius/Makefile*
rm -f login.radius/migs/Makefile*

rm -f %{buildroot}%{_libdir}/*.la

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc BUGS CHANGES COPYRIGHT README README.radexample doc/instop.html
%doc login.radius README.SUSE
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/dictionary
%{_sysconfdir}/%{name}/dictionary.*
%config %{_sysconfdir}/%{name}/radiusclient.conf
%config(noreplace) %{_sysconfdir}/%{name}/issue
%config(noreplace) %{_sysconfdir}/%{name}/port-id-map
%config(noreplace) %{_sysconfdir}/%{name}/servers
%{_sbindir}/*

%files -n %lname
%defattr(-, root, root)
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_includedir}/*.h