Hello community,

here is the log from the commit of package perl-MIME-Lite for openSUSE:Factory 
checked in at 2019-11-26 16:51:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MIME-Lite (Old)
 and      /work/SRC/openSUSE:Factory/.perl-MIME-Lite.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-MIME-Lite"

Tue Nov 26 16:51:35 2019 rev:24 rq:743583 version:3.031

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MIME-Lite/perl-MIME-Lite.changes    
2013-11-26 19:26:11.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-MIME-Lite.new.26869/perl-MIME-Lite.changes 
2019-11-26 16:51:59.524257384 +0100
@@ -1,0 +2,14 @@
+Mon Oct 28 10:55:54 UTC 2019 -  <[email protected]>
+
+- updated to 3.031
+   see /usr/share/doc/packages/perl-MIME-Lite/changes.pod
+
+  =item Version 3.031
+  
+  Add an SSL option to connect to the SMTP relay via SSL on port 465. (thanks,
+  Max Maischein)
+  
+  Document some tips on using non-ASCII content with MIME::Lite (thanks,
+  traveljury.com and Tom Hukins)
+
+-------------------------------------------------------------------

Old:
----
  MIME-Lite-3.030.tar.gz

New:
----
  MIME-Lite-3.031.tar.gz
  cpanspec.yml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-MIME-Lite.spec ++++++
--- /var/tmp/diff_new_pack.mLKBmG/_old  2019-11-26 16:52:00.260257118 +0100
+++ /var/tmp/diff_new_pack.mLKBmG/_new  2019-11-26 16:52:00.264257116 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-MIME-Lite
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,30 +12,30 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           perl-MIME-Lite
-Version:        3.030
+Version:        3.031
 Release:        0
 %define cpan_name MIME-Lite
-Summary:        low-calorie MIME generator
-License:        Artistic-1.0 or GPL-1.0+
+Summary:        Low-calorie MIME generator
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/MIME-Lite/
-Source:         
http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
+Url:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Email::Date::Format) >= 1.000
-#BuildRequires: perl(ExtUtils::TBone)
-#BuildRequires: perl(Mail::Address)
-#BuildRequires: perl(MIME::Lite)
-#BuildRequires: perl(MIME::Types) >= 1.28
-#BuildRequires: perl(Utils)
+BuildRequires:  perl(MIME::Types) >= 1.28
+BuildRequires:  perl(Mail::Address) >= 1.62
 Requires:       perl(Email::Date::Format) >= 1.000
+Requires:       perl(MIME::Types) >= 1.28
+Requires:       perl(Mail::Address) >= 1.62
 %{perl_requires}
 
 %description
@@ -57,14 +57,14 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f -print0 | xargs -0 chmod 644
+find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" -print0 | xargs 
-0 chmod 644
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %check
-%{__make} test
+make test
 
 %install
 %perl_make_install
@@ -73,6 +73,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc COPYING examples INSTALLING LICENSE README
+%doc examples README
+%license COPYING LICENSE
 
 %changelog

++++++ MIME-Lite-3.030.tar.gz -> MIME-Lite-3.031.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Lite-3.030/META.json 
new/MIME-Lite-3.031/META.json
--- old/MIME-Lite-3.030/META.json       2013-11-04 03:17:42.000000000 +0100
+++ new/MIME-Lite-3.031/META.json       2019-10-26 15:04:50.000000000 +0200
@@ -4,13 +4,13 @@
       "unknown"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter 
version 2.132830",
+   "generated_by" : "ExtUtils::MakeMaker version 7.36, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
       "perl_5"
    ],
    "meta-spec" : {
       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec";,
-      "version" : "2"
+      "version" : 2
    },
    "name" : "MIME-Lite",
    "no_index" : {
@@ -44,5 +44,6 @@
          "url" : "http://github.com/rjbs/MIME-Lite";
       }
    },
-   "version" : "3.030"
+   "version" : "3.031",
+   "x_serialization_backend" : "JSON::PP version 4.04"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Lite-3.030/META.yml new/MIME-Lite-3.031/META.yml
--- old/MIME-Lite-3.030/META.yml        2013-11-04 03:17:42.000000000 +0100
+++ new/MIME-Lite-3.031/META.yml        2019-10-26 15:04:50.000000000 +0200
@@ -3,24 +3,25 @@
 author:
   - unknown
 build_requires:
-  ExtUtils::MakeMaker: 0
+  ExtUtils::MakeMaker: '0'
 configure_requires:
-  ExtUtils::MakeMaker: 0
+  ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version 
2.132830'
+generated_by: 'ExtUtils::MakeMaker version 7.36, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
-  version: 1.4
+  version: '1.4'
 name: MIME-Lite
 no_index:
   directory:
     - t
     - inc
 requires:
-  Email::Date::Format: 1.000
-  File::Basename: 0
-  File::Spec: 0
+  Email::Date::Format: '1.000'
+  File::Basename: '0'
+  File::Spec: '0'
 resources:
   repository: http://github.com/rjbs/MIME-Lite
-version: 3.030
+version: '3.031'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Lite-3.030/README new/MIME-Lite-3.031/README
--- old/MIME-Lite-3.030/README  2013-11-04 03:16:00.000000000 +0100
+++ new/MIME-Lite-3.031/README  2019-10-26 15:01:50.000000000 +0200
@@ -1373,7 +1373,7 @@
     please, include tests for any patches you provide.
 
 VERSION
