Blame SPECS/perl-MIME-Types.spec

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