perl-Log-Dispatch-Configurator-Any-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. %define real_name Log-Dispatch-Configurator-Any
  2. Summary: Perl module that implements Log4j
  3. Name: perl-%{real_name}
  4. Version: 1.122640
  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(Config::Any)
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(File::Temp) >= 0.12
  16. BuildRequires: perl(IO::Scalar)
  17. BuildRequires: perl(Log::Dispatch) >= 2
  18. BuildRequires: perl(Log::Dispatch::Config)
  19. BuildRequires: perl(Test::More) >= 0.32
  20. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  21. Requires: perl(AppConfig) >= 1.52
  22. Requires: perl(File::Temp) >= 0.12
  23. Requires: perl(IO::Scalar)
  24. Requires: perl(Log::Dispatch) >= 2
  25. Requires: perl(Test::More) >= 0.32
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. Packager: shaolin
  29. %description
  30. Log-Dispatch-Config is a Perl module that implements Log4j.
  31. %prep
  32. %setup -q -n %{real_name}-%{version}
  33. %build
  34. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  35. make %{?_smp_mflags}
  36. %install
  37. rm -rf %{buildroot}
  38. make pure_install DESTDIR=%{buildroot}
  39. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  40. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  41. %{_fixperms} %{buildroot}
  42. %clean
  43. rm -rf %{buildroot}
  44. %check
  45. make test
  46. %files
  47. %defattr(-, root, root, 0755)
  48. %doc Changes MANIFEST META.yml README
  49. %doc %{_mandir}/man3/*
  50. %dir %{perl_vendorlib}/Log/Dispatch/Configurator
  51. %{perl_vendorlib}/Log/Dispatch/Configurator/*.pm
  52. %changelog
  53. * Sun Dec 7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.122640-1
  54. - new upstream release
  55. - built with perl 5.16.3
  56. * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.110690-1
  57. - initial build for Vine Linux