commit perl-MIME-Types for openSUSE:Factory
Hello community, here is the log from the commit of package perl-MIME-Types for openSUSE:Factory checked in at 2012-02-14 13:09:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-MIME-Types (Old) and /work/SRC/openSUSE:Factory/.perl-MIME-Types.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-MIME-Types", Maintainer is "VCizek@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-MIME-Types/perl-MIME-Types.changes 2011-09-23 12:37:59.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-MIME-Types.new/perl-MIME-Types.changes 2012-02-14 13:09:38.000000000 +0100 @@ -1,0 +2,10 @@ +Fri Jan 13 02:39:23 UTC 2012 - vcizek@suse.com + +- update to 1.34 + - subType() did not handle subType's with '+' in them. + [Roman V. Nikolaev] + - all openxmlformats are binary [Beverly Wang] + - mediaType() and subType() did not handle subType's with dots + in them correctly. [Roman V. Nikolaev] + +------------------------------------------------------------------- Old: ---- MIME-Types-1.32.tar.gz New: ---- MIME-Types-1.34.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-MIME-Types.spec ++++++ --- /var/tmp/diff_new_pack.PBIWCV/_old 2012-02-14 13:09:40.000000000 +0100 +++ /var/tmp/diff_new_pack.PBIWCV/_new 2012-02-14 13:09:40.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-MIME-Types # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,24 @@ # - Name: perl-MIME-Types -Url: http://cpan.org/modules/by-module/MIME/ -Version: 1.32 -Release: 1 -AutoReqProv: on -Group: Development/Libraries/Perl -License: GPL-1.0+ or Artistic-1.0 +Version: 1.34 +Release: 0 Summary: MIME-Type Determination +License: GPL-1.0+ or Artistic-1.0 +Group: Development/Libraries/Perl +Url: http://cpan.org/modules/by-module/MIME/ Source: MIME-Types-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} 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. - %prep %setup -n MIME-Types-%{version} -q @@ -48,7 +45,7 @@ make test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +make DESTDIR=%{buildroot} install_vendor %perl_process_packlist %files ++++++ MIME-Types-1.32.tar.gz -> MIME-Types-1.34.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/ChangeLog new/MIME-Types-1.34/ChangeLog --- old/MIME-Types-1.32/ChangeLog 2011-08-18 23:30:37.000000000 +0200 +++ new/MIME-Types-1.34/ChangeLog 2012-01-12 11:16:11.000000000 +0100 @@ -3,6 +3,15 @@ Unless explicitly stated differently are all changes produced by Mark Overmeer. +version 1.34: Thu Jan 12 11:16:07 CET 2012 + - subType() did not handle subType's with '+' in them. + [Roman V. Nikolaev] + +version 1.33: Thu Jan 12 08:46:05 CET 2012 + - all openxmlformats are binary [Beverly Wang] + - mediaType() and subType() did not handle subType's with dots + in them correctly. [Roman V. Nikolaev] + version 1.32: Thu Aug 18 23:30:25 CEST 2011 - explain how to use MIME::Types in mod_perl, after complains from [Steve Simms], [Nicolas Mendoza], [Yves Orton] and diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/META.yml new/MIME-Types-1.34/META.yml --- old/MIME-Types-1.32/META.yml 2011-08-18 23:30:39.000000000 +0200 +++ new/MIME-Types-1.34/META.yml 2012-01-12 11:16:12.000000000 +0100 @@ -1,6 +1,6 @@ --- #YAML:1.0 name: MIME-Types -version: 1.32 +version: 1.34 abstract: Definition of MIME types author: - Mark Overmeer diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/Makefile.PL new/MIME-Types-1.34/Makefile.PL --- old/MIME-Types-1.32/Makefile.PL 2011-08-18 23:30:37.000000000 +0200 +++ new/MIME-Types-1.34/Makefile.PL 2012-01-12 11:16:11.000000000 +0100 @@ -4,7 +4,7 @@ WriteMakefile ( NAME => 'MIME::Types' - , VERSION => '1.32' + , VERSION => '1.34' , PREREQ_PM => { Test::More => 0.47 } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/lib/MIME/Type.pm new/MIME-Types-1.34/lib/MIME/Type.pm --- old/MIME-Types-1.32/lib/MIME/Type.pm 2011-08-18 23:30:37.000000000 +0200 +++ new/MIME-Types-1.34/lib/MIME/Type.pm 2012-01-12 11:16:11.000000000 +0100 @@ -1,10 +1,10 @@ -# Copyrights 1999,2001-2011 by Mark Overmeer. +# Copyrights 1999,2001-2012 by Mark Overmeer. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.00. package MIME::Type; use vars '$VERSION'; -$VERSION = '1.32'; +$VERSION = '1.34'; use strict; @@ -51,8 +51,6 @@ sub type() {shift->{MT_type}} -#------------------------------------------- - sub simplified(;$) { my $thing = shift; @@ -65,33 +63,23 @@ : undef; } -#------------------------------------------- - sub extensions() { @{shift->{MT_extensions}} } -#------------------------------------------- - sub encoding() {shift->{MT_encoding}} -#------------------------------------------- - sub system() {shift->{MT_system}} #------------------------------------------- -sub mediaType() {shift->{MT_simplified} =~ m!^([\w-]+)/! ? $1 : undef} +sub mediaType() {shift->{MT_simplified} =~ m!^([\w.-]+)/! ? $1 : undef} sub mainType() {shift->mediaType} # Backwards compatibility -#------------------------------------------- - -sub subType() {shift->{MT_simplified} =~ m!/([\w-]+)$! ? $1 : undef} - -#------------------------------------------- +sub subType() {shift->{MT_simplified} =~ m!/([\w+.-]+)$! ? $1 : undef} sub isRegistered() @@ -100,18 +88,11 @@ } -#------------------------------------------- - - sub isBinary() { shift->{MT_encoding} eq 'base64' } -#------------------------------------------- - sub isAscii() { shift->{MT_encoding} ne 'base64' } -#------------------------------------------- - # simplified names only! my %sigs = map { ($_ => 1) } @@ -121,8 +102,6 @@ sub isSignature() { $sigs{shift->{MT_simplified}} } -#------------------------------------------- - sub equals($) { my ($self, $other) = @_; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/lib/MIME/Type.pod new/MIME-Types-1.34/lib/MIME/Type.pod --- old/MIME-Types-1.32/lib/MIME/Type.pod 2011-08-18 23:30:38.000000000 +0200 +++ new/MIME-Types-1.34/lib/MIME/Type.pod 2012-01-12 11:16:11.000000000 +0100 @@ -36,14 +36,14 @@ =over 4 -=item overload: B<string comparison> +=item overload: B<string comparison>() When a MIME::Type object is compared to either a string or another MIME::TYpe, the L<equals()|MIME::Type/"Knowledge"> method is called. Comparison is smart, which means that it extends common string comparison with some features which are defined in the related RFCs. -=item overload: B<stringification> +=item overload: B<stringification>() The stringification (use of the object in a place where a string is required) will result in the type name, the same as L<type()|MIME::Type/"Attributes"> @@ -113,12 +113,12 @@ =over 4 -=item $obj-E<gt>B<encoding> +=item $obj-E<gt>B<encoding>() Returns the type of encoding which is required to transport data of this type safely. -=item $obj-E<gt>B<extensions> +=item $obj-E<gt>B<extensions>() Returns a list of extensions which are known to be used for this mime type. @@ -140,12 +140,12 @@ print $mime->simplified('text/plain'); # 'text/plain' print MIME::Type->simplified('x-xyz/x-abc'); # 'xyz/abc' -=item $obj-E<gt>B<system> +=item $obj-E<gt>B<system>() Returns the regular expression which can be used to determine whether this type is active on the system where you are working on. -=item $obj-E<gt>B<type> +=item $obj-E<gt>B<type>() Returns the long type of this object, for instance C<'text/plain'> @@ -160,27 +160,27 @@ Compare this mime-type object with a STRING or other object. In case of a STRING, simplification will take place. -=item $obj-E<gt>B<isAscii> +=item $obj-E<gt>B<isAscii>() Returns false when the encoding is base64, and true otherwise. All encodings except base64 are text encodings. -=item $obj-E<gt>B<isBinary> +=item $obj-E<gt>B<isBinary>() Returns true when the encoding is base64. -=item $obj-E<gt>B<isRegistered> +=item $obj-E<gt>B<isRegistered>() Mime-types which are not registered by IANA nor defined in RFCs shall start with an C<x->. This counts for as well the media-type as the sub-type. In case either one of the types starts with C<x-> this method will return false. -=item $obj-E<gt>B<isSignature> +=item $obj-E<gt>B<isSignature>() Returns true when the type is in the list of known signatures. -=item $obj-E<gt>B<mediaType> +=item $obj-E<gt>B<mediaType>() The media type of the simplified mime. For C<'text/plain'> it will return C<'text'>. @@ -188,7 +188,7 @@ For historical reasons, the C<'mainType'> method still can be used to retreive the same value. However, that method is deprecated. -=item $obj-E<gt>B<subType> +=item $obj-E<gt>B<subType>() The sub type of the simplified mime. For C<'text/plain'> it will return C<'plain'>. @@ -208,12 +208,12 @@ =head1 SEE ALSO -This module is part of MIME-Types distribution version 1.32, -built on August 18, 2011. Website: F<http://perl.overmeer.net/mimetypes/> +This module is part of MIME-Types distribution version 1.34, +built on January 12, 2012. Website: F<http://perl.overmeer.net/mimetypes/> =head1 LICENSE -Copyrights 1999,2001-2011 by Mark Overmeer. For other contributors see ChangeLog. +Copyrights 1999,2001-2012 by Mark Overmeer. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/lib/MIME/Types.pm new/MIME-Types-1.34/lib/MIME/Types.pm --- old/MIME-Types-1.32/lib/MIME/Types.pm 2011-08-18 23:30:38.000000000 +0200 +++ new/MIME-Types-1.34/lib/MIME/Types.pm 2012-01-12 11:16:11.000000000 +0100 @@ -1,11 +1,11 @@ -# Copyrights 1999,2001-2011 by Mark Overmeer. +# Copyrights 1999,2001-2012 by Mark Overmeer. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.00. package MIME::Types; use vars '$VERSION'; -$VERSION = '1.32'; +$VERSION = '1.34'; use strict; @@ -526,13 +526,13 @@ application/vnd.oasis.opendocument.text-template;ott application/vnd.oasis.opendocument.text-web;oth application/vnd.obn -application/vnd.openxmlformats-officedocument.presentationml.presentation;pptx -application/vnd.openxmlformats-officedocument.presentationml.slideshow;ppsx -application/vnd.openxmlformats-officedocument.presentationml.template;potx +application/vnd.openxmlformats-officedocument.presentationml.presentation;pptx;binary +application/vnd.openxmlformats-officedocument.presentationml.slideshow;ppsx;binary +application/vnd.openxmlformats-officedocument.presentationml.template;potx;binary application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;xlsx;binary -application/vnd.openxmlformats-officedocument.spreadsheetml.template;xltx -application/vnd.openxmlformats-officedocument.wordprocessingml.document;docx -application/vnd.openxmlformats-officedocument.wordprocessingml.template;dotx +application/vnd.openxmlformats-officedocument.spreadsheetml.template;xltx;binary +application/vnd.openxmlformats-officedocument.wordprocessingml.document;docx;binary +application/vnd.openxmlformats-officedocument.wordprocessingml.template;dotx;binary application/vnd.osa.netdeploy application/vnd.palm;prc,pdb,pqa,oprc application/vnd.paos.xml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIME-Types-1.32/lib/MIME/Types.pod new/MIME-Types-1.34/lib/MIME/Types.pod --- old/MIME-Types-1.32/lib/MIME/Types.pod 2011-08-18 23:30:38.000000000 +0200 +++ new/MIME-Types-1.34/lib/MIME/Types.pod 2012-01-12 11:16:11.000000000 +0100 @@ -16,6 +16,19 @@ =head1 DESCRIPTION +MIME types are used in MIME compliant lines, for instance as part +of e-mail and HTTP traffic, to indicate the type of content which is +transmitted. Sometimes real knowledge about a mime-type is need. + +This module maintains a set of L<MIME::Type|MIME::Type> objects, which +each describe one known mime type. There are many types defined +by RFCs and vendors, so the list is long but not complete. Please +don't hestitate to ask to add additional information. + +If you wish to get access to the C<mime.types> files, which are +available on various places in UNIX and Linux systems, then have a +look at File::TypeInfo. + =head2 MIME::Types and mod_perl This module uses a DATA handle to read all the types at first @@ -40,19 +53,6 @@ the object you create here) you will get access to the same global table of types. -MIME types are used in MIME compliant lines, for instance as part -of e-mail and HTTP traffic, to indicate the type of content which is -transmitted. Sometimes real knowledge about a mime-type is need. - -This module maintains a set of L<MIME::Type|MIME::Type> objects, which -each describe one known mime type. There are many types defined -by RFCs and vendors, so the list is long but not complete. Please -don't hestitate to ask to add additional information. - -If you wish to get access to the C<mime.types> files, which are -available on various places in UNIX and Linux systems, then have a -look at File::TypeInfo. - =head1 METHODS =head2 Instantiation @@ -100,7 +100,7 @@ removed, because some people need that to get their application to work locally... broken applications... -=item $obj-E<gt>B<extensions> +=item $obj-E<gt>B<extensions>() Returns a list of all defined extensions. @@ -129,7 +129,7 @@ C<MIME::Type> object to be defined. In scalar context, only the first is returned. -=item $obj-E<gt>B<types> +=item $obj-E<gt>B<types>() Returns a list of all defined mime-types @@ -166,7 +166,7 @@ my $refdata = by_suffix 'image.gif'; my ($mediatype, $encoding) = @$refdata; -=item B<import_mime_types> +=item B<import_mime_types>() This method has been removed: mime-types are only useful if understood by many parties. Therefore, the IANA assigns names which can be used. @@ -178,12 +178,12 @@ =head1 SEE ALSO -This module is part of MIME-Types distribution version 1.32, -built on August 18, 2011. Website: F<http://perl.overmeer.net/mimetypes/> +This module is part of MIME-Types distribution version 1.34, +built on January 12, 2012. Website: F<http://perl.overmeer.net/mimetypes/> =head1 LICENSE -Copyrights 1999,2001-2011 by Mark Overmeer. For other contributors see ChangeLog. +Copyrights 1999,2001-2012 by Mark Overmeer. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de