perl-parent/perl-parent.spec

61 lines
1.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:00 -04:00
%global perl_package_name parent
Name: perl-parent
Epoch: 1
2020-07-25 17:18:39 +08:00
Version: 0.238
Release: 2
2019-09-30 11:13:00 -04:00
Summary: Establish an ISA relationship with base classes at compile time
License: GPL+ or Artistic
URL: https://metacpan.org/release/parent
Source0: https://cpan.metacpan.org/authors/id/C/CO/CORION/%{perl_package_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: gcc make
2019-09-30 11:13:00 -04:00
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
2020-07-25 17:18:39 +08:00
BuildRequires: perl(Test::More) >= 0.40
2019-09-30 11:13:00 -04:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Allows you to both load one or more modules, while setting up inheritance
from those modules at the same time.
%package_help
%prep
%autosetup -n %{perl_package_name}-%{version} -p1
2019-09-30 11:13:00 -04:00
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} -c $RPM_BUILD_ROOT
%check
make test
%files
%doc Changes
%{perl_vendorlib}/parent.pm
%files help
%{_mandir}/man3/parent.3*
%changelog
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.238-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2020-07-25 17:18:39 +08:00
* Sat Jul 25 2020 zhanzhimin <zhanzhimin@huawei.com> - 1:0.238-1
2019-09-30 11:13:00 -04:00
* Thu Sep 26 2019 shenyangyang<shenyangyang4@huawei.com> - 1:0.237-4
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise help package
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.237-3
- Package Init