From 126dbd56e8c3e18afc33e991646c12269f42ebcc Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Sat, 18 Jan 2025 12:35:16 +0800 Subject: [PATCH] drop useless perl(:MODULE_COMPAT) requirement --- perl-HTTP-Tinyish.spec | 41 ++++++++--------------------------------- 1 file changed, 8 insertions(+), 33 deletions(-) diff --git a/perl-HTTP-Tinyish.spec b/perl-HTTP-Tinyish.spec index 7981e14..b1d042d 100644 --- a/perl-HTTP-Tinyish.spec +++ b/perl-HTTP-Tinyish.spec @@ -1,9 +1,9 @@ %global _empty_manifest_terminate_build 0 Name: perl-HTTP-Tinyish Version: 0.19 -Release: 1 +Release: 2 Summary: HTTP::Tiny compatible HTTP client wrappers -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl Group: Development/Libraries URL: https://metacpan.org/release/HTTP-Tinyish Source0: https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/HTTP-Tinyish-%{version}.tar.gz @@ -16,7 +16,6 @@ BuildRequires: perl(HTTP::Tiny) >= 0.055 BuildRequires: perl(JSON::PP) BuildRequires: perl(parent) BuildRequires: perl(Test::More) >= 0.96 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description HTTP::Tinyish is a wrapper module for HTTP client modules LWP, HTTP::Tiny @@ -36,51 +35,27 @@ and HTTP client software curl and wget. %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 cpanfile dist.ini LICENSE META.json README %{perl_vendorlib}/* %files help -%{_mandir}/* +%{_mandir}/man?/* %changelog +* Sat Jan 18 2025 Funda Wang - 0.19-2 +- drop useless perl(:MODULE_COMPAT) requirement + * Thu Oct 10 2024 maqi - 0.19-1 - Update version to 0.19 - Specify :raw for IPC::Run3 to force binary on Windows -- Gitee