|
|
@ -1,11 +1,11 @@
|
|
|
|
Name: perl-Perl-Critic
|
|
|
|
Name: perl-Perl-Critic
|
|
|
|
Version: 1.126
|
|
|
|
Version: 1.126
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Summary: Critique Perl source code for best-practices
|
|
|
|
Summary: Critique Perl source code for best-practices
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
URL: http://search.cpan.org/dist/Perl-Critic/
|
|
|
|
URL: http://search.cpan.org/dist/Perl-Critic/
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Perl-Critic-%{version}.tar.gz
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Perl-Critic-%{version}.tar.gz
|
|
|
|
|
|
|
|
Patch0: https://github.com/Perl-Critic/Perl-Critic/commit/62b12906.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
# Build process
|
|
|
|
# Build process
|
|
|
@ -19,7 +19,7 @@ BuildRequires: perl(Module::Build) >= 0.42
|
|
|
|
BuildRequires: perl(Task::Weaken)
|
|
|
|
BuildRequires: perl(Task::Weaken)
|
|
|
|
|
|
|
|
|
|
|
|
# Module requirements
|
|
|
|
# Module requirements
|
|
|
|
%if ! (0%{?rhel} >= 7)
|
|
|
|
%if ! (0%{?rhel:1})
|
|
|
|
BuildRequires: aspell-en
|
|
|
|
BuildRequires: aspell-en
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(B::Keywords) >= 1.05
|
|
|
|
BuildRequires: perl(B::Keywords) >= 1.05
|
|
|
@ -73,7 +73,7 @@ BuildRequires: perl(Devel::EnforceEncapsulation)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::Editor::RequireEmacsFileVariables)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::Editor::RequireEmacsFileVariables)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::Miscellanea::RequireRcsKeywords)
|
|
|
|
BuildRequires: perl(Perl::Critic::Policy::Miscellanea::RequireRcsKeywords)
|
|
|
|
%if ! (0%{?rhel} >= 7)
|
|
|
|
%if ! (0%{?rhel:1})
|
|
|
|
BuildRequires: perl(Test::Kwalitee) >= 1.15
|
|
|
|
BuildRequires: perl(Test::Kwalitee) >= 1.15
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Test::Perl::Critic)
|
|
|
|
BuildRequires: perl(Test::Perl::Critic)
|
|
|
@ -84,7 +84,7 @@ BuildRequires: perl(Test::Without::Module)
|
|
|
|
|
|
|
|
|
|
|
|
# Optional/not automatically detected runtime dependencies
|
|
|
|
# Optional/not automatically detected runtime dependencies
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%if ! (0%{?rhel} >= 7)
|
|
|
|
%if ! (0%{?rhel:1})
|
|
|
|
Requires: aspell
|
|
|
|
Requires: aspell
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: perl(File::HomeDir)
|
|
|
|
Requires: perl(File::HomeDir)
|
|
|
@ -107,9 +107,8 @@ also create new Policy modules that suit your own tastes.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n perl-Test-Perl-Critic-Policy
|
|
|
|
%package -n perl-Test-Perl-Critic-Policy
|
|
|
|
Summary: A framework for testing your custom Policies
|
|
|
|
Summary: A framework for testing your custom Policies
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Requires: perl(Test::Builder) >= 0.82
|
|
|
|
Requires: perl(Test::Builder) >= 0.92
|
|
|
|
|
|
|
|
|
|
|
|
%description -n perl-Test-Perl-Critic-Policy
|
|
|
|
%description -n perl-Test-Perl-Critic-Policy
|
|
|
|
This module provides a framework for function-testing your custom
|
|
|
|
This module provides a framework for function-testing your custom
|
|
|
@ -120,6 +119,9 @@ of Perl code were mixed directly in the test script. That sucked.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n Perl-Critic-%{version}
|
|
|
|
%setup -q -n Perl-Critic-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Fix t/07_perlcritic.t for @INC without '.' (GH#738)
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
# Drop exec bits from samples/docs to avoid dependency bloat
|
|
|
|
# Drop exec bits from samples/docs to avoid dependency bloat
|
|
|
|
find tools examples -type f -exec chmod -c -x {} ';'
|
|
|
|
find tools examples -type f -exec chmod -c -x {} ';'
|
|
|
|
|
|
|
|
|
|
|
@ -129,7 +131,7 @@ perl Build.PL --installdirs=vendor
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
|
|
|
|
LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
|
|
|
@ -151,6 +153,10 @@ LC_ALL=en_US ./Build %{!?perl_bootstrap:author}test
|
|
|
|
%{_mandir}/man3/Test::Perl::Critic::Policy.3*
|
|
|
|
%{_mandir}/man3/Test::Perl::Critic::Policy.3*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed May 24 2017 Paul Howarth <paul@city-fan.org> - 1.126-6
|
|
|
|
|
|
|
|
- Fix t/07_perlcritic.t for @INC without '.' (GH#738)
|
|
|
|
|
|
|
|
- Drop legacy Group: tags
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.126-5
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.126-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|