diff --git a/File-Find-Rule-Perl-1.15-from-fedora.patch b/File-Find-Rule-Perl-1.15-from-fedora.patch new file mode 100644 index 0000000000000000000000000000000000000000..63ffb5b72e55c0043fe17206e21480e179456fe2 --- /dev/null +++ b/File-Find-Rule-Perl-1.15-from-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-remove-filelist.patch b/File-Find-Rule-Perl-1.15-remove-filelist.patch new file mode 100644 index 0000000000000000000000000000000000000000..6edbe22531fa7d3029547afd6524dd6744ca084a --- /dev/null +++ b/File-Find-Rule-Perl-1.15-remove-filelist.patch @@ -0,0 +1,11 @@ +diff -urN File-Find-Rule-Perl-1.15/t/03_no_index.t File-Find-Rule-Perl-1.15-remove/t/03_no_index.t +--- File-Find-Rule-Perl-1.15/t/03_no_index.t 2020-06-23 05:43:11.760000000 +0000 ++++ File-Find-Rule-Perl-1.15-remove/t/03_no_index.t 2020-06-23 05:42:47.892000000 +0000 +@@ -28,6 +28,7 @@ + isa_ok( $rule, 'File::Find::Rule' ); + + my %ignore = map { $_ => 1 } qw{ ++ filelist.lst + Makefile + MANIFEST + MANIFEST.SKIP 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 0000000000000000000000000000000000000000..613ac98ac0c00472015e3e84ba22b608d759d384 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 0000000000000000000000000000000000000000..f9fea2afe6b087c7f71eca3664420f3dc56df022 --- /dev/null +++ b/perl-File-Find-Rule-Perl.spec @@ -0,0 +1,88 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-File-Find-Rule-Perl +Version: 1.15 +Release: 1%{?dist} +Summary: Common rules for searching for Perl things +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-Find-Rule-Perl/ +Source0: http://www.cpan.org/authors/id/E/ET/ETHER/File-Find-Rule-Perl-%{version}.tar.gz +Patch0: File-Find-Rule-Perl-1.15-from-fedora.patch +Patch1: File-Find-Rule-Perl-1.15-remove-filelist.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl >= 0:5.006 +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Find::Rule) >= 0.20 +BuildRequires: perl(File::Spec) >= 0.82 +BuildRequires: perl(Params::Util) >= 0.38 +BuildRequires: perl(Parse::CPAN::Meta) >= 1.38 +BuildRequires: perl(Test::More) +Requires: perl(File::Find::Rule) >= 0.20 +Requires: perl(File::Spec) >= 0.82 +Requires: perl(Params::Util) >= 0.38 +Requires: perl(Parse::CPAN::Meta) >= 1.38 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +I write a lot of things that muck with Perl files. And it always annoyed +me that finding "perl files" requires a moderately complex +File::Find::Rule pattern. +%package help +Summary : Common rules for searching for Perl things +Provides: perl-File-Find-Rule-Perl-doc +%description help +I write a lot of things that muck with Perl files. And it always annoyed +me that finding "perl files" requires a moderately complex +File::Find::Rule pattern. +%prep +%setup -q -n File-Find-Rule-Perl-%{version} +%patch0 -p1 +%patch1 -p1 +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes META.json +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Tue Jun 23 2020 Perl_Bot 1.15-1 +- Specfile autogenerated by Perl_Bot