Package perl-Test-Warnings: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | %define _unpackaged_files_terminate_build 1 Group: Development/Other # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-perl BuildRequires: perl-podlators # END SourceDeps(oneline) %define fedora 30 # fedora bcond_with macro %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} # redefine altlinux specific with and without %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} # Run optional test %if ! (0%{?rhel}) %bcond_without perl_Test_Warnings_enables_optional_test %else %bcond_with perl_Test_Warnings_enables_optional_test %endif Name: perl-Test-Warnings Version: 0.031 Release: alt1 Summary: Test for warnings and the lack of them License: GPL+ or Artistic URL: https://metacpan.org/release/Test-Warnings Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-Warnings-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: coreutils BuildRequires: findutils BuildRequires: rpm-build-perl BuildRequires: perl-devel BuildRequires: perl(ExtUtils/MakeMaker.pm) # Module BuildRequires: perl(Carp.pm) BuildRequires: perl(Exporter.pm) BuildRequires: perl(Test/Builder.pm) BuildRequires: perl(parent.pm) BuildRequires: perl(strict.pm) BuildRequires: perl(warnings.pm) # Test Suite BuildRequires: perl(ExtUtils/MakeMaker.pm) BuildRequires: perl(File/Spec.pm) BuildRequires: perl(if.pm) BuildRequires: perl(lib.pm) BuildRequires: perl(Test/More.pm) BuildRequires: perl(Test/Tester.pm) %if %{with perl_Test_Warnings_enables_optional_test} # Optional Tests BuildRequires: perl(CPAN/Meta.pm) %if 0%{?fedora} || 0%{?rhel} > 7 BuildRequires: perl(CPAN/Meta/Check.pm) %endif BuildRequires: perl(CPAN/Meta/Prereqs.pm) BuildRequires: perl(CPAN/Meta/Requirements.pm) BuildRequires: perl(PadWalker.pm) %endif # Runtime Requires: perl(Carp.pm) Source44: import.info %description If you've ever tried to use Test::NoWarnings to confirm there are no warnings generated by your tests, combined with the convenience of done_testing to not have to declare a test count, you'll have discovered that these two features do not play well together, as the test count will be calculated before the warnings test is run, resulting in a TAP error (see examples/test_nowarnings.pl in this distribution for a demonstration). This module is intended to be used as a drop-in replacement for Test::NoWarnings: it also adds an extra test, but runs this test before done_testing calculates the test count, rather than after. It does this by hooking into done_testing as well as via an END block. You can declare a plan, or not, and things will still Just Work. It is actually equivalent to: use Test::NoWarnings 1.04 ':early'; as warnings are still printed normally as they occur. You are safe, and enthusiastically encouraged, to perform a global search-replace of the above with use Test::Warnings; whether or not your tests have a plan. %prep %setup -q -n Test-Warnings-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete # %{_fixperms} -c %{buildroot} %check make test %files %doc LICENCE examples %doc Changes CONTRIBUTING README examples/ %{perl_vendor_privlib}/Test/ %changelog * Thu Jul 15 2021 Igor Vlasenko <viy@altlinux.org> 0.031-alt1 - automated CPAN update * Wed Mar 25 2020 Igor Vlasenko <viy@altlinux.ru> 0.030-alt1 - automated CPAN update * Sat Mar 14 2020 Igor Vlasenko <viy@altlinux.ru> 0.029-alt1 - automated CPAN update * Wed Dec 25 2019 Igor Vlasenko <viy@altlinux.ru> 0.028-alt1 - automated CPAN update * Wed Nov 20 2019 Igor Vlasenko <viy@altlinux.ru> 0.027-alt1_1 - update to new release by fcimport * Mon Sep 30 2019 Igor Vlasenko <viy@altlinux.ru> 0.027-alt1 - automated CPAN update * Sat Jul 14 2018 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1_8 - update to new release by fcimport * Mon Oct 02 2017 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1_6 - update to new release by fcimport * Thu Aug 03 2017 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1_5 - update to new release by fcimport * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1_4 - update to new release by fcimport * Mon Dec 19 2016 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1_3 - update to new release by fcimport * Mon Mar 07 2016 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1_2 - update to new release by fcimport * Wed Feb 10 2016 Igor Vlasenko <viy@altlinux.ru> 0.026-alt1 - automated CPAN update * Mon Jan 04 2016 Igor Vlasenko <viy@altlinux.ru> 0.024-alt1 - automated CPAN update * Sun Dec 27 2015 Igor Vlasenko <viy@altlinux.ru> 0.023-alt1_1 - update to new release by fcimport * Mon Dec 21 2015 Igor Vlasenko <viy@altlinux.ru> 0.022-alt1 - automated CPAN update * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 0.021-alt1_3 - update to new release by fcimport * Tue Apr 07 2015 Igor Vlasenko <viy@altlinux.ru> 0.021-alt1_1 - update to new release by fcimport * Wed Apr 01 2015 Igor Vlasenko <viy@altlinux.ru> 0.021-alt1 - automated CPAN update * Mon Jan 12 2015 Igor Vlasenko <viy@altlinux.ru> 0.020-alt1 - automated CPAN update * Mon Dec 22 2014 Igor Vlasenko <viy@altlinux.ru> 0.019-alt1_1 - update to new release by fcimport * Mon Oct 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.016-alt1_2 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.016-alt1_1 - update to new release by fcimport * Fri Mar 07 2014 Igor Vlasenko <viy@altlinux.ru> 0.014-alt1_1 - update to new release by fcimport * Wed Mar 05 2014 Igor Vlasenko <viy@altlinux.ru> 0.014-alt1 - automated CPAN update * Sat Oct 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.010-alt2_1 - bumped release to override the autoimports package * Thu Oct 10 2013 Igor Vlasenko <viy@altlinux.ru> 0.010-alt1_1 - update to new release by fcimport * Wed Sep 25 2013 Igor Vlasenko <viy@altlinux.ru> 0.010-alt1 - automated CPAN update * Wed Sep 18 2013 Igor Vlasenko <viy@altlinux.ru> 0.009-alt2_1 - Sisyphus build * Sun Sep 15 2013 Igor Vlasenko <viy@altlinux.ru> 0.009-alt1_1 - update to new release by fcimport * Mon Sep 02 2013 Igor Vlasenko <viy@altlinux.ru> 0.008-alt1_3 - update to new release by fcimport * Mon Aug 05 2013 Igor Vlasenko <viy@altlinux.ru> 0.008-alt1_2 - update to new release by fcimport * Fri Aug 02 2013 Igor Vlasenko <viy@altlinux.ru> 0.008-alt1_1 - fc import |