2008-03-26 16:30:41 +01:00
|
|
|
#
|
2011-11-17 15:07:35 +01:00
|
|
|
# spec file for package perl-Test-Warn
|
2008-03-26 16:30:41 +01:00
|
|
|
#
|
2018-06-14 08:45:09 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-03-26 16:30:41 +01:00
|
|
|
#
|
2009-06-18 17:13: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.
|
|
|
|
|
2008-03-26 16:30:41 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Test-Warn
|
2018-06-28 12:46:12 +02:00
|
|
|
Version: 0.36
|
2012-05-29 14:30:21 +02:00
|
|
|
Release: 0
|
2011-11-17 15:07:35 +01:00
|
|
|
%define cpan_name Test-Warn
|
2008-03-26 16:30:41 +01:00
|
|
|
Summary: Perl extension to test methods for warnings
|
2018-06-14 08:45:09 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-01-09 11:51:26 +01:00
|
|
|
Group: Development/Libraries/Perl
|
2012-05-29 14:30:21 +02:00
|
|
|
Url: http://search.cpan.org/dist/Test-Warn/
|
2018-06-14 08:45:09 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGJ/%{cpan_name}-%{version}.tar.gz
|
2016-12-20 07:55:48 +01:00
|
|
|
Source1: cpanspec.yml
|
2012-05-29 14:30:21 +02:00
|
|
|
BuildArch: noarch
|
2008-03-26 16:30:41 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-09 11:51:26 +01:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2012-05-29 14:30:21 +02:00
|
|
|
BuildRequires: perl(Carp) >= 1.22
|
2010-01-09 11:51:26 +01:00
|
|
|
BuildRequires: perl(Sub::Uplevel) >= 0.12
|
2012-05-29 14:30:21 +02:00
|
|
|
Requires: perl(Carp) >= 1.22
|
2010-01-09 11:51:26 +01:00
|
|
|
Requires: perl(Sub::Uplevel) >= 0.12
|
2012-05-29 14:30:21 +02:00
|
|
|
%{perl_requires}
|
2008-03-26 16:30:41 +01:00
|
|
|
|
|
|
|
%description
|
2012-05-29 14:30:21 +02:00
|
|
|
A good style of Perl programming calls for a lot of diverse regression
|
|
|
|
tests.
|
2008-03-26 16:30:41 +01:00
|
|
|
|
2018-06-14 08:45:09 +02:00
|
|
|
This module provides a few convenience methods for testing warning
|
|
|
|
based-code.
|
2008-03-26 16:30:41 +01:00
|
|
|
|
2018-06-18 10:03:07 +02:00
|
|
|
If you are not already familiar with the Test::More manpage now would be
|
2012-05-29 14:30:21 +02:00
|
|
|
the time to go take a look.
|
2008-03-26 16:30:41 +01:00
|
|
|
|
|
|
|
%prep
|
2010-01-09 11:51:26 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2016-12-20 07:55:48 +01:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
2008-03-26 16:30:41 +01:00
|
|
|
|
|
|
|
%build
|
2012-05-29 14:30:21 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2008-03-26 16:30:41 +01:00
|
|
|
|
|
|
|
%check
|
2010-01-09 11:51:26 +01:00
|
|
|
%{__make} test
|
2008-03-26 16:30:41 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-01-09 11:51:26 +01:00
|
|
|
%perl_gen_filelist
|
2008-03-26 16:30:41 +01:00
|
|
|
|
2010-01-09 11:51:26 +01:00
|
|
|
%files -f %{name}.files
|
2012-05-29 14:30:21 +02:00
|
|
|
%defattr(-,root,root,755)
|
2010-01-09 11:51:26 +01:00
|
|
|
%doc Changes README
|
2008-07-25 17:00:53 +02:00
|
|
|
|
2008-03-26 16:30:41 +01:00
|
|
|
%changelog
|