Package perl-Test-MockModule: 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 | %define _unpackaged_files_terminate_build 1 Group: Development/Other # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-perl BuildRequires: perl-podlators # END SourceDeps(oneline) # 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_MockModule_enables_optional_test %else %bcond_with perl_Test_MockModule_enables_optional_test %endif Name: perl-Test-MockModule Version: 0.177.0 Release: alt1 Summary: Override subroutines in a module for unit testing License: GPL+ or Artistic URL: https://metacpan.org/release/Test-MockModule Source0: http://www.cpan.org/authors/id/G/GF/GFRANKS/Test-MockModule-v%{version}.tar.gz BuildArch: noarch # Build: BuildRequires: coreutils BuildRequires: rpm-build-perl BuildRequires: perl-devel BuildRequires: perl(Module/Build.pm) BuildRequires: perl(strict.pm) BuildRequires: perl(warnings.pm) # Run-time: BuildRequires: perl(Carp.pm) BuildRequires: perl(Scalar/Util.pm) BuildRequires: perl(SUPER.pm) BuildRequires: perl(vars.pm) # Tests: BuildRequires: perl(lib.pm) BuildRequires: perl(parent.pm) BuildRequires: perl(Test/More.pm) BuildRequires: perl(Test/Warnings.pm) %if %{with perl_Test_MockModule_enables_optional_test} # Optional tests: BuildRequires: perl(Test/Pod.pm) BuildRequires: perl(Test/Pod/Coverage.pm) %endif Source44: import.info # Dependencies: %description Test::MockModule lets you temporarily redefine subroutines in other packages for the purposes of unit testing. A Test::MockModule object is set up to mock subroutines for a given module. The object remembers the original subroutine so it can easily be restored. This happens automatically when all MockModule objects for the given module go out of scope, or when you unmock() the subroutine. %prep %setup -q -n Test-MockModule-v%{version} %build perl Build.PL --installdirs=vendor ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 # %{_fixperms} -c %{buildroot} %check ./Build test %files %doc Changes README.md %{perl_vendor_privlib}/Test/ %changelog * Fri Sep 17 2021 Igor Vlasenko <viy@altlinux.org> 0.177.0-alt1 - automated CPAN update * Wed Jan 06 2021 Igor Vlasenko <viy@altlinux.ru> 0.176.0-alt1 - automated CPAN update * Thu Oct 01 2020 Igor Vlasenko <viy@altlinux.ru> 0.175.0-alt1 - automated CPAN update * Thu Jun 25 2020 Igor Vlasenko <viy@altlinux.ru> 0.173.0-alt1 - automated CPAN update * Thu Feb 20 2020 Igor Vlasenko <viy@altlinux.ru> 0.172.0-alt1 - automated CPAN update * Wed Nov 20 2019 Igor Vlasenko <viy@altlinux.ru> 0.171.0-alt1_1 - update to new release by fcimport * Mon Oct 28 2019 Igor Vlasenko <viy@altlinux.ru> 0.171.0-alt1 - automated CPAN update * Wed Oct 10 2018 Igor Vlasenko <viy@altlinux.ru> 0.170.0-alt1_1 - update to new release by fcimport * Sun Sep 02 2018 Igor Vlasenko <viy@altlinux.ru> 0.170.0-alt1 - automated CPAN update * Sat Jul 14 2018 Igor Vlasenko <viy@altlinux.ru> 0.15-alt1_2 - update to new release by fcimport * Fri May 25 2018 Igor Vlasenko <viy@altlinux.ru> 0.15-alt1_1 - update to new release by fcimport * Wed May 09 2018 Igor Vlasenko <viy@altlinux.ru> 0.15-alt1 - automated CPAN update * Mon May 07 2018 Igor Vlasenko <viy@altlinux.ru> 0.14-alt1 - automated CPAN update * Thu Oct 12 2017 Igor Vlasenko <viy@altlinux.ru> 0.13-alt1 - automated CPAN update * Wed Sep 27 2017 Igor Vlasenko <viy@altlinux.ru> 0.12-alt1_2 - update to new release by fcimport * Wed Aug 02 2017 Igor Vlasenko <viy@altlinux.ru> 0.12-alt1 - automated CPAN update * Thu Mar 16 2017 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_4 - update to new release by fcimport * Tue Jul 26 2016 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_3 - update to new release by fcimport * Mon Mar 07 2016 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_2 - update to new release by fcimport * Sun Dec 27 2015 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1_1 - update to new release by fcimport * Thu Oct 29 2015 Igor Vlasenko <viy@altlinux.ru> 0.11-alt1 - automated CPAN update * Thu Oct 15 2015 Igor Vlasenko <viy@altlinux.ru> 0.10-alt1_3 - new version * Mon Oct 27 2014 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1_22 - update to new release by fcimport * Tue Jul 01 2014 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1_21 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1_20 - update to new release by fcimport * Mon Aug 05 2013 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1_19 - update to new release by fcimport * Sun Feb 24 2013 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1_18 - update to new release by fcimport * Sat Oct 27 2012 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1_17 - picked up by robot, thanks to enp@ * Fri Oct 26 2012 Eugene Prokopiev <enp@altlinux.ru> 0.05-alt1 - initial build for ALT Linux Sisyphus |