!7 修复 noarch 平台构建时打包错误

From: @jiachao2130 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2023-05-23 08:16:49 +00:00 committed by Gitee
commit efb02f12b5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: perl-MIME-Types
Version: 2.22
Release: 1
Release: 2
Summary: MIME-types module in Perl
License: GPL+ or Artistic
URL: https://metacpan.org/release/MIME-Types
@ -46,6 +46,7 @@ perl Makefile.PL INSTALLDIRS=vendor
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} -c %{buildroot}
%check
@ -54,7 +55,6 @@ make test
%files
%doc ChangeLog
%{perl_vendorlib}/MIME/
%exclude %{_libdir}/perl5/vendor_perl/auto/MIME/Types/.packlist
%files -n perl-MojoX-MIME-Types
%{perl_vendorlib}/MojoX/
@ -66,6 +66,9 @@ make test
%{_mandir}/man3/MojoX::MIME::Types.3*
%changelog
* Tue May 23 2023 Jia Chao <jiac13@chinaunicom.cn> - 2.22-2
- Fix: find and remove .packlist, not exclude it.
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 2.22-1
- Upgrade to version 2.22