!1 Init package

From: @misaka00251 
Reviewed-by: @geasscore 
Signed-off-by: @geasscore
This commit is contained in:
openeuler-ci-bot 2022-08-16 02:24:05 +00:00 committed by Gitee
commit 5b06cb35d7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 59 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,59 @@
%bcond_with perl_Class_Data_Inheritable_enables_optional_test
Name: perl-Class-Data-Inheritable
Version: 0.09
Release: 1
Summary: Inheritable, overridable class data
License: GPL+ or Artistic
URL: https://metacpan.org/release/Class-Data-Inheritable
Source0: https://cpan.metacpan.org/modules/by-module/Class/Class-Data-Inheritable-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Tests:
BuildRequires: perl(base)
BuildRequires: perl(Test::More)
%if %{with perl_Class_Data_Inheritable_enables_optional_test}
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
%description
Class::Data::Inheritable is for creating accessor/mutators to
class data. That is, if you want to store something about your
class as a whole (instead of about a single object). This data
is then inherited by your sub-classes and can be overridden.
%prep
%setup -q -n Class-Data-Inheritable-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%check
make test
%files
%{perl_vendorlib}/Class/
%{_mandir}/man3/Class::Data::Inheritable.3*
%changelog
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.09-1
- Init package (Thanks to fedora team)