Update to 1.35

- Update to 1.35:
  - Explain how to use MIME::Types in mod_perl; when you do not read the
    documentation about mod_perl/fork it will work as always, but
    inefficiently
  - subType() did not handle subType's with '+' in them
  - Added video/webm and audio/webm, although not (yet) IANA registered
- BR: perl(Carp) and perl(Exporter)
- BR: at least version 1.00 of  perl(Test::Pod)
- Use a patch rather than scripted iconv to fix character encooding
- Don't need to remove empty directories from the buildroot
- Drop %defattr, redundant since rpm 4.4
- Use %{_fixperms} macro rather than our own chmod incantation
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Make %files list more explicit
This commit is contained in:
Paul Howarth 2012-07-24 15:38:45 +01:00
parent d80bff628d
commit 6b7924db36
4 changed files with 88 additions and 26 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
/MIME-Types-1.31.tar.gz
/MIME-Types-[0-9.]*.tar.gz

View File

@ -0,0 +1,50 @@
--- MIME-Types-1.31/ChangeLog 2010-09-21 14:35:38.000000000 +0100
+++ MIME-Types-1.31/ChangeLog 2011-03-15 10:10:00.994144345 +0000
@@ -136,7 +136,7 @@
version 1.14: Wed Nov 24 18:09:49 CET 2004
- - [Ville Skyttä] provided some minor fixes and two new types
+ - [Ville Skyttä] provided some minor fixes and two new types
- [Ave Wringley] contributed video/x-ms-wmv
@@ -145,14 +145,14 @@
version 1.13: Sat Apr 24 00:15:09 CEST 2004
- - [Ville Skyttä] and [Austing Ziegler] updated the type list to
+ - [Ville Skyttä] and [Austing Ziegler] updated the type list to
IANA registry dated 2004-04-09. Many changes to clean-up the
list, trying to find a good balance between IANA's rules and
common practice.
version 1.12: Wed Jan 21 10:09:43 CET 2004
- - [Ville Skyttä] requested removal of application/excel, because
+ - [Ville Skyttä] requested removal of application/excel, because
it is not IANA registered. Applied.
- Documented that alternative types for a certain extension will
@@ -163,7 +163,7 @@
version 1.11: Tue Jan 13 10:36:41 CET 2004
- - [Ville Skyttä] contributed a large set of new mime-types, and
+ - [Ville Skyttä] contributed a large set of new mime-types, and
applied some fixes. New IANA names are now all included.
version 1.10: Wed Dec 17 12:47:00 CET 2003
@@ -203,10 +203,10 @@
- [Guangzu Wang] pointed to typos in the Synopsis of both packages:
$mimetype --> $mimetypes
- - [Ville Skyttä] some doc patches and many tweaks and additions
+ - [Ville Skyttä] some doc patches and many tweaks and additions
to the type list.
- - [Ville Skyttä] fixed bug, where the third column was taken as
+ - [Ville Skyttä] fixed bug, where the third column was taken as
second if that one was empty.
version 1.004: Tue Oct 22 19:22:43 CEST 2002

View File

@ -1,19 +1,20 @@
Name: perl-MIME-Types
Version: 1.31
Release: 5%{?dist}
Version: 1.35
Release: 1%{?dist}
Summary: MIME types module for Perl
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/MIME-Types/
Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
Patch0: MIME-Types-1.31-utf8.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Test::Pod) >= 1.00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
MIME types are used in MIME compliant lines, for instance as part of
@ -24,42 +25,53 @@ one known mime type. There are many types defined by RFCs and vendors,
so the list is long but not complete. Please don't hesitate to ask to
add additional information.
%prep
%setup -q -n MIME-Types-%{version}
f=ChangeLog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
# Recode ChangeLog as UTF-8
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}
%check
make test
make test TEST_FILES="xt/*.t"
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc ChangeLog README
%{perl_vendorlib}/MIME/
%{_mandir}/man3/MIME::Type*.3*
%{_mandir}/man3/MIME::Type.3pm*
%{_mandir}/man3/MIME::Types.3pm*
%changelog
* Tue Jul 24 2012 Paul Howarth <paul@city-fan.org> - 1.35-1
- Update to 1.35:
- Explain how to use MIME::Types in mod_perl; when you do not read the
documentation about mod_perl/fork it will work as always, but
inefficiently
- subType() did not handle subType's with '+' in them
- Added video/webm and audio/webm, although not (yet) IANA registered
- BR: perl(Carp) and perl(Exporter)
- BR: at least version 1.00 of perl(Test::Pod)
- Use a patch rather than scripted iconv to fix character encooding
- Don't need to remove empty directories from the buildroot
- Drop %%defattr, redundant since rpm 4.4
- Use %%{_fixperms} macro rather than our own chmod incantation
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Make %%files list more explicit
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.31-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

View File

@ -1 +1 @@
d4435eb012e813682f94d285b40339ce MIME-Types-1.31.tar.gz
0bba9902b326e03e376fe313b0fb239a MIME-Types-1.35.tar.gz