95 lines
3.5 KiB
RPMSpec
95 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package perl-Perl-Critic-Bangs
|
|
#
|
|
# Copyright (c) 2025 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 Perl-Critic-Bangs
|
|
Name: perl-Perl-Critic-Bangs
|
|
Version: 1.140.0
|
|
Release: 0
|
|
# 1.14 -> normalize -> 1.140.0
|
|
%define cpan_version 1.14
|
|
License: Artistic-2.0
|
|
Summary: Perl::Critic::Bangs - A collection of policies for Perl::Critic
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(List::MoreUtils)
|
|
BuildRequires: perl(PPI::Cache)
|
|
BuildRequires: perl(PPI::Document)
|
|
BuildRequires: perl(Perl::Critic) >= 1.122
|
|
BuildRequires: perl(Perl::Critic::Policy)
|
|
BuildRequires: perl(Perl::Critic::PolicyFactory)
|
|
BuildRequires: perl(Perl::Critic::PolicyParameter)
|
|
BuildRequires: perl(Perl::Critic::TestUtils)
|
|
BuildRequires: perl(Perl::Critic::UserProfile)
|
|
BuildRequires: perl(Perl::Critic::Utils)
|
|
BuildRequires: perl(Perl::Critic::Violation)
|
|
BuildRequires: perl(Readonly)
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
BuildRequires: perl(Test::Perl::Critic) >= 1.10
|
|
Requires: perl(List::MoreUtils)
|
|
Requires: perl(PPI::Cache)
|
|
Requires: perl(PPI::Document)
|
|
Requires: perl(Perl::Critic) >= 1.122
|
|
Requires: perl(Perl::Critic::Policy)
|
|
Requires: perl(Perl::Critic::PolicyFactory)
|
|
Requires: perl(Perl::Critic::PolicyParameter)
|
|
Requires: perl(Perl::Critic::TestUtils)
|
|
Requires: perl(Perl::Critic::UserProfile)
|
|
Requires: perl(Perl::Critic::Utils)
|
|
Requires: perl(Perl::Critic::Violation)
|
|
Requires: perl(Readonly)
|
|
Provides: perl(Perl::Critic::Bangs) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitBitwiseOperators) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitCommentedOutCode) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitDebuggingModules) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitFlagComments) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitNoPlan) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitNumberedNames) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitRefProtoOrProto) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitUselessRegexModifiers) = %{version}
|
|
Provides: perl(Perl::Critic::Policy::Bangs::ProhibitVagueNames) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
The rules included with the Perl::Critic::Bangs group include:
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README.md
|
|
|
|
%changelog
|