[12120] | 1 | %bcond_with Mojolicious |
---|
[521] | 2 | Name: perl-MIME-Types |
---|
[12120] | 3 | Version: 2.17 |
---|
[5876] | 4 | Release: 1%{?_dist_release} |
---|
[521] | 5 | Summary: MIME types module for Perl |
---|
| 6 | |
---|
| 7 | License: GPL or Artistic |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | URL: http://search.cpan.org/dist/MIME-Types/ |
---|
| 10 | Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | |
---|
[12120] | 13 | Vendor: Project Vine |
---|
| 14 | Distribution: Vine Linux |
---|
| 15 | |
---|
[521] | 16 | BuildArch: noarch |
---|
[5876] | 17 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
[12120] | 18 | BuildRequires: perl(Test::MinimumVersion) |
---|
[5876] | 19 | BuildRequires: perl(Test::More) |
---|
| 20 | BuildRequires: perl(Test::Pod) |
---|
| 21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 22 | |
---|
| 23 | %description |
---|
| 24 | MIME types are used in MIME compliant lines, for instance as part of |
---|
| 25 | e-mail and HTTP traffic, to indicate the type of content which is |
---|
| 26 | transmitted. Sometimes real knowledge about a mime-type is need. |
---|
| 27 | This module maintains a set of MIME::Type objects, which each describe |
---|
| 28 | one known mime type. There are many types defined by RFCs and vendors, |
---|
| 29 | so the list is long but not complete. Please don't hestitate to ask to |
---|
| 30 | add additional information. |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n MIME-Types-%{version} |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 37 | make %{?_smp_mflags} |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %install |
---|
[5876] | 41 | rm -rf %{buildroot} |
---|
| 42 | make pure_install PERL_INSTALL_ROOT=%{buildroot} |
---|
| 43 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 44 | find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
| 45 | chmod -R u+w %{buildroot}/* |
---|
[521] | 46 | |
---|
[12120] | 47 | %if %{without Mojolicious} |
---|
| 48 | rm -rf %{buildroot}%{perl_vendorlib}/MojoX/ |
---|
| 49 | rm -rf %{buildroot}%{_mandir}/man3/Mojo* |
---|
| 50 | %endif |
---|
| 51 | |
---|
[521] | 52 | %check |
---|
| 53 | make test |
---|
[5876] | 54 | make test TEST_FILES="xt/*.t" |
---|
[521] | 55 | |
---|
| 56 | %clean |
---|
[5876] | 57 | rm -rf %{buildroot} |
---|
[521] | 58 | |
---|
| 59 | %files |
---|
| 60 | %defattr(-,root,root,-) |
---|
| 61 | %doc ChangeLog README |
---|
| 62 | %{perl_vendorlib}/MIME/ |
---|
[12120] | 63 | %if %{with Mojolicious} |
---|
| 64 | %{perl_vendorlib}/MojoX/ |
---|
| 65 | %endif |
---|
| 66 | %{_mandir}/man3/*.3* |
---|
[521] | 67 | |
---|
| 68 | |
---|
| 69 | %changelog |
---|
[12120] | 70 | * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.17-1 |
---|
| 71 | - new upstream release. |
---|
| 72 | - rebuilt with perl-5.26. |
---|
| 73 | |
---|
[8706] | 74 | * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.0.4-1 |
---|
| 75 | - update to 2.0.4 |
---|
| 76 | |
---|
[5876] | 77 | * Sat Mar 10 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.31-1 |
---|
| 78 | - updated to 1.31 |
---|
| 79 | |
---|
[3739] | 80 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.19-3 |
---|
| 81 | - rebuild with perl-5.12.3 |
---|
| 82 | |
---|
[521] | 83 | * Tue Nov 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.19-2vl1 |
---|
| 84 | - Initial build for Vine Linux |
---|
| 85 | |
---|
| 86 | * Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-2 |
---|
| 87 | - BuildRequire perl(Test::More). |
---|
| 88 | |
---|
| 89 | * Mon Mar 26 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.19-1 |
---|
| 90 | - 1.19. |
---|
| 91 | - BuildRequire perl(ExtUtils::MakeMaker). |
---|
| 92 | |
---|
| 93 | * Wed Nov 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.18-1 |
---|
| 94 | - 1.18. |
---|
| 95 | |
---|
| 96 | * Fri Sep 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-2 |
---|
| 97 | - Rebuild. |
---|
| 98 | |
---|
| 99 | * Tue Aug 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.17-1 |
---|
| 100 | - 1.17. |
---|
| 101 | |
---|
| 102 | * Sun Oct 2 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.16-1 |
---|
| 103 | - 1.16. |
---|
| 104 | |
---|
| 105 | * Fri Apr 1 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.15-2 |
---|
| 106 | - 1.15. |
---|
| 107 | |
---|
| 108 | * Tue May 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.3 |
---|
| 109 | - Require perl(:MODULE_COMPAT_*) (bug 1649). |
---|
| 110 | |
---|
| 111 | * Mon May 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.2 |
---|
| 112 | - Sync with IANA 20040517. |
---|
| 113 | - Require perl >= 1:5.6.1 for vendor install dir support. |
---|
| 114 | - Use pure_install to avoid perllocal.pod workarounds. |
---|
| 115 | |
---|
| 116 | * Sat Apr 24 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.13-0.fdr.1 |
---|
| 117 | - Update to 1.13 + IANA 20040424. |
---|
| 118 | |
---|
| 119 | * Sun Feb 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.2 |
---|
| 120 | - Reduce directory ownership bloat. |
---|
| 121 | |
---|
| 122 | * Wed Jan 21 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.12-0.fdr.1 |
---|
| 123 | - Update to 1.12. |
---|
| 124 | |
---|
| 125 | * Wed Jan 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.11-0.fdr.1 |
---|
| 126 | - Update to 1.11. |
---|
| 127 | |
---|
| 128 | * Wed Dec 31 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.2 |
---|
| 129 | - BuildRequires perl(Test::More). |
---|
| 130 | |
---|
| 131 | * Fri Dec 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.10-0.fdr.1 |
---|
| 132 | - Update to 1.10. |
---|
| 133 | |
---|
| 134 | * Thu Nov 6 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.09-0.fdr.1 |
---|
| 135 | - Update to 1.09. |
---|
| 136 | |
---|
| 137 | * Tue Nov 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.08-0.fdr.1 |
---|
| 138 | - Update to 1.08. |
---|
| 139 | |
---|
| 140 | * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.2 |
---|
| 141 | - Install into vendor dirs. |
---|
| 142 | - Don't use fedora-rpm-helper. |
---|
| 143 | - Specfile cleanup. |
---|
| 144 | |
---|
| 145 | * Wed Jul 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.07-0.fdr.1 |
---|
| 146 | - Update to 1.07. |
---|
| 147 | - Use fedora-rpm-helper. |
---|
| 148 | |
---|
| 149 | * Tue Jun 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.06-0.fdr.1 |
---|
| 150 | - First build. |
---|