diff --git a/Package-Stash-0.39.tar.gz b/Package-Stash-0.39.tar.gz new file mode 100644 index 0000000..8b75d65 Binary files /dev/null and b/Package-Stash-0.39.tar.gz differ diff --git a/perl-Package-Stash.spec b/perl-Package-Stash.spec new file mode 100644 index 0000000..a32f27f --- /dev/null +++ b/perl-Package-Stash.spec @@ -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 - 0.39-1 +- package init