From 2927afe88c5c927b051e6a1c9890b1bdd1b0704f Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 9 Oct 2020 08:30:42 +0200 Subject: [PATCH] - new --- perl-TAP-Formatter-JUnit.spec | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 perl-TAP-Formatter-JUnit.spec diff --git a/perl-TAP-Formatter-JUnit.spec b/perl-TAP-Formatter-JUnit.spec new file mode 100644 index 0000000..dda6ce5 --- /dev/null +++ b/perl-TAP-Formatter-JUnit.spec @@ -0,0 +1,69 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%define pdir TAP +%define pnam Formatter-JUnit +Summary: TAP::Formatter::JUnit - Harness output delegate for JUnit output +Summary(pl.UTF-8): TAP::Formatter::Junit - moduł TAP Test Harness tworzący wyjście JUnit +Name: perl-TAP-Formatter-JUnit +Version: 0.11 +Release: 1 +# same as perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/TAP/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: acdae8535ee116c13f7576b34cebb775 +URL: https://metacpan.org/release/TAP-Formatter-JUnit +BuildRequires: perl-Module-Build +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.745 +%if %{with tests} +BuildRequires: perl(TAP::Harness) >= 3.12 +BuildRequires: perl-File-Slurp +BuildRequires: perl-IO-stringy +BuildRequires: perl-IPC-Run +BuildRequires: perl-Moose +BuildRequires: perl-MooseX-NonMoose +BuildRequires: perl-Test-XML +BuildRequires: perl-XML-Generator +%endif +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +TAP::Formatter::JUnit provides JUnit output formatting for +TAP::Harness. + +%description -l pl.UTF-8 +TAP::Formatter::JUnit zapewnia formatowanie wyjścia JUnit dla modułu +TAP::Harness. + +%prep +%setup -q -n %{pdir}-%{pnam}-%{version} + +%build +%{__perl} Build.PL \ + destdir=$RPM_BUILD_ROOT \ + installdirs=vendor +./Build + +%{?with_tests:./Build test} + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%attr(755,root,root) %{_bindir}/tap2junit +%{perl_vendorlib}/TAP/Formatter/JUnit.pm +%{perl_vendorlib}/TAP/Formatter/JUnit +%{_mandir}/man1/tap2junit.1p* +%{_mandir}/man3/TAP::Formatter::JUnit*.3pm* -- 2.44.0