2011-05-01 12:35:25 +02:00
|
|
|
#
|
2015-04-16 22:15:38 +02:00
|
|
|
# spec file for package perl-Test-Strict
|
2011-05-01 12:35:25 +02:00
|
|
|
#
|
2019-06-03 10:44:10 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-01 12:35:25 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-06-03 10:44:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-05-01 12:35:25 +02:00
|
|
|
#
|
|
|
|
|
2015-04-16 22:15:38 +02:00
|
|
|
|
2011-05-01 12:35:25 +02:00
|
|
|
Name: perl-Test-Strict
|
2019-06-15 17:02:01 +02:00
|
|
|
Version: 0.50
|
2015-04-16 22:15:38 +02:00
|
|
|
Release: 0
|
2011-05-01 12:35:25 +02:00
|
|
|
%define cpan_name Test-Strict
|
|
|
|
Summary: Check syntax, presence of use strict; and test coverage
|
2018-02-24 08:03:56 +01:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2011-05-01 12:35:25 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2019-06-03 10:44:10 +02:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2017-12-06 15:38:32 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{cpan_name}-%{version}.tar.gz
|
2015-04-16 22:15:38 +02:00
|
|
|
Source1: cpanspec.yml
|
2011-05-01 12:35:25 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-10-29 12:33:56 +01:00
|
|
|
BuildRequires: perl(IO::Scalar)
|
2015-04-16 22:15:38 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 1.00
|
2011-05-01 12:35:25 +02:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
The most basic test one can write is "does it compile ?". This module tests
|
2015-11-10 15:01:22 +01:00
|
|
|
if the code compiles and play nice with Test::Simple modules.
|
2011-05-01 12:35:25 +02:00
|
|
|
|
|
|
|
Another good practice this module can test is to "use strict;" in all perl
|
|
|
|
files.
|
|
|
|
|
|
|
|
By setting a minimum test coverage through 'all_cover_ok()', a code author
|
|
|
|
can ensure his code is tested above a preset level of _kwality_ throughout
|
|
|
|
the development cycle.
|
|
|
|
|
2015-11-10 15:01:22 +01:00
|
|
|
Along with Test::Pod, this module can provide the first tests to setup for
|
|
|
|
a module author.
|
2011-05-01 12:35:25 +02:00
|
|
|
|
|
|
|
This module should be able to run under the -T flag for perl >= 5.6. All
|
|
|
|
paths are untainted with the following pattern: 'qr|^([-+@\w./:\\]+)$|'
|
|
|
|
controlled by '$Test::Strict::UNTAINT_PATTERN'.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-06-03 10:44:10 +02:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
2011-05-01 12:35:25 +02:00
|
|
|
|
|
|
|
%check
|
2019-06-03 10:44:10 +02:00
|
|
|
make test
|
2011-05-01 12:35:25 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2017-12-06 15:38:32 +01:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-05-01 12:35:25 +02:00
|
|
|
|
|
|
|
%changelog
|