[perl-MIME-Types] Update to 2.09
Paul Howarth
pghmcfc at fedoraproject.org
Mon Sep 15 11:18:39 UTC 2014
commit 69077b71c185e063ef9d4282630e24f9384cd4c8
Author: Paul Howarth <paul at city-fan.org>
Date: Mon Sep 15 12:17:56 2014 +0100
Update to 2.09
- New upstream release 2.09
- Rename ::Type::isAscii() into ::Type::isText()
- Add source table broofa (CPAN RT#98308)
- Add source table freedesktop (CPAN RT#98309)
- Update IANA types
- Fix scan of freedesktop definitions (CPAN RT#98385)
- MIME::Type::equals() did cmp not eq
- New httpAccept() wth tests in t/21accept.t
- New httpAcceptBest() and httpAcceptSelect() with tests in t/22accbest.t
- Add MojoX::MIME::Types with tests in t/40mojo.t
- Now depends on List::Util
- Documentation fixes
- Sub-package MojoX::MIME::Types to avoid pulling in Mojolicious as a
dependency for users of MIME::Types
perl-MIME-Types.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++-
sources | 2 +-
2 files changed, 62 insertions(+), 3 deletions(-)
---
diff --git a/perl-MIME-Types.spec b/perl-MIME-Types.spec
index 6d40525..586499c 100644
--- a/perl-MIME-Types.spec
+++ b/perl-MIME-Types.spec
@@ -1,6 +1,15 @@
+# No Mojolicious prior to Fedora 14
+# Mojolicious in Fedora 14 is too old
+# No Mojolicious in EPEL
+%if 0%{?fedora} > 14
+%global have_mojo 1
+%else
+%global have_mojo 0
+%endif
+
Name: perl-MIME-Types
-Version: 2.04
-Release: 3%{?dist}
+Version: 2.09
+Release: 1%{?dist}
Summary: MIME types module for Perl
License: GPL+ or Artistic
Group: Development/Libraries
@@ -8,6 +17,7 @@ URL: http://search.cpan.org/dist/MIME-Types/
Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
+BuildRequires: perl
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
@@ -15,8 +25,15 @@ BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
+BuildRequires: perl(List::Util)
+BuildRequires: perl(overload)
+BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.00
+BuildRequires: perl(vars)
+%if %{have_mojo}
+BuildRequires: perl(Mojo::Base)
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
@@ -28,6 +45,23 @@ module only knows about the file-name extensions that relate to some
file-type. It can also be used to produce the right format: types that
are not registered at IANA need to use 'x-' prefixes.
+%if %{have_mojo}
+%package -n perl-MojoX-MIME-Types
+
+Summary: MIME Types for Mojolicious
+Group: Development/Libraries
+Requires: perl-MIME-Types = %{version}-%{release}
+
+%description -n perl-MojoX-MIME-Types
+This module is a drop-in replacement for Mojolicious::Types, but with a more
+correct handling plus a complete list of types... a huge list of types.
+
+Some methods ignore information they receive: those parameters are accepted
+for compatibility with the Mojolicious::Types interface, but should not
+contain useful information.
+
+%endif
+
%prep
%setup -q -n MIME-Types-%{version}
@@ -54,7 +88,32 @@ rm -rf %{buildroot}
%{_mandir}/man3/MIME::Type.3pm*
%{_mandir}/man3/MIME::Types.3pm*
+%if %{have_mojo}
+%files -n perl-MojoX-MIME-Types
+%{perl_vendorlib}/MojoX/
+%{_mandir}/man3/MojoX::MIME::Types.3pm*
+%else
+%exclude %{perl_vendorlib}/MojoX/
+%exclude %{_mandir}/man3/MojoX::MIME::Types.3pm*
+%endif
+
%changelog
+* Mon Sep 15 2014 Paul Howarth <paul at city-fan.org> - 2.09-1
+- Update to 2.09
+ - Rename ::Type::isAscii() into ::Type::isText()
+ - Add source table broofa (CPAN RT#98308)
+ - Add source table freedesktop (CPAN RT#98309)
+ - Update IANA types
+ - Fix scan of freedesktop definitions (CPAN RT#98385)
+ - MIME::Type::equals() did cmp not eq
+ - New httpAccept() wth tests in t/21accept.t
+ - New httpAcceptBest() and httpAcceptSelect() with tests in t/22accbest.t
+ - Add MojoX::MIME::Types with tests in t/40mojo.t
+ - Now depends on List::Util
+ - Documentation fixes
+- Sub-package MojoX::MIME::Types to avoid pulling in Mojolicious as a
+ dependency for users of MIME::Types
+
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 2.04-3
- Perl 5.20 rebuild
diff --git a/sources b/sources
index a906d66..058bca4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e292bbf7756bb4999407f3f660697168 MIME-Types-2.04.tar.gz
+99952df4f4a1e2e31eb80d98b6197774 MIME-Types-2.09.tar.gz
More information about the perl-devel
mailing list