Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl
perl-criticism
perl-criticism.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-criticism.spec of Package perl-criticism
# # spec file for package perl-criticism (Version 1.02) # # Copyright (c) 2010 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-criticism Version: 1.02 Release: 1 License: GPL+ or Artistic %define cpan_name criticism Summary: Perl pragma to enforce coding standards and best-practices Url: http://search.cpan.org/dist/criticism/ Group: Development/Libraries/Perl #Source: http://www.cpan.org/authors/id/T/TH/THALJEF/%{cpan_name}/criticism-%{version}.tar.gz Source: criticism-1.02.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl(Module::Build) BuildRequires: perl-macros BuildRequires: perl(IO::String) BuildRequires: perl(Module::Build) BuildRequires: perl(Perl::Critic) >= 1.089 BuildRequires: perl(Test::More) Requires: perl(Perl::Critic) >= 1.089 %{perl_requires} %description This pragma enforces coding standards and promotes best-practices by running your file through Perl::Critic before every execution. In a production system, this usually isn't feasible because it adds a lot of overhead at start-up. If you have a separate development environment, you can effectively bypass the 'criticism' pragma by not installing Perl::Critic in the production environment. If Perl::Critic can't be loaded, then 'criticism' just fails silently. Alternatively, the 'perlcritic' command-line (which is distributed with Perl::Critic) can be used to analyze your files on-demand and has some additional configuration features. And Test::Perl::Critic provides a nice interface for analyzing files during the build process. 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. %prep %setup -q -n %{cpan_name}-%{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 %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,755) %doc Changes LICENSE README %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