-    Version: 3.030
+    Version: 3.031
 
 CHANGE LOG
     Moved to ./changes.pod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Lite-3.030/changes.pod 
new/MIME-Lite-3.031/changes.pod
--- old/MIME-Lite-3.030/changes.pod     2013-11-04 03:14:19.000000000 +0100
+++ new/MIME-Lite-3.031/changes.pod     2019-10-26 15:04:11.000000000 +0200
@@ -2,6 +2,14 @@
 
 =over 4
 
+=item Version 3.031
+
+Add an SSL option to connect to the SMTP relay via SSL on port 465. (thanks,
+Max Maischein)
+
+Document some tips on using non-ASCII content with MIME::Lite (thanks,
+traveljury.com and Tom Hukins)
+
 =item Version 3.030
 
 Make send_by_sendmail set sender like documentation says it does (thanks,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Lite-3.030/lib/MIME/Lite.pm 
new/MIME-Lite-3.031/lib/MIME/Lite.pm
--- old/MIME-Lite-3.030/lib/MIME/Lite.pm        2013-11-04 03:14:27.000000000 
+0100
+++ new/MIME-Lite-3.031/lib/MIME/Lite.pm        2019-10-26 15:01:50.000000000 
+0200
@@ -31,7 +31,7 @@
     );
     $msg->send; # send via default
 
-Create a multipart message (i.e., one with attachments) and send it SMTP
+Create a multipart message (i.e., one with attachments) and send it via SMTP
 
     ### Create a new multipart message:
     $msg = MIME::Lite->new(
@@ -53,7 +53,7 @@
         Filename => 'logo.gif',
         Disposition => 'attachment'
     );
-    ### use Net:SMTP to do the sending
+    ### use Net::SMTP to do the sending
     $msg->send('smtp','some.host', Debug=>1 );
 
 Output a message:
@@ -79,6 +79,10 @@
 
     MIME::Lite->send('smtp','some.host', AuthUser=>$user, AuthPass=>$pass);
 
+using SSL
+
+    MIME::Lite->send('smtp','some.host', SSL => 1, Port => 465 );
+
 =head1 DESCRIPTION
 
 In the never-ending quest for great taste with fewer calories,
@@ -352,7 +356,7 @@
 
 
 # GLOBALS, EXTERNAL/CONFIGURATION...
-$VERSION = '3.030';
+$VERSION = '3.031';
 
 ### Automatically interpret CC/BCC for SMTP:
 $AUTO_CC = 1;
@@ -2841,6 +2845,7 @@
 my @_mail_opts     = qw( Size Return Bits Transaction Envelope );
 my @_recip_opts    = qw( SkipBad );
 my @_net_smtp_opts = qw( Hello LocalAddr LocalPort Timeout
+                         AuthUser AuthPass SSL
                          Port ExactAddresses Debug );
 # internal:  qw( NoAuth AuthUser AuthPass To From Host);
 
@@ -3282,6 +3287,81 @@
 
 You should I<not> put path information in the Filename.
 
+=head2 Working with UTF-8 and other character sets
+
+All text that is added to your mail message should be properly encoded.
+MIME::Lite doesn't do this for you. For instance, if you want to
+send your mail in UTF-8, where C<$to>, C<$subject> and C<$text> have
+these values:
+
+=over
+
+=item *
+
+To: "RamE<oacute>n NuE<ntilde>ez E<lt>[email protected]<gt>"
+
+=item *
+
+Subject: "E<iexcl>AquE<iacute> estE<aacute>!"
+
+=item *
+
+Text: "E<iquest>Quieres ganar muchos E<euro>'s?"
+
+=back
+
+
+    use MIME::Lite;
+    use Encode qw(encode encode_utf8 );
+
+    my $to      = "Ram\363n Nu\361ez <foo\@bar.com>";
+    my $subject = "\241Aqu\355 est\341!";
+    my $text    = "\277Quieres ganar muchos \x{20ac}'s?";
+
+    ### Create a new message encoded in UTF-8:
+    my $msg = MIME::Lite->new(
+        From    => '[email protected]',
+        To      => encode( 'MIME-Header', $to ),
+        Subject => encode( 'MIME-Header', $subject ),
+        Data    => encode_utf8($text)
+    );
+    $msg->attr( 'content-type' => 'text/plain; charset=utf-8' );
+    $msg->send;
+
+B<Note:>
+
+=over
+
+=item *
+
+The above example assumes that the values you want to encode are in
+Perl's "internal" form, i.e. the strings contain decoded UTF-8
+characters, not the bytes that represent those characters.
+
+See L<perlunitut>, L<perluniintro>, L<perlunifaq> and L<Encode> for
+more.
+
+=item *
+
+If, for the body of the email,  you want to use a character set
+other than UTF-8, then you should encode appropriately, and set the
+correct C<content-type>, eg:
+
+    ...
+    Data => encode('iso-8859-15',$text)
+    ...
+
+    $msg->attr( 'content-type' => 'text/plain; charset=iso-8859-15' );
+
+=item *
+
+For the message headers, L<Encode::MIME::Header> only support UTF-8,
+but most modern mail clients should be able to handle this.  It is not
+a problem to have your headers in a different encoding from the message
+body.
+
+=back
+
 =head2 Benign limitations
 
 This is "lite", after all...
@@ -3653,7 +3733,7 @@
 
 =head1 VERSION
 
-Version: 3.030
+Version: 3.031
 
 =head1 CHANGE LOG
 

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to