!4 [sync] PR-3: 添加sw架构

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-11-08 11:10:23 +00:00 committed by Gitee
commit f6abe14078
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,13 +1,17 @@
Name: perl-Mail-Sender
Version: 0.903
Epoch: 1
Release: 8
Release: 9
Summary: Module for sending mails with attachments through an SMTP server
License: GPL+ or Artistic
URL: https://metacpan.org/release/Mail-Sender
Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/Mail-Sender-%{version}.tar.gz
%ifarch sw_64
BuildArch: sw_64
%else
BuildArch: noarch
%endif
BuildRequires: coreutils findutils make perl-interpreter perl-generators perl(base) perl(Carp)
BuildRequires: perl(CPAN::Meta) >= 2.120900 perl(Encode) perl(Exporter) perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename) perl(File::Spec) perl(IO::Handle) perl(IO::Socket::INET)
@ -34,7 +38,11 @@ This package contains some man help files for perl-Mail-Sender.
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%ifarch sw_64
find $RPM_BUILD_ROOT -type d -name lib | xargs rm -r
%else
find $RPM_BUILD_ROOT -type d -name lib64 | xargs rm -r
%endif
find $RPM_BUILD_ROOT -type f -name Win32.pm | xargs rm
chmod -R u+w $RPM_BUILD_ROOT/*
@ -49,5 +57,8 @@ make test
%{_mandir}/man3/*.3pm*
%changelog
* Thu Nov 3 2022 wuzx<wuzx1226@qq.com> - 1:0.903-9
- Add sw64 architecture
* Fri Dec 20 2019 lingsheng <lingsheng@huawei.com> - 1:0.903-8
- Package init