Blame SPECS/perl-MIME-Types.spec

b8f338
# No Mojolicious prior to Fedora 14
b8f338
# Mojolicious in Fedora 14 is too old
b8f338
# No Mojolicious in EPEL
b8f338
%if 0%{?fedora} > 14
b8f338
%global have_mojo 1
b8f338
%else
b8f338
%global have_mojo 0
b8f338
%endif
b8f338
b8f338
# Run extra test
b8f338
%if 0%{?rhel}
b8f338
%bcond_with perl_MIME_Types_enables_extra_test
b8f338
%else
b8f338
%bcond_without perl_MIME_Types_enables_extra_test
b8f338
%endif
b8f338
b8f338
Name:           perl-MIME-Types
b8f338
Version:        2.17
b8f338
Release:        3%{?dist}
b8f338
Summary:        MIME types module for Perl
b8f338
License:        GPL+ or Artistic
b8f338
URL:            https://metacpan.org/release/MIME-Types
b8f338
Source0:        https://cpan.metacpan.org/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
b8f338
BuildArch:      noarch
b8f338
# Module Build
b8f338
BuildRequires:  coreutils
b8f338
BuildRequires:  findutils
b8f338
BuildRequires:  make
b8f338
BuildRequires:  perl-generators
b8f338
BuildRequires:  perl-interpreter
b8f338
BuildRequires:  perl(ExtUtils::MakeMaker)
b8f338
# Module Runtime
b8f338
BuildRequires:  perl(base)
b8f338
BuildRequires:  perl(Carp)
b8f338
BuildRequires:  perl(Exporter)
b8f338
BuildRequires:  perl(File::Basename)
b8f338
BuildRequires:  perl(File::Spec)
b8f338
BuildRequires:  perl(List::Util)
b8f338
%if %{have_mojo}
b8f338
BuildRequires:  perl(Mojo::Base)
b8f338
%endif
b8f338
BuildRequires:  perl(overload)
b8f338
BuildRequires:  perl(strict)
b8f338
BuildRequires:  perl(vars)
b8f338
# Test Suite
b8f338
BuildRequires:  perl(lib)
b8f338
BuildRequires:  perl(Test::More)
b8f338
BuildRequires:  perl(warnings)
b8f338
%if %{with perl_MIME_Types_enables_extra_test}
b8f338
# Extra Tests
b8f338
BuildRequires:  perl(Test::MinimumVersion)
b8f338
BuildRequires:  perl(Test::Pod) >= 1.00
b8f338
%endif
b8f338
# Runtime
b8f338
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b8f338
b8f338
%description
b8f338
MIME types are used in many applications, for instance as part of e-mail
b8f338
and HTTP traffic, to indicate the type of content that is transmitted.
b8f338
b8f338
Sometimes detailed knowledge about a mime-type is need; however, this
b8f338
module only knows about the file-name extensions that relate to some
b8f338
file-type.  It can also be used to produce the right format: types that
b8f338
are not registered at IANA need to use 'x-' prefixes.
b8f338
b8f338
%if %{have_mojo}
b8f338
%package -n perl-MojoX-MIME-Types
b8f338
b8f338
Summary:        MIME Types for Mojolicious
b8f338
Requires:       perl-MIME-Types = %{version}-%{release}
b8f338
b8f338
%description -n perl-MojoX-MIME-Types
b8f338
This module is a drop-in replacement for Mojolicious::Types, but with a more
b8f338
correct handling plus a complete list of types... a huge list of types.
b8f338
b8f338
Some methods ignore information they receive: those parameters are accepted
b8f338
for compatibility with the Mojolicious::Types interface, but should not
b8f338
contain useful information.
b8f338
b8f338
%endif
b8f338
b8f338
%prep
b8f338
%setup -q -n MIME-Types-%{version}
b8f338
b8f338
%build
b8f338
perl Makefile.PL INSTALLDIRS=vendor
b8f338
make %{?_smp_mflags}
b8f338
b8f338
%install
b8f338
make pure_install DESTDIR=%{buildroot}
b8f338
find %{buildroot} -type f -name .packlist -delete
b8f338
%{_fixperms} -c %{buildroot}
b8f338
b8f338
%check
b8f338
make test
b8f338
%if %{with perl_MIME_Types_enables_extra_test}
b8f338
make test TEST_FILES="xt/*.t"
b8f338
%endif
b8f338
b8f338
%files
b8f338
%doc ChangeLog README README.md
b8f338
%{perl_vendorlib}/MIME/
b8f338
%{_mandir}/man3/MIME::Type.3*
b8f338
%{_mandir}/man3/MIME::Types.3*
b8f338
b8f338
%if %{have_mojo}
b8f338
%files -n perl-MojoX-MIME-Types
b8f338
%{perl_vendorlib}/MojoX/
b8f338
%{_mandir}/man3/MojoX::MIME::Types.3*
b8f338
%else
b8f338
%exclude %{perl_vendorlib}/MojoX/
b8f338
%exclude %{_mandir}/man3/MojoX::MIME::Types.3*
b8f338
%endif
b8f338
b8f338
%changelog
b8f338
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.17-3
b8f338
- Perl 5.28 rebuild
b8f338
b8f338
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b8f338
b8f338
* Sat Jan 27 2018 Paul Howarth <paul@city-fan.org> - 2.17-1
b8f338
- Update to 2.17
b8f338
  - When picking a preferred type for an extension, prefer the type with the
