Hello community, here is the log from the commit of package perl-MIME-Types for openSUSE:Factory checked in at 2015-04-15 16:25:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-MIME-Types (Old) and /work/SRC/openSUSE:Factory/.perl-MIME-Types.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-MIME-Types" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-MIME-Types/perl-MIME-Types.changes 2014-09-10 17:02:58.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-MIME-Types.new/perl-MIME-Types.changes 2015-04-15 16:25:52.000000000 +0200 @@ -1,0 +2,13 @@ +Tue Apr 14 20:49:16 UTC 2015 - [email protected] + +- updated to 2.09 + see /usr/share/doc/packages/perl-MIME-Types/ChangeLog + + version 2.09: Sun Sep 14 18:12:08 CEST 2014 + + Improvements: + - documentation use consistent parameter casing + - do not use '//' to support 5.8.* + rt.cpan.org#98664 [Paul] + +------------------------------------------------------------------- Old: ---- MIME-Types-2.08.tar.gz New: ---- MIME-Types-2.09.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-MIME-Types.spec ++++++ --- /var/tmp/diff_new_pack.OE3SdT/_old 2015-04-15 16:25:52.000000000 +0200 +++ /var/tmp/diff_new_pack.OE3SdT/_new 2015-04-15 16:25:52.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-MIME-Types # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,45 +17,51 @@ Name: perl-MIME-Types -Version: 2.08 +Version: 2.09 Release: 0 %define cpan_name MIME-Types -Summary: MIME-Type Determination -License: GPL-1.0+ or Artistic-1.0 +Summary: Definition of MIME types +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Url: http://www.cpan.org/modules/by-module/MIME/ -Source: http://www.cpan.org/modules/by-module/MIME/%{cpan_name}-%{version}.tar.gz +Url: http://search.cpan.org/dist/MIME-Types/ +Source: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} %description -MIME types are used in MIME entities, for instance as part of e-mail -and HTTP traffic. Sometimes real knowledge about a mime-type is need. -This module will supply it. +MIME types are used in many applications (for instance as part of e-mail +and HTTP traffic) to indicate the type of content which is transmitted. or +expected. See RFC2045 at _https://www.ietf.org/rfc/rfc2045.txt_ + +Sometimes detailed knowledge about a mime-type is need, however this module +only knows about the file-name extensions which relate to some filetype. It +can also be used to produce the right format: types which are not +registered at IANA need to use 'x-' prefixes. + +This object administers a huge list of known mime-types, combined from +various sources. For instance, it contains *all IANA* types and the +knowledge of Apache. Probably the most complete table on the net! %prep -%setup -n MIME-Types-%{version} -q +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -make DESTDIR=%{buildroot} install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%files -%defattr(-,root,root) -%doc ChangeLog MANIFEST README -%doc %{_mandir}/man?/* -%{perl_vendorarch}/auto/MIME -%{perl_vendorlib}/MIME -%{perl_vendorlib}/MojoX -%{perl_vendorlib}/MojoX/MIME +%files -f %{name}.files +%defattr(-,root,root,755) +%doc ChangeLog README %changelog ++++++ MIME-Types-2.08.tar.gz -> MIME-Types-2.09.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/ChangeLog new/MIME-Types-2.09/ChangeLog --- old/MIME-Types-2.08/ChangeLog 2014-09-05 15:29:57.000000000 +0200 +++ new/MIME-Types-2.09/ChangeLog 2014-09-14 18:12:24.000000000 +0200 @@ -6,6 +6,13 @@ TODO: . Add source http://www.ltsw.se/knbase/internet/mime.htp ? +version 2.09: Sun Sep 14 18:12:08 CEST 2014 + + Improvements: + - documentation use consistent parameter casing + - do not use '//' to support 5.8.* + rt.cpan.org#98664 [Paul] + version 2.08: Fri Sep 5 15:29:52 CEST 2014 Fixes: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/META.json new/MIME-Types-2.09/META.json --- old/MIME-Types-2.08/META.json 2014-09-05 15:30:49.000000000 +0200 +++ new/MIME-Types-2.09/META.json 2014-09-14 18:12:26.000000000 +0200 @@ -40,5 +40,5 @@ } }, "release_status" : "stable", - "version" : "2.08" + "version" : "2.09" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/META.yml new/MIME-Types-2.09/META.yml --- old/MIME-Types-2.08/META.yml 2014-09-05 15:30:49.000000000 +0200 +++ new/MIME-Types-2.09/META.yml 2014-09-14 18:12:26.000000000 +0200 @@ -22,4 +22,4 @@ File::Spec: 0 List::Util: 0 Test::More: 0.47 -version: 2.08 +version: 2.09 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/Makefile.PL new/MIME-Types-2.09/Makefile.PL --- old/MIME-Types-2.08/Makefile.PL 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/Makefile.PL 2014-09-14 18:12:24.000000000 +0200 @@ -2,7 +2,7 @@ require 5.008_008; -my $version = '2.08'; # scanned by bin/collect_types ! +my $version = '2.09'; # scanned by bin/collect_types ! WriteMakefile ( NAME => 'MIME::Types' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/lib/MIME/Type.pm new/MIME-Types-2.09/lib/MIME/Type.pm --- old/MIME-Types-2.08/lib/MIME/Type.pm 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/lib/MIME/Type.pm 2014-09-14 18:12:24.000000000 +0200 @@ -4,7 +4,7 @@ # Pod stripped from pm file by OODoc 2.01. package MIME::Type; use vars '$VERSION'; -$VERSION = '2.08'; +$VERSION = '2.09'; use strict; @@ -27,13 +27,13 @@ sub init($) { my ($self, $args) = @_; - my $type = $self->{MT_type} = $args->{type} + my $type = $self->{MT_type} = $args->{type} or croak "ERROR: Type parameter is obligatory."; - $self->{MT_simplified} = $args->{simplified} + $self->{MT_simplified} = $args->{simplified} || $self->simplified($type); - $self->{MT_extensions} = $args->{extensions} || []; + $self->{MT_extensions} = $args->{extensions} || []; $self->{MT_encoding} = $args->{encoding} ? $args->{encoding} @@ -48,7 +48,6 @@ #------------------------------------------- - sub type() {shift->{MT_type}} @@ -65,12 +64,8 @@ sub extensions() { @{shift->{MT_extensions}} } - - -sub encoding() {shift->{MT_encoding}} - - -sub system() {shift->{MT_system}} +sub encoding() {shift->{MT_encoding}} +sub system() {shift->{MT_system}} #------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/lib/MIME/Type.pod new/MIME-Types-2.09/lib/MIME/Type.pod --- old/MIME-Types-2.08/lib/MIME/Type.pod 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/lib/MIME/Type.pod 2014-09-14 18:12:24.000000000 +0200 @@ -60,7 +60,7 @@ =over 4 -=item MIME::Type-E<gt>B<new>(OPTIONS) +=item MIME::Type-E<gt>B<new>(%options) Create (I<instantiate>) a new MIME::Type object which manages one mime type. @@ -120,9 +120,9 @@ Returns a list of extensions which are known to be used for this mime type. -=item $obj-E<gt>B<simplified>( [STRING] ) +=item $obj-E<gt>B<simplified>( [$string] ) -=item MIME::Type-E<gt>B<simplified>( [STRING] ) +=item MIME::Type-E<gt>B<simplified>( [$string] ) Returns the simplified mime type for this object or the specified STRING. Mime type names can get officially registered. Until then, they have to @@ -153,7 +153,7 @@ =over 4 -=item $obj-E<gt>B<equals>(STRING|MIME) +=item $obj-E<gt>B<equals>($string|$mime) Compare this mime-type object with a STRING or other object. In case of a STRING, simplification will take place. @@ -225,8 +225,8 @@ =head1 SEE ALSO -This module is part of MIME-Types distribution version 2.08, -built on September 05, 2014. Website: F<http://perl.overmeer.net/mimetypes/> +This module is part of MIME-Types distribution version 2.09, +built on September 14, 2014. Website: F<http://perl.overmeer.net/mimetypes/> =head1 LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/lib/MIME/Types.pm new/MIME-Types-2.09/lib/MIME/Types.pm --- old/MIME-Types-2.08/lib/MIME/Types.pm 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/lib/MIME/Types.pm 2014-09-14 18:12:24.000000000 +0200 @@ -5,7 +5,7 @@ package MIME::Types; use vars '$VERSION'; -$VERSION = '2.08'; +$VERSION = '2.09'; use strict; @@ -78,7 +78,6 @@ #------------------------------------------- - sub type($) { my $spec = lc $_[1]; $spec = 'text/plain' if $spec eq 'text'; # old mailers @@ -150,7 +149,6 @@ } - sub extensions { keys %{$typedb{EXTENSIONS}} } sub _MojoExtTable() {$typedb{EXTENSIONS}} @@ -168,7 +166,7 @@ $ !x or next; my $mime = "$1/$2$4"; - my $q = $3 // ($1 eq '*' ? -2 : $2 eq '*' ? -1 : 1); + my $q = $3 || ($1 eq '*' ? -2 : $2 eq '*' ? -1 : 1); push @listed, [ $mime, $q-@listed*0.001 ]; } map $_->[0], sort {$b->[1] <=> $a->[1]} @listed; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/lib/MIME/Types.pod new/MIME-Types-2.09/lib/MIME/Types.pod --- old/MIME-Types-2.08/lib/MIME/Types.pod 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/lib/MIME/Types.pod 2014-09-14 18:12:24.000000000 +0200 @@ -51,7 +51,7 @@ =over 4 -=item MIME::Types-E<gt>B<new>(OPTIONS) +=item MIME::Types-E<gt>B<new>(%options) Create a new C<MIME::Types> object which manages the data. In the current implementation, it does not matter whether you create this object often @@ -93,7 +93,7 @@ =over 4 -=item $obj-E<gt>B<addType>(TYPE, ...) +=item $obj-E<gt>B<addType>($type, ...) Add one or more TYPEs to the set of known types. Each TYPE is a C<MIME::Type> which must be experimental: either the main-type or @@ -114,7 +114,7 @@ Returns a list of all defined mime-types by name only. This will B<not> instantiate L<MIME::Type|MIME::Type> objects. See L<types()|MIME::Types/"Knowledge"> -=item $obj-E<gt>B<mimeTypeOf>(FILENAME) +=item $obj-E<gt>B<mimeTypeOf>($filename) Returns the C<MIME::Type> object which belongs to the FILENAME (or simply its filename extension) or C<undef> if the file type is unknown. The extension @@ -132,7 +132,7 @@ my $mime = $types->mimeTypeOf('picture.jpg'); print $mime->isBinary; -=item $obj-E<gt>B<type>(STRING) +=item $obj-E<gt>B<type>($string) Returns the C<MIME::Type> which describes the type related to STRING. [2.00] Only one type will be returned. @@ -246,8 +246,8 @@ =head1 SEE ALSO -This module is part of MIME-Types distribution version 2.08, -built on September 05, 2014. Website: F<http://perl.overmeer.net/mimetypes/> +This module is part of MIME-Types distribution version 2.09, +built on September 14, 2014. Website: F<http://perl.overmeer.net/mimetypes/> =head1 LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/lib/MojoX/MIME/Types.pm new/MIME-Types-2.09/lib/MojoX/MIME/Types.pm --- old/MIME-Types-2.08/lib/MojoX/MIME/Types.pm 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/lib/MojoX/MIME/Types.pm 2014-09-14 18:12:24.000000000 +0200 @@ -4,7 +4,7 @@ # Pod stripped from pm file by OODoc 2.01. package MojoX::MIME::Types; use vars '$VERSION'; -$VERSION = '2.08'; +$VERSION = '2.09'; use Mojo::Base -base; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-2.08/lib/MojoX/MIME/Types.pod new/MIME-Types-2.09/lib/MojoX/MIME/Types.pod --- old/MIME-Types-2.08/lib/MojoX/MIME/Types.pod 2014-09-05 15:30:48.000000000 +0200 +++ new/MIME-Types-2.09/lib/MojoX/MIME/Types.pod 2014-09-14 18:12:25.000000000 +0200 @@ -202,8 +202,8 @@ =head1 SEE ALSO -This module is part of MIME-Types distribution version 2.08, -built on September 05, 2014. Website: F<http://perl.overmeer.net/mimetypes/> +This module is part of MIME-Types distribution version 2.09, +built on September 14, 2014. Website: F<http://perl.overmeer.net/mimetypes/> =head1 LICENSE
