!1 Initial package for openEuler
From: @together17 Reviewed-by: @shinwell_hu, @myeuler Signed-off-by: @shinwell_hu, @myeuler
This commit is contained in:
commit
c2e1d0bf99
BIN
Test-Object-0.08.tar.gz
Normal file
BIN
Test-Object-0.08.tar.gz
Normal file
Binary file not shown.
59
perl-Test-Object.spec
Normal file
59
perl-Test-Object.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: perl-Test-Object
|
||||||
|
Version: 0.08
|
||||||
|
Release: 1
|
||||||
|
Summary: Thoroughly testing objects via registered handlers
|
||||||
|
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: https://metacpan.org/release/Test-Object
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Object-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(:VERSION) >= 5.6
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Run-time
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(Scalar::Util) >= 1.16
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(vars)
|
||||||
|
# Tests
|
||||||
|
BuildRequires: perl(File::Spec)
|
||||||
|
BuildRequires: perl(File::Spec::Functions)
|
||||||
|
BuildRequires: perl(FindBin)
|
||||||
|
BuildRequires: perl(lib)
|
||||||
|
BuildRequires: perl(Test::Builder::Tester)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
Test::Object is a testing package designed to allow you to easily test
|
||||||
|
what you believe is a valid object against the expected behaviour of
|
||||||
|
all of the classes in its inheritance tree in one single call.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Test-Object-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc Changes CONTRIBUTING README
|
||||||
|
%{perl_vendorlib}/Test/
|
||||||
|
%{_mandir}/man3/*.3pm*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 09 2021 Liang Changwei <liangchangwei@kylinos.cn> - 0.06-1
|
||||||
|
- First build for openEuler.
|
||||||
Loading…
x
Reference in New Issue
Block a user