diff --git a/perl-Mail-Sender.spec b/perl-Mail-Sender.spec index 57ddf6a79c1d0d401c52b0c9060d5a34451b40a9..4634c63c69995fd31bebd1e7b016b924e31ed969 100644 --- a/perl-Mail-Sender.spec +++ b/perl-Mail-Sender.spec @@ -1,47 +1,27 @@ -%define anolis_release 1 +%define anolis_release 2 Name: perl-Mail-Sender Version: 0.903 Epoch: 1 Release: %{anolis_release}%{?dist} -Summary: Module for sending mails with attachments through an SMTP server - -# There is also a clause which says that it may not be used for SPAM. -# However, since spamming is illegal in the US, this isn't really a use restriction. -# Instead, its a friendly reminder of the law, so we won't list it here. License: GPL+ or Artistic +Summary: Module for sending mails with attachments through an SMTP server URL: https://metacpan.org/release/Mail-Sender Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/Mail-Sender-%{version}.tar.gz BuildArch: noarch -BuildRequires: coreutils -BuildRequires: findutils -BuildRequires: make -BuildRequires: perl-interpreter -BuildRequires: perl-generators -BuildRequires: perl(base) -BuildRequires: perl(Carp) -BuildRequires: perl(CPAN::Meta) >= 2.120900 -BuildRequires: perl(Encode) -BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Basename) -BuildRequires: perl(File::Spec) -BuildRequires: perl(IO::Handle) -BuildRequires: perl(IO::Socket::INET) -BuildRequires: perl(MIME::Base64) -BuildRequires: perl(MIME::QuotedPrint) -BuildRequires: perl(Socket) -BuildRequires: perl(strict) -BuildRequires: perl(Symbol) -BuildRequires: perl(Test::More) >= 0.88 -BuildRequires: perl(Tie::Handle) -BuildRequires: perl(Time::Local) -BuildRequires: perl(Try::Tiny) >= 0.24 -BuildRequires: perl(warnings) +BuildRequires: coreutils findutils make +BuildRequires: perl-interpreter perl-generators perl(base) perl(Carp) +BuildRequires: perl(CPAN::Meta) >= 2.120900 perl(Encode) perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) perl(File::Basename) perl(File::Spec) +BuildRequires: perl(IO::Handle) perl(IO::Socket::INET) perl(MIME::Base64) +BuildRequires: perl(MIME::QuotedPrint) perl(Socket) perl(strict) +BuildRequires: perl(Symbol) perl(Test::More) >= 0.88 perl(Tie::Handle) +BuildRequires: perl(Time::Local) perl(Try::Tiny) >= 0.24 perl(warnings) %description -%{summary}. +Mail::Sender provides an object-oriented interface to sending mails. +It directly connects to the mail server using IO::Socket. %package doc Summary: Documentation files for %{name} @@ -52,7 +32,7 @@ BuildArch: noarch The %{name}-doc package contains documentation files for %{name}. %prep -%setup -q -n Mail-Sender-%{version} +%autosetup -n Mail-Sender-%{version} %{__perl} -pi -e 's/\r\n/\n/' README @@ -60,31 +40,27 @@ The %{name}-doc package contains documentation files for %{name}. %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} < /dev/null - %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -delete -find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - -# Remove the Win32 module in order to avoid requiring perl(Win32API::Registry) -find $RPM_BUILD_ROOT -type f -name Win32.pm -delete +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' +find %{buildroot} -type f -name .packlist -delete +find %{buildroot} -type f -name Win32.pm -delete +chmod -R u+w %{buildroot}/* %check make test - %files -# License: perl + spam exception. -# See the main POD page for the copyright information. -# For the Artistic and GPL license text(s), see the perl package. -%{perl_vendorlib}/Mail/ %{_mandir}/man3/*.3pm* +%{perl_vendorlib}/Mail/ %files doc %doc Changes README %changelog +* Fri Apr 14 2023 Jing Zhang - 1:0.903-2 +- Refact spec + * Wed Feb 15 2023 happy_orange - 1:0.903-1 - package import to anolis23