mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-01-24 06:52:17 +08:00
74 lines
2.0 KiB
RPMSpec
74 lines
2.0 KiB
RPMSpec
|
%global cpanname Test-FailWarnings
|
||
|
|
||
|
Name: perl-%{cpanname}
|
||
|
Version: 0.008
|
||
|
Release: %{?repo}0.rc1%{?dist}
|
||
|
Summary: Add test failures if warnings are caught
|
||
|
BuildArch: noarch
|
||
|
|
||
|
Group: Development/Libraries
|
||
|
License: Apache-2.0
|
||
|
URL: https://metacpan.org/pod/Test::FailWarnings
|
||
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpanname}-%{version}.tar.gz
|
||
|
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
# for test
|
||
|
BuildRequires: perl(Test::More) >= 0.96
|
||
|
BuildRequires: perl(warnings)
|
||
|
BuildRequires: perl(Capture::Tiny) >= 0.12
|
||
|
BuildRequires: perl(File::Spec)
|
||
|
BuildRequires: perl(File::Spec::Functions)
|
||
|
BuildRequires: perl(File::Temp)
|
||
|
BuildRequires: perl(IO::Handle)
|
||
|
BuildRequires: perl(IPC::Open3)
|
||
|
BuildRequires: perl(List::Util)
|
||
|
BuildRequires: perl(constant)
|
||
|
BuildRequires: perl(lib)
|
||
|
# Runtime
|
||
|
Requires: perl(Carp)
|
||
|
Requires: perl(Cwd)
|
||
|
Requires: perl(File::Spec)
|
||
|
Requires: perl(Test::More) >= 0.86
|
||
|
Requires: perl(strict)
|
||
|
Requires: perl(warnings)
|
||
|
|
||
|
%description
|
||
|
This module hooks $SIG{__WARN__} and converts warnings to Test::More
|
||
|
fail() calls. It is designed to be used with done_testing, when you
|
||
|
don't need to know the test count in advance.
|
||
|
|
||
|
Just as with Test::NoWarnings, this does not catch warnings if other
|
||
|
things localize $SIG{__WARN__}, as this is designed to catch unhandled
|
||
|
warnings.
|
||
|
|
||
|
%prep
|
||
|
%setup -n %{cpanname}-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%check
|
||
|
make test > %{name}-make.test.log 2>&1
|
||
|
|
||
|
%install
|
||
|
make install DESTDIR=%{buildroot}
|
||
|
%{_fixperms} %{buildroot}%{perl5_vendorlib}
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%dir %{perl5_vendorlib}/Test
|
||
|
%attr(0444,root,root) %{perl5_vendorlib}/Test/FailWarnings.pm
|
||
|
%attr(0644,root,root) %{_mandir}/man3/Test::FailWarnings.3*
|
||
|
%license LICENSE
|
||
|
%doc CONTRIBUTING Changes LICENSE README
|
||
|
%doc %{name}-make.test.log
|
||
|
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Fri Apr 21 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.008-0.rc1
|
||
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|