b8f338
    same minor-name
b8f338
  - Remove IANA obsoleted types
b8f338
b8f338
* Tue Jan 23 2018 Paul Howarth <paul@city-fan.org> - 2.16-1
b8f338
- Update to 2.16
b8f338
  - Collecting of IANA info had stalled: logic rewritten
b8f338
  - Moved to git and GitHub
b8f338
  - Move scripts and source files into MANIFEST.extra
b8f338
  - Update types and extensions
b8f338
b8f338
* Fri Nov 10 2017 Paul Howarth <paul@city-fan.org> - 2.14-1
b8f338
- Update to 2.14
b8f338
  - MojoX should not die on missing types (CPAN RT#123298)
b8f338
- Drop EL-5 support
b8f338
  - Drop BuildRoot: and Group: tags
b8f338
  - Drop explicit buildroot cleaning in %%install section
b8f338
  - Drop explicit %%clean section
b8f338
b8f338
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-5
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b8f338
b8f338
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.13-4
b8f338
- Perl 5.26 rebuild
b8f338
b8f338
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13-3
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b8f338
b8f338
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.13-2
b8f338
- Perl 5.24 rebuild
b8f338
b8f338
* Tue Mar  8 2016 Paul Howarth <paul@city-fan.org> - 2.13-1
b8f338
- Update to 2.13
b8f338
  - Not all information was extracted from the Apache tables
b8f338
- Simplify find command using -delete
b8f338
b8f338
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.12-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b8f338
b8f338
* Wed Nov 11 2015 Paul Howarth <paul@city-fan.org> - 2.12-1
b8f338
- Update to 2.12
b8f338
  - Downgrade prereq perl to 5.6
b8f338
  - Update IANA
b8f338
b8f338
* Fri Jun 26 2015 Paul Howarth <paul@city-fan.org> - 2.11-1
b8f338
- Update to 2.11
b8f338
  - Accept field 'q' weights
b8f338
  - Introduce PERL_MIME_TYPE_DB (CPAN RT#104945)
b8f338
  - Strict Perl 5.8 (CPAN RT#105267)
b8f338
- Classify buildreqs by usage
b8f338
b8f338
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09-3
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b8f338
b8f338
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.09-2
b8f338
- Perl 5.22 rebuild
b8f338
b8f338
* Mon Sep 15 2014 Paul Howarth <paul@city-fan.org> - 2.09-1
b8f338
- Update to 2.09
b8f338
  - Rename ::Type::isAscii() into ::Type::isText()
b8f338
  - Add source table broofa (CPAN RT#98308)
b8f338
  - Add source table freedesktop (CPAN RT#98309)
b8f338
  - Update IANA types
b8f338
  - Fix scan of freedesktop definitions (CPAN RT#98385)
b8f338
  - MIME::Type::equals() did cmp not eq
b8f338
  - New httpAccept() wth tests in t/21accept.t
b8f338
  - New httpAcceptBest() and httpAcceptSelect() with tests in t/22accbest.t
b8f338
  - Add MojoX::MIME::Types with tests in t/40mojo.t
b8f338
  - Now depends on List::Util
b8f338
  - Documentation fixes
b8f338
- Sub-package MojoX::MIME::Types to avoid pulling in Mojolicious as a
b8f338
  dependency for users of MIME::Types
b8f338
b8f338
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.04-3
b8f338
- Perl 5.20 rebuild
b8f338
b8f338
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.04-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b8f338
b8f338
* Thu Sep 12 2013 Paul Howarth <paul@city-fan.org> - 2.04-1
b8f338
- Update to 2.04:
b8f338
  - Fix one more localize $_ in ::Types::_read_db() (CPAN RT#87856)
b8f338
b8f338
* Wed Sep  4 2013 Paul Howarth <paul@city-fan.org> - 2.03-1
b8f338
- Update to 2.03:
b8f338
  - Fix typo in docs (CPAN RT#88394)
b8f338
  - Require perl 5.8.8, for <:encoding
b8f338
  - Updated IANA
b8f338
  - A bit more DESCRIPTION
b8f338
- Update %%description
b8f338
b8f338
* Sun Aug 18 2013 Paul Howarth <paul@city-fan.org> - 2.02-1
b8f338
- Update to 2.02:
b8f338
  - Localize DB and $_ in ::Types::_read_db() (CPAN RT#87856)
b8f338
b8f338
* Sun Aug  4 2013 Paul Howarth <paul@city-fan.org> - 2.01-1
b8f338
- Update to 2.01:
b8f338
  - Add dummy ::Types::create_type_index() because
b8f338
    Catalyst-Plugin-Static-Simple calls it :(
b8f338
b8f338
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.00-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b8f338
b8f338
* Fri Aug  2 2013 Paul Howarth <paul@city-fan.org> - 2.00-1
b8f338
- Update to 2.00:
b8f338
  - The mime information is now collected from various sources, amongst them
b8f338
    IANA; hence, some types may use different x-'s
b8f338
  - A separate table is built for the extension-to-type mapping
b8f338
  - Number of types up from 995 to 2096
b8f338
  - Number of extensions up from 734 to 1425
b8f338
  - The memory footprint and start-up speed should have improved considerably
b8f338
  - Added bin/collect_types
b8f338
  - Fixed some typos (CPAN RT#86847)
b8f338
  - Added ::Type::isVendor(), ::isExperimental(), ::isPersonal (CPAN RT#87062)
b8f338
  - Added ::Types::listTypes()
b8f338
  - Cleaned-up Exporter syntax of (very) old interface
b8f338
- BR: perl(base), perl(File::Basename) and perl(File::Spec)
b8f338
- Drop no-longer-needed UTF8 patch
b8f338
b8f338
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.38-3
b8f338
- Perl 5.18 rebuild
b8f338
b8f338
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.38-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b8f338
b8f338
* Fri Jan 11 2013 Paul Howarth <paul@city-fan.org> - 1.38-1
b8f338
- Update to 1.38:
b8f338
  - Add application/vnd.ms-excel.template.macroEnabled.12 and five related
b8f338
    from http://filext.com/faq/office_mime_types.php (CPAN RT#82616)
b8f338
b8f338
* Fri Dec 21 2012 Paul Howarth <paul@city-fan.org> - 1.37-1
b8f338
- Update to 1.37:
b8f338
  - Remove text/x-perl, where we also have an application/x-perl
b8f338
    (CPAN RT#82100)
b8f338
b8f338
* Wed Nov 21 2012 Petr Šabata <contyk@redhat.com> - 1.36-2
b8f338
- Buildrequire perl(lib)
b8f338
b8f338
* Thu Nov  1 2012 Paul Howarth <paul@city-fan.org> - 1.36-1
b8f338
- Update to 1.36:
b8f338
  - xlsx and friends had encoding 'binary' (since version 1.30), but should
b8f338
    have been 'base64' (CPAN RT#80529)
b8f338
b8f338
* Tue Jul 24 2012 Paul Howarth <paul@city-fan.org> - 1.35-1
b8f338
- Update to 1.35:
b8f338
  - Explain how to use MIME::Types in mod_perl; when you do not read the
b8f338
    documentation about mod_perl/fork it will work as always, but
b8f338
    inefficiently
b8f338
  - subType() did not handle subType's with '+' in them
b8f338
  - Added video/webm and audio/webm, although not (yet) IANA registered
b8f338
- BR: perl(Carp) and perl(Exporter)
b8f338
- BR: at least version 1.00 of  perl(Test::Pod)
b8f338
- Use a patch rather than scripted iconv to fix character encooding
b8f338
- Don't need to remove empty directories from the buildroot
b8f338
- Drop %%defattr, redundant since rpm 4.4
b8f338
- Use %%{_fixperms} macro rather than our own chmod incantation
b8f338
- Use DESTDIR rather than PERL_INSTALL_ROOT
b8f338
- Don't use macros for commands
b8f338
- Make %%files list more explicit
b8f338
b8f338
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.31-5
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b8f338
b8f338
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.31-4
b8f338
- Perl 5.16 rebuild
b8f338
b8f338
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.31-3
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b8f338
b8f338
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.31-2
b8f338
- Perl mass rebuild
b8f338
b8f338
* Tue Mar 15 2011 Paul Howarth <paul@city-fan.org> - 1.31-1
b8f338
- Update to 1.31:
b8f338
  - Added zillions of new types from debian's /etc/mime.types
b8f338
  - Changed table format, hopefully to speed-up load times per type, slightly
b8f338
    compensating for the increased list
b8f338
  - Fix typo (CPAN RT#55655)
b8f338
  - xlsx must be encoded binary
b8f338
  - Added f4v, f4p, f4a, f4b extensions for mpeg4 (CPAN RT#55168)
b8f338
  - Moved POD test to xt directory, reducing the number of dependencies
b8f338
b8f338
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.28-5
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b8f338
b8f338
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.28-4
b8f338
- Rebuild to fix problems with vendorarch/lib (#661697)
b8f338
b8f338
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.28-3
b8f338
- Mass rebuild with perl-5.12.0
b8f338
b8f338
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.28-2
b8f338
- rebuild against perl 5.10.1
b8f338
b8f338
* Wed Oct  7 2009 Stepan Kasal <skasal@redhat.com> - 1.28-1
b8f338
- new upstream version
b8f338
b8f338
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.27-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b8f338
b8f338
* Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.27-1
b8f338
- update to 1.27
b8f338
b8f338
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.24-2
b8f338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b8f338
b8f338
* Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.24-1
b8f338
- update to 1.24
b8f338
b8f338
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23-3
b8f338
- Rebuild for perl 5.10 (again)
b8f338
b8f338
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23-2
b8f338
- rebuild for new perl
b8f338
b8f338
* Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23-1
b8f338
- bump to 1.23
b8f338
b8f338
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.20-2
b8f338
- license tag fix
b8f338
b8f338
* Wed Jun 13 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.20-1
b8f338
- 1.20.
b8f338
- Convert docs to UTF-8.
b8f338
b8f338
* Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-2
b8f338
- BuildRequire perl(Test::More).
b8f338
b8f338
* Mon Mar 26 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-1
b8f338
- 1.19.
b8f338
- BuildRequire perl(ExtUtils::MakeMaker).
b8f338
b8f338
* Wed Nov 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.18-1
b8f338
- 1.18.
b8f338
b8f338
* Fri Sep 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-2
b8f338
- Rebuild.
b8f338
b8f338
* Tue Aug 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-1
b8f338
- 1.17.
b8f338
b8f338
* Sun Oct  2 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.16-1
b8f338
- 1.16.
b8f338
b8f338
* Fri Apr  1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.15-2
b8f338
- 1.15.
b8f338
b8f338
* Tue May 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.3
b8f338
- Require perl(:MODULE_COMPAT_*) (bug 1649).
b8f338
b8f338
* Mon May 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.2
b8f338
- Sync with IANA 20040517.
b8f338
- Require perl >= 1:5.6.1 for vendor install dir support.
b8f338
- Use pure_install to avoid perllocal.pod workarounds.
b8f338
b8f338
* Sat Apr 24 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.1
b8f338
- Update to 1.13 + IANA 20040424.
b8f338
b8f338
* Sun Feb  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.2
b8f338
- Reduce directory ownership bloat.
b8f338
b8f338
* Wed Jan 21 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.1
b8f338
- Update to 1.12.
b8f338
b8f338
* Wed Jan 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.11-0.fdr.1
b8f338
- Update to 1.11.
b8f338
b8f338
* Wed Dec 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.2
b8f338
- BuildRequires perl(Test::More).
b8f338
b8f338
* Fri Dec 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.1
b8f338
- Update to 1.10.
b8f338
b8f338
* Thu Nov  6 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.09-0.fdr.1
b8f338
- Update to 1.09.
b8f338
b8f338
* Tue Nov  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.08-0.fdr.1
b8f338
- Update to 1.08.
b8f338
b8f338
* Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.2
b8f338
- Install into vendor dirs.
b8f338
- Don't use fedora-rpm-helper.
b8f338
- Specfile cleanup.
b8f338
b8f338
* Wed Jul 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.1
b8f338
- Update to 1.07.
b8f338
- Use fedora-rpm-helper.
b8f338
b8f338
* Tue Jun 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.06-0.fdr.1
b8f338
- First build.