Hello community, here is the log from the commit of package perl-LWP-MediaTypes for openSUSE:Factory checked in at 2012-03-01 17:24:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-LWP-MediaTypes (Old) and /work/SRC/openSUSE:Factory/.perl-LWP-MediaTypes.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-LWP-MediaTypes", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-LWP-MediaTypes/perl-LWP-MediaTypes.changes 2011-09-23 12:37:46.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-LWP-MediaTypes.new/perl-LWP-MediaTypes.changes 2012-03-01 17:24:41.000000000 +0100 @@ -1,0 +2,7 @@ +Mon Feb 20 10:48:49 UTC 2012 - coolo@suse.com + +- updated to 6.02 + * Update the media.types database + * Restore perl-5.6 compatiblity. + +------------------------------------------------------------------- Old: ---- LWP-MediaTypes-6.01.tar.gz New: ---- LWP-MediaTypes-6.02.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-LWP-MediaTypes.spec ++++++ --- /var/tmp/diff_new_pack.jAAbwJ/_old 2012-03-01 17:24:43.000000000 +0100 +++ /var/tmp/diff_new_pack.jAAbwJ/_new 2012-03-01 17:24:43.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-LWP-MediaTypes # -# 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,21 +16,20 @@ # - Name: perl-LWP-MediaTypes -Version: 6.01 -Release: 1 -License: GPL-1.0+ or Artistic-1.0 +Version: 6.02 +Release: 0 %define cpan_name LWP-MediaTypes Summary: guess media type for a file or a URL -Url: http://search.cpan.org/dist/LWP-MediaTypes/ +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -#Source: http://www.cpan.org/authors/id/G/GA/GAAS/LWP-MediaTypes-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz +Url: http://search.cpan.org/dist/LWP-MediaTypes/ +Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch +#BuildRequires: perl(LWP::MediaTypes) %{perl_requires} %description @@ -40,6 +39,58 @@ is used instead. For backwards compatibility we will also look for _~/.mime.types_. +The following functions are exported by default: + +* guess_media_type( $filename ) + +* guess_media_type( $uri ) + +* guess_media_type( $filename_or_uri, $header_to_modify ) + + This function tries to guess media type and encoding for a file or a URI. + It returns the content type, which is a string like '"text/html"'. In + array context it also returns any content encodings applied (in the order + used to encode the file). You can pass a URI object reference, instead of + the file name. + + If the type can not be deduced from looking at the file name, then + guess_media_type() will let the '-T' Perl operator take a look. If this + works (and '-T' returns a TRUE value) then we return _text/plain_ as the + type, otherwise we return _application/octet-stream_ as the type. + + The optional second argument should be a reference to a HTTP::Headers + object or any object that implements the $obj->header method in a similar + way. When it is present the values of the 'Content-Type' and + 'Content-Encoding' will be set for this header. + +* media_suffix( $type, ... ) + + This function will return all suffixes that can be used to denote the + specified media type(s). Wildcard types can be used. In a scalar context + it will return the first suffix found. Examples: + + @suffixes = media_suffix('image/*', 'audio/basic'); + $suffix = media_suffix('text/html'); + +The following functions are only exported by explicit request: + +* add_type( $type, @exts ) + + Associate a list of file extensions with the given media type. Example: + + add_type("x-world/x-vrml" => qw(wrl vrml)); + +* add_encoding( $type, @ext ) + + Associate a list of file extensions with an encoding type. Example: + + add_encoding("x-gzip" => "gz"); + +* read_media_types( @files ) + + Parse media types files and add the type mappings found there. Example: + + read_media_types("conf/mime.types"); %prep %setup -q -n %{cpan_name}-%{version} @@ -56,11 +107,8 @@ %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc Changes README %changelog ++++++ LWP-MediaTypes-6.01.tar.gz -> LWP-MediaTypes-6.02.tar.gz ++++++ ++++ 2090 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org