perl-Net-Radius-vl.spec 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. %define real_name Net-Radius
  2. Summary: Object-oriented Perl interface to RADIUS
  3. Name: perl-Net-Radius
  4. Version: 2.103
  5. Release: 1%{?_dist_release}
  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. %check
  36. make test
  37. %files
  38. %defattr(-, root, root, -)
  39. %doc Changes MANIFEST MANIFEST.SKIP META.yml
  40. %doc README README.3COM README.VSA README.broken README.packets README.server
  41. %doc contrib/ docs/ examples/
  42. %{perl_vendorlib}/*
  43. %{_mandir}/man3/*
  44. %changelog
  45. * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.103-1
  46. - updated to 2.103
  47. - built with perl 5.16.3
  48. * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.56-1
  49. - initial build for Vine Linux