perl-PPIx-QuoteLike-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # Enable PPIx::Regexp optional feature
  2. %bcond_without perl_PPIx_QuoteLike_enables_PPIx_Regexp
  3. Name: perl-PPIx-QuoteLike
  4. Version: 0.006
  5. Release: 4%{?_dist_release}
  6. Summary: Parse Perl string literals and string-literal-like things
  7. License: GPL+ or Artistic
  8. URL: https://metacpan.org/release/PPIx-QuoteLike
  9. Source0: https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{version}.tar.gz
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. BuildArch: noarch
  13. BuildRequires: make
  14. BuildRequires: perl >= 2:5.26.2
  15. # Build.PL and inc/My/Module/Build.pm not used
  16. BuildRequires: perl(Carp)
  17. BuildRequires: perl(Config)
  18. BuildRequires: perl(constant)
  19. BuildRequires: perl(Exporter)
  20. BuildRequires: perl(ExtUtils::MakeMaker)
  21. BuildRequires: perl(lib)
  22. BuildRequires: perl(strict)
  23. # Test::Without::Module not helpful
  24. BuildRequires: perl(warnings)
  25. # Run-time:
  26. BuildRequires: perl(base)
  27. BuildRequires: perl(Encode)
  28. BuildRequires: perl(List::Util)
  29. BuildRequires: perl(PPI::Document)
  30. BuildRequires: perl(PPI::Dumper)
  31. BuildRequires: perl(re)
  32. BuildRequires: perl(Scalar::Util)
  33. %if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
  34. # Optional run-time:
  35. # Author states there is a build-cycle with PPIx::Regexp, but I cannot see
  36. # any.
  37. BuildRequires: perl(PPIx::Regexp)
  38. %endif
  39. # Tests:
  40. BuildRequires: perl(charnames)
  41. BuildRequires: perl(open)
  42. BuildRequires: perl(Test::More)
  43. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  44. Requires: perl(PPI::Document)
  45. Requires: perl(PPI::Dumper)
  46. %if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
  47. Recommends: perl(PPIx::Regexp)
  48. %endif
  49. # Remove under-specified dependencies
  50. %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((PPI::Document|PPI::Dumper)\\)$
  51. %description
  52. This Perl class parses Perl string literals and things that are reasonably
  53. like string literals. Its real reason for being is to find interpolated
  54. variables for Perl::Critic policies and similar code.
  55. %prep
  56. %setup -q -n PPIx-QuoteLike-%{version}
  57. # Fix shell bang
  58. perl -MConfig -p -i -e 's{\A#!/usr/bin/env perl\b}{$Config{startperl}}' \
  59. eg/pqldump
  60. chmod -x eg/pqldump
  61. %build
  62. perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
  63. make %{?_smp_mflags}
  64. %install
  65. make pure_install DESTDIR=$RPM_BUILD_ROOT
  66. %{_fixperms} $RPM_BUILD_ROOT/*
  67. %check
  68. make test
  69. %files
  70. %license LICENSES/*
  71. %doc Changes eg README
  72. %{perl_vendorlib}/*
  73. %{_mandir}/man3/*
  74. %changelog
  75. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.006-4
  76. - initial build for Vine Linux.
  77. * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-3
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
  79. * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-2
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
  81. * Tue Jul 10 2018 Petr Pisar <ppisar@redhat.com> - 0.006-1
  82. - 0.006 bump
  83. * Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-2
  84. - Perl 5.28 rebuild
  85. * Mon Jun 04 2018 Petr Pisar <ppisar@redhat.com> 0.005-1
  86. - Specfile autogenerated by cpanspec 1.78.