diff --git a/File-Find-Rule-Perl-1.15-fedora.patch b/File-Find-Rule-Perl-1.15-fedora.patch new file mode 100644 index 0000000..63ffb5b --- /dev/null +++ b/File-Find-Rule-Perl-1.15-fedora.patch @@ -0,0 +1,11 @@ +--- File-Find-Rule-Perl-1.15.orig/t/03_no_index.t 2015-04-05 22:57:10.000000000 +0200 ++++ File-Find-Rule-Perl-1.15/t/03_no_index.t 2015-04-15 12:39:45.612810084 +0200 +@@ -38,6 +38,8 @@ + MYMETA.json + }; + my @files = sort grep { ++ ! /^(debug|elf).*\.list/ ++ and + ! /^debian\b/ + and + ! /(?:^|\W)\.\w/ diff --git a/File-Find-Rule-Perl-1.15.tar.gz b/File-Find-Rule-Perl-1.15.tar.gz new file mode 100644 index 0000000..613ac98 Binary files /dev/null and b/File-Find-Rule-Perl-1.15.tar.gz differ diff --git a/perl-File-Find-Rule-Perl.spec b/perl-File-Find-Rule-Perl.spec new file mode 100644 index 0000000..3315cc4 --- /dev/null +++ b/perl-File-Find-Rule-Perl.spec @@ -0,0 +1,50 @@ +Name: perl-File-Find-Rule-Perl +Version: 1.15 +Release: 15 +Summary: Common rules for searching for Perl things +License: GPL+ or Artistic +URL: https://metacpan.org/release/File-Find-Rule-Perl +Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-Find-Rule-Perl-%{version}.tar.gz +# Filter out the files rpm generates in sourcedir. +Patch0: File-Find-Rule-Perl-1.15-fedora.patch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(constant) +BuildRequires: perl(lib) +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Find::Rule) >= 0.20 +BuildRequires: perl(File::Spec) >= 0.82 +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Spec::Unix) +BuildRequires: perl(Params::Util) >= 0.38 +BuildRequires: perl(Parse::CPAN::Meta) >= 1.38 +BuildRequires: perl(Test::More) >= 0.47 + +%description +Common rules for searching for Perl things. + +%prep +%setup -q -n File-Find-Rule-Perl-%{version} +%patch0 -p1 + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/File +%{_mandir}/man3/* + +%changelog +* Fri Aug 7 2020 weidong - 1.15-15 +- Initial release for OpenEuler