perl-Log-Dispatch-Config-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %define real_name Log-Dispatch-Config
  2. Summary: Perl module that implements Log4j
  3. Name: perl-%{real_name}
  4. Version: 1.03
  5. Release: 1%{?_dist_release}
  6. License: GPL+ or Artistic
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{real_name}-%{version}.tar.gz
  9. URL: http://search.cpan.org/dist/Log-Dispatch-Config/
  10. BuildArch: noarch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: perl(AppConfig) >= 1.52
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(File::Temp) >= 0.12
  15. BuildRequires: perl(IO::Scalar)
  16. BuildRequires: perl(Log::Dispatch) >= 2
  17. BuildRequires: perl(Test::More) >= 0.32
  18. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  19. Requires: perl(AppConfig) >= 1.52
  20. Requires: perl(File::Temp) >= 0.12
  21. Requires: perl(IO::Scalar)
  22. Requires: perl(Log::Dispatch) >= 2
  23. Requires: perl(Test::More) >= 0.32
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. Packager: shaolin
  27. %description
  28. Log-Dispatch-Config is a Perl module that implements Log4j.
  29. %prep
  30. %setup -n %{real_name}-%{version}
  31. %build
  32. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  33. make %{?_smp_mflags}
  34. %install
  35. rm -rf %{buildroot}
  36. make pure_install DESTDIR=%{buildroot}
  37. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  38. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  39. %{_fixperms} %{buildroot}
  40. %clean
  41. rm -rf %{buildroot}
  42. %check
  43. make test
  44. %files
  45. %defattr(-, root, root, 0755)
  46. %doc Changes MANIFEST META.yml README
  47. %doc %{_mandir}/man3/Log::Dispatch::Config.3pm*
  48. %doc %{_mandir}/man3/Log::Dispatch::Configurator.3pm*
  49. %doc %{_mandir}/man3/Log::Dispatch::Configurator::AppConfig.3pm*
  50. %dir %{perl_vendorlib}/Log/
  51. %dir %{perl_vendorlib}/Log/Dispatch/
  52. %{perl_vendorlib}/Log/Dispatch/Config.pm
  53. %{perl_vendorlib}/Log/Dispatch/Configurator.pm
  54. %dir %{perl_vendorlib}/Log/Dispatch/Configurator/
  55. %{perl_vendorlib}/Log/Dispatch/Configurator/AppConfig.pm
  56. %changelog
  57. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
  58. - initial build for Vine Linux