forked from pool/perl-Perl-Critic-Community
Accepting request 954190 from home:tinita:branches:devel:languages:perl:CPAN-P
- Initial import. Successor of Perl-Critic-Freenode OBS-URL: https://build.opensuse.org/request/show/954190 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Perl-Critic-Community?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
Perl-Critic-Community-v1.0.2.tar.gz
Normal file
3
Perl-Critic-Community-v1.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aebe652038f2b9c413ea0b2087adc89dd2e89a94c8b4640c0d9b7c83bc34d6dd
|
||||
size 47187
|
36
cpanspec.yml
Normal file
36
cpanspec.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
# baz.patch: PATCH-FIX-OPENSUSE
|
||||
preamble: |-
|
||||
Obsoletes: perl-Perl-Critic-Freenode
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
#skip_doc: regexp_to_skip_for_doc.*
|
||||
#add_doc: files to add to docs
|
||||
#misc: |-
|
||||
#anything else to be added to spec file
|
||||
#follows directly after %files section, so it can contain new blocks or also
|
||||
#changes to %files section
|
4
perl-Perl-Critic-Community.changes
Normal file
4
perl-Perl-Critic-Community.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 13 13:26:27 UTC 2022 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Initial import. Successor of Perl-Critic-Freenode
|
87
perl-Perl-Critic-Community.spec
Normal file
87
perl-Perl-Critic-Community.spec
Normal file
@@ -0,0 +1,87 @@
|
||||
#
|
||||
# spec file for package perl-Perl-Critic-Community
|
||||
#
|
||||
# Copyright (c) 2022 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-Community
|
||||
Name: perl-Perl-Critic-Community
|
||||
Version: 1.0.2
|
||||
Release: 0
|
||||
License: Artistic-2.0
|
||||
Summary: Community-inspired Perl::Critic policies
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{cpan_name}-v%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(List::Util) >= 1.33
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
||||
BuildRequires: perl(Module::Metadata)
|
||||
BuildRequires: perl(PPI) >= 1.254
|
||||
BuildRequires: perl(Path::Tiny) >= 0.101
|
||||
BuildRequires: perl(Perl::Critic) >= 1.126
|
||||
BuildRequires: perl(Perl::Critic::Policy::Objects::ProhibitIndirectSyntax) >= 1.126
|
||||
BuildRequires: perl(Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils) >= 1.126
|
||||
BuildRequires: perl(Perl::Critic::Policy::ValuesAndExpressions::ProhibitArrayAssignAref) >= 90
|
||||
BuildRequires: perl(Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations) >= 1.126
|
||||
BuildRequires: perl(Perl::Critic::Policy::Variables::ProhibitLoopOnHash) >= 0.005
|
||||
BuildRequires: perl(Perl::Critic::Policy::Variables::RequireLexicalLoopIterators) >= 1.126
|
||||
BuildRequires: perl(parent)
|
||||
BuildRequires: perl(version)
|
||||
Requires: perl(List::Util) >= 1.33
|
||||
Requires: perl(PPI) >= 1.254
|
||||
Requires: perl(Path::Tiny) >= 0.101
|
||||
Requires: perl(Perl::Critic) >= 1.126
|
||||
Requires: perl(Perl::Critic::Policy::Objects::ProhibitIndirectSyntax) >= 1.126
|
||||
Requires: perl(Perl::Critic::Policy::Subroutines::ProhibitAmpersandSigils) >= 1.126
|
||||
Requires: perl(Perl::Critic::Policy::ValuesAndExpressions::ProhibitArrayAssignAref) >= 90
|
||||
Requires: perl(Perl::Critic::Policy::Variables::ProhibitConditionalDeclarations) >= 1.126
|
||||
Requires: perl(Perl::Critic::Policy::Variables::ProhibitLoopOnHash) >= 0.005
|
||||
Requires: perl(Perl::Critic::Policy::Variables::RequireLexicalLoopIterators) >= 1.126
|
||||
Requires: perl(parent)
|
||||
Requires: perl(version)
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
Obsoletes: perl-Perl-Critic-Freenode
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
A set of Perl::Critic policies to enforce the practices generally
|
||||
recommended by subsets of the Perl community, particularly on IRC. Formerly
|
||||
known as Perl::Critic::Freenode. Because this policy "theme" is designed to
|
||||
be used with zero configuration on the command line, some duplication will
|
||||
occur if it is used in combination with core Perl::Critic policies.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-v%{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 CONTRIBUTING.md prereqs.yml README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user