perl-Class-Tiny/perl-Class-Tiny.spec
2021-05-17 10:04:50 +08:00

45 lines
1.5 KiB
RPMSpec

%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