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
This commit is contained in:
Paul Howarth 2014-09-15 12:17:56 +01:00
parent f1c4ae0651
commit 69077b71c1
2 changed files with 62 additions and 3 deletions

View File

@ -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@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@redhat.com> - 2.04-3
- Perl 5.20 rebuild

View File

@ -1 +1 @@
e292bbf7756bb4999407f3f660697168 MIME-Types-2.04.tar.gz
99952df4f4a1e2e31eb80d98b6197774 MIME-Types-2.09.tar.gz