Advertisement
keith_shannon

perl-namespace-autoclean.spec

Mar 24th, 2015
2,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Name:           perl-namespace-autoclean
  2. Version:        0.24
  3. Release:        1%{?dist}
  4. Summary:        Keep imports out of your namespace
  5. License:        GPL+ or Artistic
  6. Group:          Development/Libraries
  7. URL:            http://search.cpan.org/dist/namespace-autoclean/
  8. Source0:        http://www.cpan.org/modules/by-module/namespace/namespace-autoclean-%{version}.tar.gz
  9. BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch:      noarch
  11. BuildRequires:  perl >= 0:5.006
  12. BuildRequires:  perl(B::Hooks::EndOfScope) >= 0.12
  13. BuildRequires:  perl(ExtUtils::MakeMaker)
  14. BuildRequires:  perl(Module::Build)
  15. BuildRequires:  perl(namespace::clean) >= 0.20
  16. BuildRequires:  perl(Sub::Identify)
  17. BuildRequires:  perl(Test::More) >= 0.88
  18. BuildRequires:  perl(Test::Requires)
  19. Requires:       perl(B::Hooks::EndOfScope) >= 0.12
  20. Requires:       perl(namespace::clean) >= 0.20
  21. Requires:       perl(Sub::Identify)
  22. Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  23.  
  24. %description
  25. When you import a function into a Perl package, it will naturally also be
  26. available as a method.
  27.  
  28. %prep
  29. %setup -q -n namespace-autoclean-%{version}
  30.  
  31. %build
  32. %{__perl} Build.PL installdirs=vendor
  33. ./Build
  34.  
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37.  
  38. ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
  39. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  40.  
  41. %{_fixperms} $RPM_BUILD_ROOT/*
  42.  
  43. %check
  44. ./Build test
  45.  
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48.  
  49. %files
  50. %defattr(-,root,root,-)
  51. %doc Changes CONTRIBUTING dist.ini LICENSE META.json README weaver.ini
  52. %{perl_vendorlib}/*
  53. %{_mandir}/man3/*
  54.  
  55. %changelog
  56. * Tue Mar 24 2015 Ke**** 'The Data God' Sh****** 0.24-1
  57. - Initial spec file creation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement