Summary: RADIUS Client Software Name: radiusclient-ng %define lname libradiusclient-ng2 Version: 0.5.6 Release: 10.43 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 . %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 --enable-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 b="%buildroot" mv $b%_sysconfdir/%name/issue $b%_sysconfdir/%name/issue-new mv $b%_sysconfdir/%name/port-id-map $b%_sysconfdir/%name/port-id-map-new mv $b%_sysconfdir/%name/servers $b%_sysconfdir/%name/servers-new mv $b%_sysconfdir/%name/radiusclient.conf $b%_sysconfdir/%name/radiusclient.conf-new %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-new %config(noreplace) %{_sysconfdir}/%{name}/issue-new %config(noreplace) %{_sysconfdir}/%{name}/port-id-map-new %config(noreplace) %{_sysconfdir}/%{name}/servers-new %{_sbindir}/* %files -n %lname %defattr(-, root, root) %{_libdir}/*.so.* %files devel %defattr(-, root, root) %{_libdir}/*.so %{_libdir}/*.a %{_includedir}/*.h %changelog * Sun Sep 23 2012 jengelh@inai.de - autotools is required for building the package * Sun Oct 9 2011 jengelh@medozas.de - Resolve build error due to double-defined debug package - Remove redundant/unwanted tags (cf. specfile guidelines) - Employ shared library policy - Add patch to fix buffer overflows * Sun Nov 19 2006 peter+rpmspam@suntel.com.tr - Coverted spec from radiusclient package to work with radiusclient-ng - Update all required patches - Split out separate -devel and -libs packages * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Thu Nov 18 2004 ro@suse.de - fixed file list * Sat Jan 10 2004 adrian@suse.de - add %%%%defattr * Thu Jul 31 2003 mjancar@suse.cz - use %%%%run_ldconfig * Thu May 29 2003 mjancar@suse.cz - remove Makefiles from documentation * Wed May 28 2003 mjancar@suse.cz - update to 0.3.2 - move localstatedir to /var/lib - remove unpackaged files from buildroot * Wed Apr 2 2003 ro@suse.de - fixed patch radiusclient-0.3.1-fix.dif * Tue Apr 2 2002 postadal@suse.cz - fixed to compile with autoconf-2.53 * Wed Mar 20 2002 postadal@suse.cz - secfix (VU#589523 -buffer overflow in the function that calculates message digests) - fixed login.expamle, README.SuSE * Thu Jan 10 2002 cihlar@suse.cz - use %%%%{_libdir} * Tue Nov 6 2001 cihlar@suse.cz - fixed to compile with automake 1.5 * Wed Jun 6 2001 cihlar@suse.cz - fixed to compile with new libtool * Mon Mar 26 2001 cihlar@suse.cz - moved whole files from dif - fixed to compile * Wed Nov 29 2000 smid@suse.cz - renamed: raduisc => radiusclient * Wed May 24 2000 cihlar@suse.cz - fixed to compile - added BuildRoot * Sun Apr 9 2000 bk@suse.de - added suse update config macro * Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Thu Jun 10 1999 kukuk@suse.de - Remove %%%%dir for doc tree * Sun Mar 1 1998 tmg@suse.de - README.SuSE again * Tue Feb 10 1998 tmg@suse.de - initial spec file - fixed paths in radiusclient.conf - login.example - simplistic example login.radius script - README.SuSE