[12120] | 1 | # Use system-wide mailcap database |
---|
| 2 | %bcond_without perl_LWP_MediaTypes_enables_mailcap |
---|
| 3 | |
---|
| 4 | Name: perl-LWP-MediaTypes |
---|
| 5 | Version: 6.04 |
---|
| 6 | Release: 2%{?_dist_release} |
---|
| 7 | Summary: Guess media type for a file or a URL |
---|
| 8 | # lib/LWP/media.types: Public Domain |
---|
| 9 | # lib/LWP/MediaTypes.pm: GPL+ or Artistic |
---|
| 10 | License: (GPL+ or Artistic) and Public Domain |
---|
| 11 | URL: https://metacpan.org/release/LWP-MediaTypes |
---|
| 12 | Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-MediaTypes-%{version}.tar.gz |
---|
| 13 | |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | Distribution: Vine Linux |
---|
| 16 | |
---|
| 17 | BuildArch: noarch |
---|
| 18 | BuildRequires: make |
---|
| 19 | BuildRequires: perl >= 2:5.26.2 |
---|
| 20 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 21 | BuildRequires: perl(strict) |
---|
| 22 | BuildRequires: perl(warnings) |
---|
| 23 | BuildRequires: sed |
---|
| 24 | # Run-time: |
---|
| 25 | BuildRequires: perl(Carp) |
---|
| 26 | BuildRequires: perl(Exporter) |
---|
| 27 | BuildRequires: perl(File::Basename) |
---|
| 28 | BuildRequires: perl(Scalar::Util) |
---|
| 29 | # Tests only: |
---|
| 30 | BuildRequires: perl(File::Spec) |
---|
| 31 | BuildRequires: perl(overload) |
---|
| 32 | BuildRequires: perl(Test::Fatal) |
---|
| 33 | BuildRequires: perl(Test::More) |
---|
| 34 | # Optional tests: |
---|
| 35 | # CPAN::Meta not helpful |
---|
| 36 | # CPAN::Meta::Prereqs not helpful |
---|
| 37 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
| 38 | Requires: perl(File::Basename) |
---|
| 39 | %if %{with perl_LWP_MediaTypes_enables_mailcap} |
---|
| 40 | Requires: mailcap |
---|
| 41 | %endif |
---|
| 42 | Conflicts: perl-libwww-perl < 6 |
---|
| 43 | |
---|
| 44 | %description |
---|
| 45 | This module provides functions for handling media (also known as MIME) |
---|
| 46 | types and encodings. The mapping from file extensions to media types is |
---|
| 47 | defined by the media.types file. If the ~/.media.types file exists it is |
---|
| 48 | used instead. For backwards compatibility we will also look for |
---|
| 49 | ~/.mime.types. |
---|
| 50 | |
---|
| 51 | %prep |
---|
| 52 | %setup -q -n LWP-MediaTypes-%{version} |
---|
| 53 | %if %{with perl_LWP_MediaTypes_enables_mailcap} |
---|
| 54 | # Use system-wide mailcap database |
---|
| 55 | sed -i -e '/my @priv_files = ();/ s|()|("%{_sysconfdir}/mime.types")|' \ |
---|
| 56 | lib/LWP/MediaTypes.pm |
---|
| 57 | %endif |
---|
| 58 | |
---|
| 59 | %build |
---|
| 60 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 |
---|
| 61 | %{make_build} |
---|
| 62 | |
---|
| 63 | %install |
---|
| 64 | %{make_install} |
---|
| 65 | %{_fixperms} %{buildroot}/* |
---|
| 66 | |
---|
| 67 | %check |
---|
| 68 | make test |
---|
| 69 | |
---|
| 70 | %files |
---|
| 71 | %license LICENSE |
---|
| 72 | %doc Changes README |
---|
| 73 | %{perl_vendorlib}/* |
---|
| 74 | %{_mandir}/man3/* |
---|
| 75 | |
---|
| 76 | %changelog |
---|
| 77 | * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 6.04-2 |
---|
| 78 | - initial build for Vine Linux. |
---|
| 79 | |
---|
| 80 | * Wed Mar 20 2019 Petr Pisar <ppisar@redhat.com> - 6.04-1 |
---|
| 81 | - 6.04 bump |
---|
| 82 | |
---|
| 83 | * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.02-17 |
---|
| 84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 85 | |
---|
| 86 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.02-16 |
---|
| 87 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 88 | |
---|
| 89 | * Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 6.02-15 |
---|
| 90 | - Perl 5.28 rebuild |
---|
| 91 | |
---|
| 92 | * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.02-14 |
---|
| 93 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
| 94 | |
---|
| 95 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.02-13 |
---|
| 96 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 97 | |
---|
| 98 | * Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 6.02-12 |
---|
| 99 | - Perl 5.26 rebuild |
---|
| 100 | |
---|
| 101 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.02-11 |
---|
| 102 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 103 | |
---|
| 104 | * Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 6.02-10 |
---|
| 105 | - Perl 5.24 rebuild |
---|
| 106 | |
---|
| 107 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.02-9 |
---|
| 108 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
| 109 | |
---|
| 110 | * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-8 |
---|
| 111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
| 112 | |
---|
| 113 | * Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 6.02-7 |
---|
| 114 | - Perl 5.22 rebuild |
---|
| 115 | |
---|
| 116 | * Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.02-6 |
---|
| 117 | - Perl 5.20 rebuild |
---|
| 118 | |
---|
| 119 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-5 |
---|
| 120 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
| 121 | |
---|
| 122 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-4 |
---|
| 123 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
| 124 | |
---|
| 125 | * Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 6.02-3 |
---|
| 126 | - Perl 5.18 rebuild |
---|
| 127 | |
---|
| 128 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.02-2 |
---|
| 129 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
| 130 | |
---|
| 131 | * Thu Nov 22 2012 Petr Šabata <contyk@redhat.com> - 6.02-1 |
---|
| 132 | - 6.02 bump |
---|
| 133 | - Drop command macros |
---|
| 134 | - Modernize the spec |
---|
| 135 | - Correct the Lincense tag |
---|
| 136 | |
---|
| 137 | * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-6 |
---|
| 138 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 139 | |
---|
| 140 | * Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 6.01-5 |
---|
| 141 | - Perl 5.16 rebuild |
---|
| 142 | |
---|
| 143 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-4 |
---|
| 144 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 145 | |
---|
| 146 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.01-3 |
---|
| 147 | - Perl mass rebuild |
---|
| 148 | |
---|
| 149 | * Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> - 6.01-2 |
---|
| 150 | - Use MIME type database from mailcap |
---|
| 151 | |
---|
| 152 | * Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.01-1 |
---|
| 153 | - Specfile autogenerated by cpanspec 1.78. |
---|
| 154 | - Remove BuildRoot stuff |
---|
| 155 | - Conflicts with perl-libwww-perl 5* and older |
---|