77 lines
2.7 KiB
RPMSpec
77 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package perl-Test-Perl-Critic-Progressive
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Test-Perl-Critic-Progressive
|
|
Name: perl-Test-Perl-Critic-Progressive
|
|
Version: 0.30.0
|
|
Release: 0
|
|
# 0.03 -> normalize -> 0.30.0
|
|
%define cpan_version 0.03
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Encourage Perl::Critic conformance over time
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TH/THALJEF/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Perl::Critic) >= 1.082
|
|
BuildRequires: perl(Perl::Critic::Utils) >= 1.082
|
|
Requires: perl(Perl::Critic) >= 1.082
|
|
Requires: perl(Perl::Critic::Utils) >= 1.082
|
|
Provides: perl(Test::Perl::Critic::Progressive) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Applying coding standards to large amounts of legacy code is a daunting
|
|
task. Often times, legacy code is so non-compliant that it seems downright
|
|
impossible. But, if you consistently chip away at the problem, you will
|
|
eventually succeed! Test::Perl::Critic::Progressive uses the Perl::Critic
|
|
engine to prevent further deterioration of your code and *gradually* steer
|
|
it towards conforming with your chosen coding standards.
|
|
|
|
The most effective way to use Test::Perl::Critic::Progressive is as a unit
|
|
test that is run under a continuous-integration system like CruiseControl
|
|
or AntHill. Each time a developer commits changes to the code, this test
|
|
will fail and the build will break unless it has the same (or fewer)
|
|
Perl::Critic violations than the last successful test.
|
|
|
|
See the "NOTES" for more details about how this test works.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README TODO
|
|
%license LICENSE
|
|
|
|
%changelog
|