perl-Net-Appliance-Session-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Name: perl-Net-Appliance-Session
  2. Summary: Run command-line sessions to network appliances
  3. Version: 3.120560
  4. Release: 1%{?_dist_release}
  5. License: Artistic or GPL+
  6. Group: Development/Libraries
  7. Source: http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/Net-Appliance-Session-%{version}.tar.gz
  8. URL: http://search.cpan.org/dist/Net-Appliance-Session/
  9. BuildArch: noarch
  10. BuildRequires: perl(ExtUtils::MakeMaker)
  11. BuildRequires: perl(Test::More) >= 0.88
  12. BuildRequires: perl(strict)
  13. BuildRequires: perl(warnings)
  14. Requires: perl(Moose)
  15. Requires: perl(Moose::Role)
  16. Requires: perl(Net::CLI::Interact)
  17. Requires: perl(overload)
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. %description
  20. Run command-line sessions to network appliances
  21. %prep
  22. %setup -q -n Net-Appliance-Session-%{version}
  23. %build
  24. %{__perl} Makefile.PL INSTALLDIRS="vendor"
  25. %{__make} %{?_smp_mflags}
  26. %install
  27. %{__rm} -rf %{buildroot}
  28. %{__make} pure_install DESTDIR=%{buildroot}
  29. ### Clean up buildroot
  30. find %{buildroot} -name .packlist -exec %{__rm} {} \;
  31. ### Clean up docs
  32. find 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 LICENSE MANIFEST META.* README examples/
  40. %{perl_vendorlib}/*
  41. %{_mandir}/man3/*
  42. %changelog
  43. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.36-1
  44. - initial build for Vine Linux