Init package

This commit is contained in:
misaka00251 2022-07-15 22:11:28 +08:00
parent 14bf1004bb
commit 0b68c0cba5
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
2 changed files with 76 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,76 @@
%bcond_with perl_Package_Stash_XS_enables_optional_test
Name: perl-Package-Stash-XS
Version: 0.30
Release: 1
Summary: Faster and more correct implementation of the Package::Stash API
License: GPL+ or Artistic
URL: https://metacpan.org/release/Package-Stash-XS
Source0: https://cpan.metacpan.org/modules/by-module/Package/Package-Stash-XS-%{version}.tar.gz
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
# Test Suite
BuildRequires: perl(B)
BuildRequires: perl(base)
BuildRequires: perl(blib)
BuildRequires: perl(constant)
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Symbol)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Needs)
%if %{with perl_Package_Stash_XS_enables_optional_test}
# Optional Tests
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Package::Anon)
BuildRequires: perl(Variable::Magic)
%endif
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter}
%description
This is a back-end for Package::Stash, which provides the functionality in a
way that's less buggy and much faster. It will be used by default if it's
installed, and should be preferred in all environments with a compiler.
%prep
%setup -q -n Package-Stash-XS-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
%check
make test
%files
%license LICENSE
%doc Changes CONTRIBUTING README
%{perl_vendorarch}/auto/Package/
%{perl_vendorarch}/Package/
%{_mandir}/man3/Package::Stash::XS.3*
%changelog
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.30-1
- Init package (Thanks to fedora team)