perl-Authen-Radius/perl-Authen-Radius.spec

77 lines
2.3 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Authen-Radius
Version: 0.32
Release: 2mamba
Summary: Authen::Radius - Provide simple Radius client facilities
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/modules/by-module/Authen/Authen-Radius-%{version}.tar.gz
License: Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Data-HexDump
BuildRequires: perl-Net-IP
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
Requires: perl >= %perl_major_ver
%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
* Mon Apr 17 2023 Sdk Build System <sdk@mambasoft.it> 0.32-2mamba
- rebuilt with perl 5.36.0
* Sun Jan 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.32-1mamba
- update to 0.32
* Sat Apr 27 2013 Automatic Build System <autodist@mambasoft.it> 0.22-1mamba
- update to 0.22
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-3mamba
- perl 5.16 mass rebuild
* Mon Nov 03 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-2mamba
- automatic rebuild by autodist
* Mon Nov 26 2007 Aleph0 <aleph0@openmamba.org> 0.13-1mamba
- update to 0.13
* Fri Oct 15 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11-1qilnx
- package created by autospec