40804df8de
Copy from devel:languages:perl/perl-Test-Warn based on submit request 47998 from user anicka OBS-URL: https://build.opensuse.org/request/show/47998 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Warn?expand=0&rev=9
80 lines
2.2 KiB
RPMSpec
80 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package perl-Test-Warn (Version 0.22)
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-Test-Warn
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
Summary: Perl extension to test methods for warnings
|
|
Version: 0.22
|
|
Release: 1
|
|
License: Artistic
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/Test-Warn
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
|
BuildRequires: perl(Test::Builder::Tester) >= 1.02
|
|
#BuildRequires: perl(Array::Compare)
|
|
#BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::Builder) >= 0.13
|
|
BuildRequires: perl(Sub::Uplevel) >= 0.12
|
|
BuildRequires: perl(Tree::DAG_Node)
|
|
Requires: perl = %{perl_version}
|
|
Requires: perl(Test::Builder) >= 0.13
|
|
Requires: perl(Sub::Uplevel) >= 0.12
|
|
Requires: perl(Tree::DAG_Node)
|
|
Provides: %{cpan_name}
|
|
|
|
%description
|
|
This module provides a few convenience methods for testing warning
|
|
based code.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Janek Schleicher, <bigj AT kamelfreund.de>
|
|
Alexandr Ciornii, <alexchorny'.'@gmail.com>
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
%{__make}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
|
|
%changelog
|