%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Authen-Radius Version: 0.22 Release: 1mamba Summary: Authen::Radius - Provide simple Radius client facilities Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/RadiusPerl-%{version}.tar.gz License: Artistic Requires: perl >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver BuildRequires: perl-Data-HexDump BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This is RadiusPerl version %{version}. RadiusPerl is a Perl 5 module (Radius.pm) which allows you to communicate with a Radius server from Perl. You can just authenticate usernames/passwords via Radius, or comletely imitate AAA requests and process server response. %prep %setup -q -n Authen-Radius-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make #make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl packlist=`find %{buildroot} -name .packlist` [ -z "$packlist" ] && exit 1 || cat $packlist | \ sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ sort -u > .packlist && rm $packlist strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` for dir in `find %{buildroot} -type d | grep $strid`; do echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Sat Apr 27 2013 Automatic Build System 0.22-1mamba - update to 0.22 * Tue Nov 13 2012 Silvan Calarco 0.13-3mamba - perl 5.16 mass rebuild * Mon Nov 03 2008 Silvan Calarco 0.13-2mamba - automatic rebuild by autodist * Mon Nov 26 2007 Aleph0 0.13-1mamba - update to 0.13 * Fri Oct 15 2004 Silvan Calarco 0.11-1qilnx - package created by autospec