!1 Init package
From: @misaka00251 Reviewed-by: @geasscore Signed-off-by: @geasscore
This commit is contained in:
commit
86e1fef7d7
BIN
Params-Classify-0.015.tar.gz
Normal file
BIN
Params-Classify-0.015.tar.gz
Normal file
Binary file not shown.
73
perl-Params-Classify.spec
Normal file
73
perl-Params-Classify.spec
Normal file
@ -0,0 +1,73 @@
|
||||
%bcond_with perl_Params_Classify_enables_optional_test
|
||||
|
||||
Name: perl-Params-Classify
|
||||
Version: 0.015
|
||||
Release: 1
|
||||
Summary: Argument type classification
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Params-Classify
|
||||
Source0: https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/Params-Classify-%{version}.tar.gz
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::CBuilder) >= 0.15
|
||||
BuildRequires: perl(ExtUtils::ParseXS) >= 3.30
|
||||
BuildRequires: perl(Module::Build)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(Devel::CallChecker) >= 0.003
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(parent)
|
||||
BuildRequires: perl(Scalar::Util) >= 1.01
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
BuildRequires: perl(XSLoader)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_Params_Classify_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
%endif
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Devel::CallChecker) >= 0.003
|
||||
Requires: perl(Exporter)
|
||||
Requires: perl(Scalar::Util) >= 1.01
|
||||
Requires: perl(XSLoader)
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
This module provides various type-testing functions. These are intended
|
||||
for functions that, unlike most Perl code, care what type of data they
|
||||
are operating on. For example, some functions wish to behave
|
||||
differently depending on the type of their arguments (like overloaded
|
||||
functions in C++).
|
||||
|
||||
%prep
|
||||
%setup -q -n Params-Classify-%{version}
|
||||
|
||||
%build
|
||||
perl Build.PL --installdirs=vendor --optimize="%{optflags}"
|
||||
./Build
|
||||
|
||||
%install
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
find %{buildroot} -type f -name '*.bs' -empty -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorarch}/auto/Params/
|
||||
%{perl_vendorarch}/Params/
|
||||
%{_mandir}/man3/Params::Classify.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.015-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user