!2 package init

Merge pull request !2 from small_leek/master
This commit is contained in:
openeuler-ci-bot 2020-07-12 12:55:29 +08:00 committed by Gitee
commit 11ea66a4d1
3 changed files with 82 additions and 0 deletions

BIN
Mail-IMAPTalk-4.04.tar.gz Normal file

Binary file not shown.

78
perl-Mail-IMAPTalk.spec Normal file
View File

@ -0,0 +1,78 @@
%global _empty_manifest_terminate_build 0
Name: perl-Mail-IMAPTalk
Version: 4.04
Release: 2
Summary: IMAP client interface with lots of features
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Mail-IMAPTalk/
Source0: http://www.cpan.org/authors/id/R/RO/ROBN/Mail-IMAPTalk-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Authen::SASL) perl(constant) perl(Data::Dumper) perl(Digest) perl(Encode)
BuildRequires: perl(Encode::IMAPUTF7) perl(Exporter) perl(ExtUtils::MakeMaker)
BuildRequires: perl(MIME::Base64) perl(Socket) perl(strict) perl(warnings)
Requires: perl(Authen::SASL) perl(constant) perl(Data::Dumper) perl(Digest) perl(Encode)
Requires: perl(Encode::IMAPUTF7) perl(Exporter) perl(MIME::Base64) perl(Socket)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(strict) perl(warnings)
%description
This module communicates with an IMAP server. Each IMAP server command is
mapped to a method of this object.
%package help
Summary: IMAP client interface with lots of features
Provides: perl-Mail-IMAPTalk-doc
%description help
This module communicates with an IMAP server. Each IMAP server command is
mapped to a method of this object.
%prep
%setup -q -n Mail-IMAPTalk-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%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,-)
%doc Changes dist.ini LICENSE META.json README
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Fri Jul 10 2020 chengzihan <chengzihan2@huawei.com> - 4.04-2
- Package init

4
perl-Mail-IMAPTalk.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: metacpan
src_repo: Mail-IMAPTalk
tag_prefix: "^"
seperator: "."