]>
Commit | Line | Data |
---|---|---|
d27b8249 AM |
1 | # |
2 | # Conditional build: | |
ef539271 | 3 | %bcond_without tests # unit tests |
d27b8249 AM |
4 | # |
5 | %define pdir Test2 | |
6 | %define pnam Suite | |
d27b8249 | 7 | Summary: Test2::Suite - Distribution with a rich set of tools built upon the Test2 framework |
9311e233 | 8 | Summary(pl.UTF-8): Test2::Suite - pakiet z bogatym zestawem narzędzi opartych na szkielecie Test2 |
d27b8249 | 9 | Name: perl-Test2-Suite |
ef539271 | 10 | Version: 0.000145 |
9930310a | 11 | Release: 1 |
9311e233 | 12 | # same as perl 5 |
d27b8249 AM |
13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Test2-Suite-%{version}.tar.gz | |
ef539271 | 16 | # Source0-md5: 5fcc87c264a1e93fe7cb0879a0abae15 |
7f9149f4 | 17 | URL: https://metacpan.org/release/Test2-Suite |
9311e233 | 18 | BuildRequires: perl-devel >= 1:5.8.1 |
d27b8249 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
9930310a | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
d27b8249 | 21 | %if %{with tests} |
24c5be39 MK |
22 | BuildRequires: perl-Importer >= 0.024 |
23 | BuildRequires: perl-Module-Pluggable >= 2.7 | |
9311e233 | 24 | BuildRequires: perl-Scalar-List-Utils |
24c5be39 MK |
25 | BuildRequires: perl-Scope-Guard |
26 | BuildRequires: perl-Sub-Info >= 0.002 | |
9930310a JB |
27 | BuildRequires: perl-Term-Table >= 0.013 |
28 | BuildRequires: perl-Test-Simple >= 1.302176 | |
7f9149f4 | 29 | BuildRequires: perl-Time-HiRes |
d27b8249 | 30 | %endif |
24c5be39 | 31 | Requires: perl-Importer >= 0.024 |
9930310a | 32 | Requires: perl-Test-Simple >= 1.302176 |
d27b8249 AM |
33 | BuildArch: noarch |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
9311e233 | 37 | Rich set of tools, plugins, bundles, etc. built upon the Test2 testing |
d27b8249 AM |
38 | library. If you are interested in writing tests, this is the |
39 | distribution for you. | |
40 | ||
9311e233 JB |
41 | %description -l pl.UTF-8 |
42 | Bogaty zestaw narzędzi, wtyczek, opakowań itp. zbudowanych w oparciu o | |
43 | bibliotekę testów Test2. Jest przydatny w przypadku pisania testów. | |
d27b8249 AM |
44 | |
45 | %prep | |
46 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
47 | ||
48 | %build | |
49 | %{__perl} Makefile.PL \ | |
50 | INSTALLDIRS=vendor | |
51 | %{__make} | |
52 | ||
53 | %{?with_tests:%{__make} test} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} pure_install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
71ab66cb | 66 | %doc Changes README.md |
e8b5bf19 | 67 | %dir %{perl_vendorlib}/Test2 |
71ab66cb MK |
68 | %{perl_vendorlib}/Test2/AsyncSubtest.pm |
69 | %{perl_vendorlib}/Test2/AsyncSubtest | |
d27b8249 AM |
70 | %{perl_vendorlib}/Test2/Bundle.pm |
71 | %{perl_vendorlib}/Test2/Bundle | |
72 | %{perl_vendorlib}/Test2/Compare.pm | |
73 | %{perl_vendorlib}/Test2/Compare | |
71ab66cb MK |
74 | %{perl_vendorlib}/Test2/Manual.pm |
75 | %{perl_vendorlib}/Test2/Manual | |
d27b8249 AM |
76 | %{perl_vendorlib}/Test2/Mock.pm |
77 | %{perl_vendorlib}/Test2/Plugin.pm | |
78 | %{perl_vendorlib}/Test2/Plugin | |
79 | %{perl_vendorlib}/Test2/Require.pm | |
80 | %{perl_vendorlib}/Test2/Require | |
81 | %{perl_vendorlib}/Test2/Suite.pm | |
82 | %{perl_vendorlib}/Test2/Todo.pm | |
83 | %{perl_vendorlib}/Test2/Tools.pm | |
84 | %{perl_vendorlib}/Test2/Tools | |
e8b5bf19 | 85 | %dir %{perl_vendorlib}/Test2/Util |
9311e233 JB |
86 | %{perl_vendorlib}/Test2/Util/Grabber.pm |
87 | %{perl_vendorlib}/Test2/Util/Ref.pm | |
88 | %{perl_vendorlib}/Test2/Util/Stash.pm | |
89 | %{perl_vendorlib}/Test2/Util/Sub.pm | |
90 | %{perl_vendorlib}/Test2/Util/Table.pm | |
91 | %{perl_vendorlib}/Test2/Util/Table | |
71ab66cb MK |
92 | %{perl_vendorlib}/Test2/Util/Term.pm |
93 | %{perl_vendorlib}/Test2/Util/Times.pm | |
94 | %{perl_vendorlib}/Test2/V0.pm | |
95 | %{perl_vendorlib}/Test2/Workflow.pm | |
96 | %{perl_vendorlib}/Test2/Workflow | |
97 | %{_mandir}/man3/Test2::AsyncSubtest*.3pm* | |
9311e233 JB |
98 | %{_mandir}/man3/Test2::Bundle*.3pm* |
99 | %{_mandir}/man3/Test2::Compare*.3pm* | |
71ab66cb | 100 | %{_mandir}/man3/Test2::Manual*.3pm* |
9311e233 JB |
101 | %{_mandir}/man3/Test2::Mock.3pm* |
102 | %{_mandir}/man3/Test2::Plugin*.3pm* | |
103 | %{_mandir}/man3/Test2::Require*.3pm* | |
104 | %{_mandir}/man3/Test2::Suite.3pm* | |
105 | %{_mandir}/man3/Test2::Todo.3pm* | |
106 | %{_mandir}/man3/Test2::Tools*.3pm* | |
107 | %{_mandir}/man3/Test2::Util::Grabber.3pm* | |
108 | %{_mandir}/man3/Test2::Util::Ref.3pm* | |
109 | %{_mandir}/man3/Test2::Util::Stash.3pm* | |
110 | %{_mandir}/man3/Test2::Util::Sub.3pm* | |
111 | %{_mandir}/man3/Test2::Util::Table*.3pm* | |
71ab66cb MK |
112 | %{_mandir}/man3/Test2::Util::Times.3pm* |
113 | %{_mandir}/man3/Test2::V0.3pm* | |
114 | %{_mandir}/man3/Test2::Workflow*.3pm* |