perl-Net-Radius-vl.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. %define real_name Net-Radius
  2. Summary: Object-oriented Perl interface to RADIUS
  3. Name: perl-Net-Radius
  4. Version: 1.56
  5. Release: 1%{?dist}
  6. License: Artistic or GPL+
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Net-Radius/
  9. Source: http://www.cpan.org/modules/by-module/Net/Net-Radius-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  12. BuildRequires: perl
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(Digest::MD5)
  15. BuildRequires: perl(Test::More)
  16. BuildRequires: perl(Test::Warn)
  17. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  18. %description
  19. Object-oriented Perl interface to RADIUS.
  20. %prep
  21. %setup -q -n %{real_name}-%{version}
  22. %build
  23. %{__perl} Makefile.PL INSTALLDIRS=vendor
  24. make %{?_smp_mflags}
  25. %install
  26. rm -rf %{buildroot}
  27. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  28. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  29. find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
  30. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  31. chmod -R u+w %{buildroot}/*
  32. find contrib/ docs/ examples/ -type f -exec %{__chmod} a-x {} \;
  33. %clean
  34. rm -rf %{buildroot}
  35. %files
  36. %defattr(-, root, root, -)
  37. %doc Changes MANIFEST MANIFEST.SKIP META.yml
  38. %doc README README.3COM README.VSA README.broken README.packets README.server
  39. %doc version.pl contrib/ docs/ examples/
  40. %{perl_vendorlib}/*
  41. %{_mandir}/man3/*
  42. %changelog
  43. * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.56-1
  44. - initial build for Vine Linux