Group :: Development/Perl
RPM: perl-Test-Assertions
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Perl
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(IO/CaptureOutput.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-Assertions
Version: 1.054
Release: alt2_26
Summary: Simple set of building blocks for both unit and runtime testing
License: GPLv2
URL: https://metacpan.org/release/Test-Assertions
Source0: https://cpan.metacpan.org/authors/id/B/BB/BBC/Test-Assertions-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Runtime
BuildRequires: perl(Carp.pm)
BuildRequires: perl(File/Basename.pm)
BuildRequires: perl(File/Compare.pm)
BuildRequires: perl(File/Spec.pm)
BuildRequires: perl(Getopt/Long.pm)
# XXX: BuildRequires: perl(IO::CaptureOutput)
BuildRequires: perl(Log/Trace.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(vars.pm)
# Tests only
BuildRequires: perl(File/Spec/Functions.pm)
BuildRequires: perl(Getopt/Std.pm)
BuildRequires: perl(lib.pm)
# Optional tests only
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Pod/Coverage.pm)
Requires: perl(Carp.pm)
Requires: perl(File/Compare.pm)
Requires: perl(File/Spec.pm)
Requires: perl(IO/CaptureOutput.pm)
Requires: perl(Test/More.pm)
Source44: import.info
%description
Test::Assertions provides a convenient set of tools for constructing tests,
such as unit tests or run-time assertion checks (like C's ASSERT macro).
Unlike some of the Test:: modules available on CPAN, Test::Assertions is
not limited to unit test scripts; for example it can be used to check
output is as expected within a benchmarking script. When it is used for
unit tests, it generates output in the standard form for CPAN unit testing
(under Test::Harness).
%prep
%setup -q -n Test-Assertions-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc --no-dereference COPYING
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(IO/CaptureOutput.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-Assertions
Version: 1.054
Release: alt2_26
Summary: Simple set of building blocks for both unit and runtime testing
License: GPLv2
URL: https://metacpan.org/release/Test-Assertions
Source0: https://cpan.metacpan.org/authors/id/B/BB/BBC/Test-Assertions-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Runtime
BuildRequires: perl(Carp.pm)
BuildRequires: perl(File/Basename.pm)
BuildRequires: perl(File/Compare.pm)
BuildRequires: perl(File/Spec.pm)
BuildRequires: perl(Getopt/Long.pm)
# XXX: BuildRequires: perl(IO::CaptureOutput)
BuildRequires: perl(Log/Trace.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(vars.pm)
# Tests only
BuildRequires: perl(File/Spec/Functions.pm)
BuildRequires: perl(Getopt/Std.pm)
BuildRequires: perl(lib.pm)
# Optional tests only
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Pod/Coverage.pm)
Requires: perl(Carp.pm)
Requires: perl(File/Compare.pm)
Requires: perl(File/Spec.pm)
Requires: perl(IO/CaptureOutput.pm)
Requires: perl(Test/More.pm)
Source44: import.info
%description
Test::Assertions provides a convenient set of tools for constructing tests,
such as unit tests or run-time assertion checks (like C's ASSERT macro).
Unlike some of the Test:: modules available on CPAN, Test::Assertions is
not limited to unit test scripts; for example it can be used to check
output is as expected within a benchmarking script. When it is used for
unit tests, it generates output in the standard form for CPAN unit testing
(under Test::Harness).
%prep
%setup -q -n Test-Assertions-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc --no-dereference COPYING
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here