%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 - 4.04-2 - Package init