!1 perl-Class-Tiny package init

From: @jiangpengjuj
Reviewed-by: @small_leek,@myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2021-05-17 16:13:52 +08:00 committed by Gitee
commit bba75a3b49
2 changed files with 44 additions and 0 deletions

BIN
Class-Tiny-1.006.tar.gz Normal file

Binary file not shown.

44
perl-Class-Tiny.spec Normal file
View File

@ -0,0 +1,44 @@
%bcond_without perl_Class_Tiny_enables_optional_test
Name: perl-Class-Tiny
Version: 1.006
Release: 1
Summary: Minimalist class construction
License: ASL 2.0
URL: https://metacpan.org/release/Class-Tiny
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Class-Tiny-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make perl-generators perl-interpreter perl(:VERSION) >= 5.6
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(strict) perl(warnings) perl(Carp)
BuildRequires: perl(mro) perl(base) perl(Exporter) perl(File::Spec) perl(lib) perl(subs)
BuildRequires: perl(Test::More) >= 0.96
%if %{with perl_Class_Tiny_enables_optional_test}
BuildRequires: perl(Test::FailWarnings)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(mro)
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Devel::GlobalDestruction\\)
%description
This module offers a minimalist class construction kit in around 120 lines of code.
%prep
%setup -q -n Class-Tiny-%{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.mkdn README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon May 17 2021 Pengju Jiang <jiangpengju2@huawei.com> - 1.006-1
- package init