!1 package init
From: @lpp-gitee Reviewed-by: @myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
8c3daeba71
BIN
Package-Stash-0.39.tar.gz
Normal file
BIN
Package-Stash-0.39.tar.gz
Normal file
Binary file not shown.
59
perl-Package-Stash.spec
Normal file
59
perl-Package-Stash.spec
Normal file
@ -0,0 +1,59 @@
|
||||
Name: perl-Package-Stash
|
||||
Version: 0.39
|
||||
Release: 1
|
||||
Summary: Routines for manipulating stashes
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Package-Stash
|
||||
Source0: https://cpan.metacpan.org/modules/by-module/Package/Package-Stash-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: coreutils findutils make perl-generators perl-interpreter perl(Config) perl(DynaLoader) perl(Exporter) perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(ExtUtils::Mksymlists) perl(File::Basename) perl(File::Spec::Functions) perl(File::Temp) perl(Text::ParseWords)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(B) perl(Carp) perl(constant) perl(Dist::CheckConflicts) >= 0.02 perl(Getopt::Long) perl(Module::Implementation) >= 0.06 perl(Package::Stash::XS) >= 0.26
|
||||
BuildRequires: perl(Scalar::Util) perl(strict) perl(Symbol) perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(base) perl(CPAN::Meta::Check) >= 0.011 perl(CPAN::Meta::Requirements) perl(File::Spec) perl(lib) perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::More) >= 0.88 perl(Test::Needs)
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
# For performance and consistency
|
||||
Requires: perl(Package::Stash::XS) >= 0.26
|
||||
# Not found by rpm auto-provides
|
||||
Provides: perl(Package::Stash::Conflicts) = 0
|
||||
|
||||
%description
|
||||
Manipulating stashes (Perl's symbol tables) is occasionally necessary, but
|
||||
incredibly messy, and easy to get wrong. This module hides all of that behind
|
||||
a simple API.
|
||||
|
||||
%prep
|
||||
%setup -q -n Package-Stash-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name .packlist -delete
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%if 0%{?_licensedir:1}
|
||||
%license LICENSE
|
||||
%else
|
||||
%doc LICENSE
|
||||
%endif
|
||||
%doc Changes CONTRIBUTING README
|
||||
%{_bindir}/package-stash-conflicts
|
||||
%{perl_vendorlib}/Package/
|
||||
%{_mandir}/man3/Package::Stash.3*
|
||||
%{_mandir}/man3/Package::Stash::PP.3*
|
||||
|
||||
%changelog
|
||||
* Wed Dec 29 2021 lipanpan <lipanpana@uniontech.com> - 0.39-1
|
||||
- package init
|
||||
Loading…
x
Reference in New Issue
Block a user