# # Conditional build: %bcond_without tests # unit tests # %define pdir Test2 %define pnam Suite Summary: Test2::Suite - Distribution with a rich set of tools built upon the Test2 framework Summary(pl.UTF-8): Test2::Suite - pakiet z bogatym zestawem narzędzi opartych na szkielecie Test2 Name: perl-Test2-Suite Version: 0.000145 Release: 1 # same as perl 5 License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Test2-Suite-%{version}.tar.gz # Source0-md5: 5fcc87c264a1e93fe7cb0879a0abae15 URL: https://metacpan.org/release/Test2-Suite BuildRequires: perl-devel >= 1:5.8.1 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: rpmbuild(macros) >= 1.745 %if %{with tests} BuildRequires: perl-Importer >= 0.024 BuildRequires: perl-Module-Pluggable >= 2.7 BuildRequires: perl-Scalar-List-Utils BuildRequires: perl-Scope-Guard BuildRequires: perl-Sub-Info >= 0.002 BuildRequires: perl-Term-Table >= 0.013 BuildRequires: perl-Test-Simple >= 1.302176 BuildRequires: perl-Time-HiRes %endif Requires: perl-Importer >= 0.024 Requires: perl-Test-Simple >= 1.302176 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Rich set of tools, plugins, bundles, etc. built upon the Test2 testing library. If you are interested in writing tests, this is the distribution for you. %description -l pl.UTF-8 Bogaty zestaw narzędzi, wtyczek, opakowań itp. zbudowanych w oparciu o bibliotekę testów Test2. Jest przydatny w przypadku pisania testów. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README.md %dir %{perl_vendorlib}/Test2 %{perl_vendorlib}/Test2/AsyncSubtest.pm %{perl_vendorlib}/Test2/AsyncSubtest %{perl_vendorlib}/Test2/Bundle.pm %{perl_vendorlib}/Test2/Bundle %{perl_vendorlib}/Test2/Compare.pm %{perl_vendorlib}/Test2/Compare %{perl_vendorlib}/Test2/Manual.pm %{perl_vendorlib}/Test2/Manual %{perl_vendorlib}/Test2/Mock.pm %{perl_vendorlib}/Test2/Plugin.pm %{perl_vendorlib}/Test2/Plugin %{perl_vendorlib}/Test2/Require.pm %{perl_vendorlib}/Test2/Require %{perl_vendorlib}/Test2/Suite.pm %{perl_vendorlib}/Test2/Todo.pm %{perl_vendorlib}/Test2/Tools.pm %{perl_vendorlib}/Test2/Tools %dir %{perl_vendorlib}/Test2/Util %{perl_vendorlib}/Test2/Util/Grabber.pm %{perl_vendorlib}/Test2/Util/Ref.pm %{perl_vendorlib}/Test2/Util/Stash.pm %{perl_vendorlib}/Test2/Util/Sub.pm %{perl_vendorlib}/Test2/Util/Table.pm %{perl_vendorlib}/Test2/Util/Table %{perl_vendorlib}/Test2/Util/Term.pm %{perl_vendorlib}/Test2/Util/Times.pm %{perl_vendorlib}/Test2/V0.pm %{perl_vendorlib}/Test2/Workflow.pm %{perl_vendorlib}/Test2/Workflow %{_mandir}/man3/Test2::AsyncSubtest*.3pm* %{_mandir}/man3/Test2::Bundle*.3pm* %{_mandir}/man3/Test2::Compare*.3pm* %{_mandir}/man3/Test2::Manual*.3pm* %{_mandir}/man3/Test2::Mock.3pm* %{_mandir}/man3/Test2::Plugin*.3pm* %{_mandir}/man3/Test2::Require*.3pm* %{_mandir}/man3/Test2::Suite.3pm* %{_mandir}/man3/Test2::Todo.3pm* %{_mandir}/man3/Test2::Tools*.3pm* %{_mandir}/man3/Test2::Util::Grabber.3pm* %{_mandir}/man3/Test2::Util::Ref.3pm* %{_mandir}/man3/Test2::Util::Stash.3pm* %{_mandir}/man3/Test2::Util::Sub.3pm* %{_mandir}/man3/Test2::Util::Table*.3pm* %{_mandir}/man3/Test2::Util::Times.3pm* %{_mandir}/man3/Test2::V0.3pm* %{_mandir}/man3/Test2::Workflow*.3pm*