2020-08-13 10:29:38 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2020-08-10 14:52:13 +08:00
|
|
|
Name: perl-File-Find-Rule-Perl
|
|
|
|
|
Version: 1.15
|
2020-08-13 15:56:20 +08:00
|
|
|
Release: 1
|
2020-08-10 14:52:13 +08:00
|
|
|
Summary: Common rules for searching for Perl things
|
|
|
|
|
License: GPL+ or Artistic
|
2020-08-13 10:29:38 +08:00
|
|
|
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
|
2020-08-10 14:52:13 +08:00
|
|
|
BuildArch: noarch
|
2020-08-13 10:29:38 +08:00
|
|
|
BuildRequires: perl >= 0:5.006
|
2020-08-10 14:52:13 +08:00
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
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
|
2020-08-13 10:29:38 +08:00
|
|
|
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))
|
2020-08-10 14:52:13 +08:00
|
|
|
%description
|
2020-08-13 10:29:38 +08:00
|
|
|
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.
|
2020-08-10 14:52:13 +08:00
|
|
|
%prep
|
|
|
|
|
%setup -q -n File-Find-Rule-Perl-%{version}
|
|
|
|
|
%build
|
2020-08-13 10:29:38 +08:00
|
|
|
export PERL_MM_OPT=""
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
2020-08-10 14:52:13 +08:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
2020-08-13 10:29:38 +08:00
|
|
|
export PERL_MM_OPT=""
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2020-08-10 14:52:13 +08:00
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
|
2020-08-13 10:29:38 +08:00
|
|
|
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 .
|
2020-08-10 14:52:13 +08:00
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
2020-08-13 10:29:38 +08:00
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files -f filelist.lst
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes META.json
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/*
|
2020-08-10 14:52:13 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2020-08-13 15:56:20 +08:00
|
|
|
* Wed Aug 12 2020 weidong <weidong@uniontech.com> 1.15-1
|
2020-08-10 14:52:13 +08:00
|
|
|
- Initial release for OpenEuler
|