Package init
This commit is contained in:
commit
e6cacb632a
37
Test-Harness-3.38-Remove-shell-bangs.patch
Normal file
37
Test-Harness-3.38-Remove-shell-bangs.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From 6ea0e48ac56fc2c5e8600b5313f6c49b553c946b Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Tue, 14 Mar 2017 09:45:12 +0100
|
||||||
|
Subject: [PATCH] Remove shell bangs
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
examples/analyze_tests.pl | 2 --
|
||||||
|
examples/silent-harness.pl | 2 --
|
||||||
|
2 files changed, 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/examples/analyze_tests.pl b/examples/analyze_tests.pl
|
||||||
|
index c821f98..4076d9b 100644
|
||||||
|
--- a/examples/analyze_tests.pl
|
||||||
|
+++ b/examples/analyze_tests.pl
|
||||||
|
@@ -1,5 +1,3 @@
|
||||||
|
-#!/usr/bin/env perl
|
||||||
|
-
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
diff --git a/examples/silent-harness.pl b/examples/silent-harness.pl
|
||||||
|
index ae0e50e..6e477ed 100644
|
||||||
|
--- a/examples/silent-harness.pl
|
||||||
|
+++ b/examples/silent-harness.pl
|
||||||
|
@@ -1,5 +1,3 @@
|
||||||
|
-#!/usr/bin/perl
|
||||||
|
-#
|
||||||
|
# Run some tests and get back a data structure describing them.
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
||||||
BIN
Test-Harness-3.43_01.tar.gz
Normal file
BIN
Test-Harness-3.43_01.tar.gz
Normal file
Binary file not shown.
58
perl-Test-Harness.spec
Normal file
58
perl-Test-Harness.spec
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
Name: perl-Test-Harness
|
||||||
|
Epoch: 1
|
||||||
|
Version: 3.43_01
|
||||||
|
Release: 1
|
||||||
|
Summary: Run Perl standard test scripts with statistics
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: https://metacpan.org/release/Test-Harness
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/Test-Harness-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
BuildRequires: perl(CPAN::Meta::YAML)
|
||||||
|
BuildRequires: perl(File::Temp)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
Suggests: perl(Term::ANSIColor)
|
||||||
|
Suggests: perl(Time::HiRes)
|
||||||
|
|
||||||
|
# Filter example dependencies
|
||||||
|
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}^%{_datadir}/doc
|
||||||
|
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_datadir}/doc
|
||||||
|
|
||||||
|
%description
|
||||||
|
This package allows tests to be run and results automatically aggregated and
|
||||||
|
output to STDOUT.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n Test-Harness-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc Changes Changes-2.64 README
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%{_bindir}/*
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
%files help
|
||||||
|
%doc examples
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 29 2019 hexiaowen <hexiaowen@huawei.com> - 3.43_01-1
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user