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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. %define real_name Log-Dispatch-Config
  2. Summary: Perl module that implements Log4j
  3. Name: perl-%{real_name}
  4. Version: 1.04
  5. Release: 1%{?_dist_release}
  6. License: GPL+ or Artistic
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/dist/Log-Dispatch-Config/
  9. Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{real_name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildArch: noarch
  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. * Sun Dec 07 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.04-1
  58. - updated to 1.04
  59. - rebuilt with perl 5.16.3
  60. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
  61. - initial build for Vine Linux