From 8f625b08f319b28385ec9dce04dc9c87af3b8fd9 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sun, 19 Jan 2025 01:27:08 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- perl-Number-Compare.spec | 48 ++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/perl-Number-Compare.spec b/perl-Number-Compare.spec index a2ee017..6229767 100644 --- a/perl-Number-Compare.spec +++ b/perl-Number-Compare.spec @@ -1,70 +1,54 @@ %global _empty_manifest_terminate_build 0 Name: perl-Number-Compare Version: 0.03 -Release: 2 +Release: 3 Summary: Numeric comparisons -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl Group: Development/Libraries -URL: http://search.cpan.org/dist/Number-Compare/ -Source0: http://www.cpan.org/authors/id/R/RC/RCLAMP/Number-Compare-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +URL: https://search.cpan.org/dist/Number-Compare/ +Source0: https://www.cpan.org/authors/id/R/RC/RCLAMP/Number-Compare-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl-generators Requires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + %description Number::Compare compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again. + %package help Summary : Numeric comparisons Provides: perl-Number-Compare-doc + %description help Number::Compare compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again. + %prep %setup -q -n Number-Compare-%{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 -popd -mv %{buildroot}/filelist.lst . -%check -make test - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f filelist.lst -%defattr(-,root,root,-) +%files %doc Changes %{perl_vendorlib}/* + %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Sun Jan 19 2025 Funda Wang - 0.03-3 +- drop useless perl(:MODULE_COMPAT) requirement + * Thu Jul 16 2020 Shinwell Hu 0.03-2 - Remove %{?dist} in release tag according to issue #I1NRGG -- Gitee