%define name radiusclient %define version 0.3.2 %define release 3mdk %define major 0 %define libname %mklibname radius %{major} Summary: Radiusclient library and tools Name: %{name} Version: %{version} Release: %{release} URL: http://www.mcs-cityline.net/~lf/radius/ License: BSD Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-am_ac.patch.bz2 Group: System/Libraries BuildRequires: libtool BuildRequires: automake BuildRequires: autoconf BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Radiusclient is a /bin/login replacement which gets called by a getty to log in a user and to setup the user's login environment. Normal login programs just check the login name and password which the user entered against the local password file (/etc/passwd, /etc/shadow). In contrast to that Radiusclient also uses the RADIUS protocol to authenticate the user. %package -n %{name}-utils Summary: Radiusclient library Group: System/Servers Requires: %{libname} = %{version}-%{release} %description -n %{name}-utils Radiusclient is a /bin/login replacement which gets called by a getty to log in a user and to setup the user's login environment. Normal login programs just check the login name and password which the user entered against the local password file (/etc/passwd, /etc/shadow). In contrast to that Radiusclient also uses the RADIUS protocol to authenticate the user. %package -n %{libname} Summary: Radiusclient library Group: System/Libraries %description -n %{libname} Libraries required for Radiusclient %package -n %{libname}-devel Summary: Header files and development documentation for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel Provides: libradius-devel %description -n %{libname}-devel Header files and development documentation for %{name}. %package -n %{libname}-static-devel Summary: Static libraries for %{name} Group: Development/C Requires: %{libname}-devel = %{version}-%{release} %description -n %{libname}-static-devel %{name} static library. %prep %setup -q %patch0 -p1 %build #rm -rf missing libtoolize --copy --force; aclocal; autoconf; automake %serverbuild %configure \ --enable-shadow \ --enable-scp %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %post -n %{libname}-devel -p /sbin/ldconfig %postun -n %{libname}-devel -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{name}-utils %defattr(644,root,root,755) %doc BUGS CHANGES README* doc/*.html %dir %{_sysconfdir}/%{name} %attr(644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/* %attr(755,root,root) %{_sbindir}/* %files -n %{libname} %defattr(-,root,root) %attr(755,root,root) %{_libdir}/lib*.so.* %files -n %{libname}-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %attr(755,root,root) %{_libdir}/lib*.la %{_includedir}/* %files -n %{libname}-static-devel %defattr(644,root,root,755) %{_libdir}/lib*.a %changelog * Thu Jul 10 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-3mdk - rebuild - use the %%mklibname and other macros - misc spec file fixes * Thu Jan 16 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-2mdk - build release * Wed Aug 14 2002 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.3.2-1mdk - initial cooker contrib, ripped from PLD, adapted for ML