Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
perl-Devel-Cover
perl-Devel-Cover.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Devel-Cover.spec of Package perl-Devel-Cover
# # spec file for package perl-Devel-Cover # # Copyright (c) 2024 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 Devel-Cover Name: perl-Devel-Cover Version: 1.440.0 Release: 0 # 1.44 -> normalize -> 1.440.0 %define cpan_version 1.44 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Code coverage metrics for Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PJ/PJCJ/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(HTML::Entities) >= 3.69 BuildRequires: perl(Test::More) >= 0.88 Requires: perl(HTML::Entities) >= 3.69 Provides: perl(Devel::Cover) = %{version} Provides: perl(Devel::Cover::Annotation::Git) = %{version} Provides: perl(Devel::Cover::Annotation::Random) = %{version} Provides: perl(Devel::Cover::Annotation::Svk) = %{version} Provides: perl(Devel::Cover::Branch) = %{version} Provides: perl(Devel::Cover::Collection) = %{version} Provides: perl(Devel::Cover::Collection::Template::Provider) = %{version} Provides: perl(Devel::Cover::Condition) = %{version} Provides: perl(Devel::Cover::Condition_and_2) = %{version} Provides: perl(Devel::Cover::Condition_and_3) = %{version} Provides: perl(Devel::Cover::Condition_or_2) = %{version} Provides: perl(Devel::Cover::Condition_or_3) = %{version} Provides: perl(Devel::Cover::Condition_xor_4) = %{version} Provides: perl(Devel::Cover::Criterion) = %{version} Provides: perl(Devel::Cover::DB) = %{version} Provides: perl(Devel::Cover::DB::Criterion) = %{version} Provides: perl(Devel::Cover::DB::Digests) = %{version} Provides: perl(Devel::Cover::DB::File) = %{version} Provides: perl(Devel::Cover::DB::IO) = %{version} Provides: perl(Devel::Cover::DB::IO::Base) = %{version} Provides: perl(Devel::Cover::DB::IO::JSON) = %{version} Provides: perl(Devel::Cover::DB::IO::Sereal) = %{version} Provides: perl(Devel::Cover::DB::IO::Storable) = %{version} Provides: perl(Devel::Cover::DB::Run) = %{version} Provides: perl(Devel::Cover::DB::Structure) = %{version} Provides: perl(Devel::Cover::Html_Common) = %{version} Provides: perl(Devel::Cover::Op) = %{version} Provides: perl(Devel::Cover::Pod) = %{version} Provides: perl(Devel::Cover::Report::Compilation) = %{version} Provides: perl(Devel::Cover::Report::Html) = %{version} Provides: perl(Devel::Cover::Report::Html_basic) = %{version} Provides: perl(Devel::Cover::Report::Html_basic::Template::Provider) = %{version} Provides: perl(Devel::Cover::Report::Html_minimal) = %{version} Provides: perl(Devel::Cover::Report::Html_subtle) = %{version} Provides: perl(Devel::Cover::Report::Html_subtle::Template::Provider) = %{version} Provides: perl(Devel::Cover::Report::Json) = %{version} Provides: perl(Devel::Cover::Report::Sort) = %{version} Provides: perl(Devel::Cover::Report::Text) = %{version} Provides: perl(Devel::Cover::Report::Text2) = %{version} Provides: perl(Devel::Cover::Report::Vim) = %{version} Provides: perl(Devel::Cover::Report::Vim::Template::Provider) = %{version} Provides: perl(Devel::Cover::Statement) = %{version} Provides: perl(Devel::Cover::Subroutine) = %{version} Provides: perl(Devel::Cover::Test) = %{version} Provides: perl(Devel::Cover::Time) = %{version} Provides: perl(Devel::Cover::Truth_Table) = %{version} Provides: perl(Devel::Cover::Truth_Table::Row) = %{version} Provides: perl(Devel::Cover::Util) = %{version} Provides: perl(Devel::Cover::Web) = %{version} %undefine __perllib_provides Recommends: perl(Browser::Open) Recommends: perl(Capture::Tiny) Recommends: perl(Class::XSAccessor) Recommends: perl(HTML::Parser) Recommends: perl(JSON::MaybeXS) >= 1.003003 Recommends: perl(Moo) Recommends: perl(PPI::HTML) >= 1.07 Recommends: perl(Parallel::Iterator) Recommends: perl(Perl::Tidy) >= 20060719 Recommends: perl(Pod::Coverage) >= 0.06 Recommends: perl(Pod::Coverage::CountParents) Recommends: perl(Sereal::Decoder) Recommends: perl(Sereal::Encoder) Recommends: perl(Template) >= 2.00 Recommends: perl(Test::Differences) Recommends: perl(namespace::clean) %{perl_requires} %description This module provides code coverage metrics for Perl. Code coverage metrics describe how thoroughly tests exercise code. By using Devel::Cover you can discover areas of code not exercised by your tests and determine which tests to create to increase coverage. Code coverage can be considered an indirect measure of quality. Devel::Cover is now quite stable and provides many of the features to be expected in a useful coverage tool. Statement, branch, condition, subroutine, and pod coverage information is reported. Statement and subroutine coverage data should be accurate. Branch and condition coverage data should be mostly accurate too, although not always what one might initially expect. Pod coverage comes from Pod::Coverage. If Pod::Coverage::CountParents is available it will be used instead. The _cover_ program can be used to generate coverage reports. Devel::Cover ships with a number of reports including various types of HTML output, textual reports, a report to display missing coverage in the same format as compilation errors and a report to display coverage information within the Vim editor. It is possible to add annotations to reports, for example you can add a column to an HTML report showing who last changed a line, as determined by git blame. Some annotation modules are shipped with Devel::Cover and you can easily create your own. The _gcov2perl_ program can be used to convert gcov files to 'Devel::Cover' databases. This allows you to display your C or XS code coverage together with your Perl coverage, or to use any of the Devel::Cover reports to display your C coverage data. Code coverage data are collected by replacing perl ops with functions which count how many times the ops are executed. These data are then mapped back to reality using the B compiler modules. There is also a statement profiling facility which should not be relied on. For proper profiling use Devel::NYTProf. Previous versions of Devel::Cover collected coverage data by replacing perl's runops function. It is still possible to switch to that mode of operation, but this now gets little testing and will probably be removed soon. You probably don't care about any of this. The most appropriate mailing list on which to discuss this module would be perl-qa. See http://lists.perl.org/list/perl-qa.html. The Devel::Cover repository can be found at http://github.com/pjcj/Devel--Cover. This is also where problems should be reported. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes Contributors docs README.md %license LICENCE %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