Группа :: Other
Пакет: perl-Test-FailWarnings
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-FailWarnings
Version: 0.008
Release: alt1_13
Summary: Add test failures if warnings are caught
License: ASL 2.0
URL: https://metacpan.org/release/Test-FailWarnings
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-FailWarnings-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(warnings.pm)
# Run-time:
BuildRequires: perl(Carp.pm)
BuildRequires: perl(Cwd.pm)
BuildRequires: perl(File/Spec.pm)
BuildRequires: perl(Test/More.pm)
# Tests:
BuildRequires: perl(Capture/Tiny.pm)
BuildRequires: perl(constant.pm)
BuildRequires: perl(File/Spec/Functions.pm)
BuildRequires: perl(File/Temp.pm)
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(IPC/Open3.pm)
BuildRequires: perl(lib.pm)
BuildRequires: perl(List/Util.pm)
Source44: import.info
%description
This module hooks $SIG{__WARN__} and converts warnings to Test::More's
fail() calls. It is designed to be used with done_testing, when you don't
need to know the test count in advance.
%prep
%setup -q -n Test-FailWarnings-%{version}
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes CONTRIBUTING LICENSE README
%{perl_vendor_privlib}/*
%changelog
…
Полный changelog можно просмотреть здесь
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-FailWarnings
Version: 0.008
Release: alt1_13
Summary: Add test failures if warnings are caught
License: ASL 2.0
URL: https://metacpan.org/release/Test-FailWarnings
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-FailWarnings-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(warnings.pm)
# Run-time:
BuildRequires: perl(Carp.pm)
BuildRequires: perl(Cwd.pm)
BuildRequires: perl(File/Spec.pm)
BuildRequires: perl(Test/More.pm)
# Tests:
BuildRequires: perl(Capture/Tiny.pm)
BuildRequires: perl(constant.pm)
BuildRequires: perl(File/Spec/Functions.pm)
BuildRequires: perl(File/Temp.pm)
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(IPC/Open3.pm)
BuildRequires: perl(lib.pm)
BuildRequires: perl(List/Util.pm)
Source44: import.info
%description
This module hooks $SIG{__WARN__} and converts warnings to Test::More's
fail() calls. It is designed to be used with done_testing, when you don't
need to know the test count in advance.
%prep
%setup -q -n Test-FailWarnings-%{version}
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes CONTRIBUTING LICENSE README
%{perl_vendor_privlib}/*
%changelog
…
Полный changelog можно просмотреть здесь