Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-P
perl-Perl-Metric-Basic
perl-Perl-Metric-Basic.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Perl-Metric-Basic.spec of Package perl-Perl-Metric-Basic
# # spec file for package perl-Perl-Metric-Basic # # Copyright (c) 2015 SUSE LINUX 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-Metric-Basic Version: 0.31 Release: 0 %define cpan_name Perl-Metric-Basic Summary: Provide basic software metrics License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Perl-Metric-Basic/ Source0: http://www.cpan.org/authors/id/L/LB/LBROCARD/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Accessor) BuildRequires: perl(Module::Build) BuildRequires: perl(PPI) >= 0.993 BuildRequires: perl(Test::Exception) Requires: perl(Class::Accessor) Requires: perl(PPI) >= 0.993 Requires: perl(Test::Exception) %{perl_requires} %description When constructing software one often produces code of vastly differing quality. The Perl::Metric::Basic module leverages the PPI module to provide some interesting software metrics for Perl code, mostly measuring size and maintainability. A metric is some sort of measurement which is intended to help you make a decision about a piece of code. There aren't any hard rules about metrics, but the ones provided should allow you to make decisions about modules or subroutines which are outliers. Abnormal measurements in a subroutine are a warning sign that you should reexamine that routine, checking for unusually low quality. This module uses the PPI module, and thus can parse Perl code without evaluating it. If you're interested in software metrics, I highly recommend "Code Complete" (Second Edition) by Steve McConnel (Microsoft Press). %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 %files -f %{name}.files %defattr(-,root,root,755) %doc CHANGES 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