Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
perl-Perl-Critic
perl-Perl-Critic.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Perl-Critic.spec of Package perl-Perl-Critic
# # spec file for package perl-Perl-Critic # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: perl-Perl-Critic Version: 1.117 Release: 0 %define cpan_name Perl-Critic Summary: Critique Perl source code for best-practices. License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Perl-Critic/ Source: http://www.cpan.org/authors/id/T/TH/THALJEF/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(B::Keywords) >= 1.05 BuildRequires: perl(Config::Tiny) >= 2 BuildRequires: perl(Email::Address) >= 1.889 BuildRequires: perl(Exception::Class) >= 1.23 BuildRequires: perl(Exporter) >= 5.63 BuildRequires: perl(IO::String) BuildRequires: perl(List::MoreUtils) >= 0.19 BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Pluggable) >= 3.1 BuildRequires: perl(PPI) >= 1.215 BuildRequires: perl(PPI::Document) >= 1.215 BuildRequires: perl(PPI::Document::File) >= 1.215 BuildRequires: perl(PPI::Node) >= 1.215 BuildRequires: perl(PPI::Token::Quote::Single) >= 1.215 BuildRequires: perl(PPI::Token::Whitespace) >= 1.215 BuildRequires: perl(PPIx::Regexp) >= 0.022 BuildRequires: perl(PPIx::Utilities::Node) >= 1.001 BuildRequires: perl(PPIx::Utilities::Statement) >= 1.001 BuildRequires: perl(Perl::Tidy) BuildRequires: perl(Pod::Spell) >= 1 BuildRequires: perl(Readonly) >= 1.03 BuildRequires: perl(String::Format) >= 1.13 BuildRequires: perl(Task::Weaken) BuildRequires: perl(Test::Builder) >= 0.92 BuildRequires: perl(Test::Deep) BuildRequires: perl(version) >= 0.77 #BuildRequires: perl(Devel::CheckOS) #BuildRequires: perl(Devel::EnforceEncapsulation) #BuildRequires: perl(Devel::NYTProf) #BuildRequires: perl(File::HomeDir) #BuildRequires: perl(File::Which) #BuildRequires: perl(Perl::Critic) #BuildRequires: perl(Perl::Critic::Annotation) #BuildRequires: perl(Perl::Critic::BuildUtilities) #BuildRequires: perl(Perl::Critic::Command) #BuildRequires: perl(Perl::Critic::Config) #BuildRequires: perl(Perl::Critic::Document) #BuildRequires: perl(Perl::Critic::Exception::AggregateConfiguration) #BuildRequires: perl(Perl::Critic::Exception::Configuration) #BuildRequires: perl(Perl::Critic::Exception::Configuration::Generic) #BuildRequires: perl(Perl::Critic::Exception::Configuration::NonExistentPolicy) #BuildRequires: perl(Perl::Critic::Exception::Configuration::Option::Global::ExtraParameter) #BuildRequires: perl(Perl::Critic::Exception::Configuration::Option::Global::ParameterValue) #BuildRequires: perl(Perl::Critic::Exception::Configuration::Option::Policy::ExtraParameter) #BuildRequires: perl(Perl::Critic::Exception::Configuration::Option::Policy::ParameterValue) #BuildRequires: perl(Perl::Critic::Exception::Fatal::Generic) #BuildRequires: perl(Perl::Critic::Exception::Fatal::Internal) #BuildRequires: perl(Perl::Critic::Exception::Fatal::PolicyDefinition) #BuildRequires: perl(Perl::Critic::Exception::IO) #BuildRequires: perl(Perl::Critic::Exception::Parse) #BuildRequires: perl(Perl::Critic::Module::Build) #BuildRequires: perl(Perl::Critic::Module::Build::Standard) #BuildRequires: perl(Perl::Critic::OptionsProcessor) #BuildRequires: perl(Perl::Critic::Policy) #BuildRequires: perl(Perl::Critic::PolicyConfig) #BuildRequires: perl(Perl::Critic::Policy::ErrorHandling::RequireUseOfExceptions) #BuildRequires: perl(Perl::Critic::PolicyFactory) #BuildRequires: perl(Perl::Critic::PolicyListing) #BuildRequires: perl(Perl::Critic::PolicyParameter) #BuildRequires: perl(Perl::Critic::PolicyParameter::Behavior) #BuildRequires: perl(Perl::Critic::PolicyParameter::Behavior::Boolean) #BuildRequires: perl(Perl::Critic::PolicyParameter::Behavior::Enumeration) #BuildRequires: perl(Perl::Critic::PolicyParameter::Behavior::Integer) #BuildRequires: perl(Perl::Critic::PolicyParameter::Behavior::String) #BuildRequires: perl(Perl::Critic::PolicyParameter::Behavior::StringList) #BuildRequires: perl(Perl::Critic::PolicySummaryGenerator) #BuildRequires: perl(Perl::Critic::Policy::Test) #BuildRequires: perl(Perl::Critic::ProfilePrototype) #BuildRequires: perl(Perl::Critic::Statistics) #BuildRequires: perl(Perl::Critic::TestUtils) #BuildRequires: perl(Perl::Critic::Theme) #BuildRequires: perl(Perl::Critic::ThemeListing) #BuildRequires: perl(Perl::Critic::UserProfile) #BuildRequires: perl(Perl::Critic::Utils) #BuildRequires: perl(Perl::Critic::Utils::Constants) #BuildRequires: perl(Perl::Critic::Utils::DataConversion) #BuildRequires: perl(Perl::Critic::Utils::McCabe) #BuildRequires: perl(Perl::Critic::Utils::Perl) #BuildRequires: perl(Perl::Critic::Utils::POD) #BuildRequires: perl(Perl::Critic::Utils::POD::ParseInteriorSequence) #BuildRequires: perl(Perl::Critic::Utils::PPI) #BuildRequires: perl(Perl::Critic::Violation) #BuildRequires: perl(PPI::Cache) #BuildRequires: perl(PPI::Statement) #BuildRequires: perl(PPI::Statement::Break) #BuildRequires: perl(PPI::Statement::Compound) #BuildRequires: perl(PPI::Statement::Data) #BuildRequires: perl(PPI::Statement::End) #BuildRequires: perl(PPI::Statement::Expression) #BuildRequires: perl(PPI::Statement::Include) #BuildRequires: perl(PPI::Statement::Null) #BuildRequires: perl(PPI::Statement::Package) #BuildRequires: perl(PPI::Statement::Scheduled) #BuildRequires: perl(PPI::Statement::Sub) #BuildRequires: perl(PPI::Statement::Unknown) #BuildRequires: perl(PPI::Statement::UnmatchedBrace) #BuildRequires: perl(PPI::Statement::Variable) #BuildRequires: perl(PPI::Token::Magic) #BuildRequires: perl(PPI::Token::Symbol) #BuildRequires: perl(PPI::Token::Word) #BuildRequires: perl(Test::Kwalitee) #BuildRequires: perl(Test::Perl::Critic) #BuildRequires: perl(Test::Perl::Critic::Policy) #BuildRequires: perl(Test::Pod) >= 1.00 #BuildRequires: perl(Test::Pod::Coverage) >= 1.04 #BuildRequires: perl(ViolationTest) #BuildRequires: perl(ViolationTest2) Requires: perl(B::Keywords) >= 1.05 Requires: perl(Config::Tiny) >= 2 Requires: perl(Email::Address) >= 1.889 Requires: perl(Exception::Class) >= 1.23 Requires: perl(Exporter) >= 5.63 Requires: perl(IO::String) Requires: perl(List::MoreUtils) >= 0.19 Requires: perl(Module::Pluggable) >= 3.1 Requires: perl(Perl::Tidy) Requires: perl(Pod::Spell) >= 1 Requires: perl(PPI) >= 1.215 Requires: perl(PPI::Document) >= 1.215 Requires: perl(PPI::Document::File) >= 1.215 Requires: perl(PPI::Node) >= 1.215 Requires: perl(PPI::Token::Quote::Single) >= 1.215 Requires: perl(PPI::Token::Whitespace) >= 1.215 Requires: perl(PPIx::Regexp) >= 0.022 Requires: perl(PPIx::Utilities::Node) >= 1.001 Requires: perl(PPIx::Utilities::Statement) >= 1.001 Requires: perl(Readonly) >= 1.03 Requires: perl(String::Format) >= 1.13 Requires: perl(Task::Weaken) Requires: perl(Test::Builder) >= 0.92 Requires: perl(version) >= 0.77 Recommends: perl(File::HomeDir) Recommends: perl(File::Which) Recommends: perl(Readonly::XS) Recommends: perl(Term::ANSIColor) >= 2.02 %{perl_requires} %description Perl::Critic is an extensible framework for creating and applying coding standards to Perl source code. Essentially, it is a static source code analysis engine. Perl::Critic is distributed with a number of Perl::Critic::Policy modules that attempt to enforce various coding guidelines. Most Policy modules are based on Damian Conway's book *Perl Best Practices*. However, Perl::Critic is *not* limited to PBP and will even support Policies that contradict Conway. You can enable, disable, and customize those Polices through the Perl::Critic interface. You can also create new Policy modules that suit your own tastes. For a command-line interface to Perl::Critic, see the documentation for perlcritic. If you want to integrate Perl::Critic with your build process, Test::Perl::Critic provides an interface that is suitable for test programs. Also, Test::Perl::Critic::Progressive is useful for gradually applying coding standards to legacy code. For the ultimate convenience (at the expense of some flexibility) see the criticism pragma. Win32 and ActivePerl users can find PPM distributions of Perl::Critic at the http://theoryx5.uwinnipeg.ca/ppms/ manpage and Alexandr Ciornii's downloadable executable at the http://chorny.net/perl/perlcritic.html manpage. If you'd like to try Perl::Critic without installing anything, there is a web-service available at the http://perlcritic.com manpage. The web-service does not yet support all the configuration features that are available in the native Perl::Critic API, but it should give you a good idea of what it does. You can also invoke the perlcritic web-service from the command-line by doing an HTTP-post, such as one of these: $> POST http://perlcritic.com/perl/critic.pl < MyModule.pm $> lwp-request -m POST http://perlcritic.com/perl/critic.pl < MyModule.pm $> wget -q -O - --post-file=MyModule.pm http://perlcritic.com/perl/critic.pl Please note that the perlcritic web-service is still alpha code. The URL and interface to the service are subject to change. Also, the Perl Development Kit (PDK 8.0) from ActiveState includes a very slick graphical interface to Perl-Critic. For details, go to the http://www.activestate.com/perl_dev_kit manpage %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %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 %defattr(-,root,root,755) %doc Changes examples extras LICENSE README tools xt %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor