From 3a58726c5bab68283dcfdefd4b276bb2191c6849 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sat, 18 Jan 2025 02:38:26 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- perl-File-Find-Rule.spec | 51 ++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/perl-File-Find-Rule.spec b/perl-File-Find-Rule.spec index 87c7602..171cb3b 100644 --- a/perl-File-Find-Rule.spec +++ b/perl-File-Find-Rule.spec @@ -1,13 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: perl-File-Find-Rule Version: 0.34 -Release: 3 +Release: 4 Summary: Alternative interface to File::Find License: GPL-1.0-or-later or Artistic-1.0 Group: Development/Libraries -URL: http://search.cpan.org/dist/File-Find-Rule/ -Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/File-Find-Rule-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +URL: https://search.cpan.org/dist/File-Find-Rule/ +Source0: https://www.cpan.org/authors/id/R/RC/RCLAMP/File-Find-Rule-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) @@ -19,64 +18,48 @@ Requires: perl(File::Spec) Requires: perl(Number::Compare) Requires: perl(Test::More) Requires: perl(Text::Glob) >= 0.07 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + %description File::Find::Rule is a friendlier interface to File::Find. It allows you to build rules which specify the desired files and directories. + %package help Summary : Alternative interface to File::Find +Buildarch: noarch Provides: perl-File-Find-Rule-doc + %description help File::Find::Rule is a friendlier interface to File::Find. It allows you to build rules which specify the desired files and directories. + %prep %setup -q -n File-Find-Rule-%{version} + %build export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %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,-) +%files %doc Changes findrule META.json +%{_bindir}/* %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Sat Jan 18 2025 Funda Wang - 0.34-4 +- drop useless perl(:MODULE_COMPAT) requirement + * Mon Jul 18 2022 Chenyx - 0.34-3 - License compliance rectification -- Gitee