809452
Name:           perl-LWP-MediaTypes
809452
Version:        6.02
809452
Release:        2%{?dist}
809452
Summary:        Guess media type for a file or a URL
809452
License:        (GPL+ or Artistic) and Public Domain
809452
Group:          Development/Libraries
809452
URL:            http://search.cpan.org/dist/LWP-MediaTypes/
809452
Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/LWP-MediaTypes-%{version}.tar.gz
809452
BuildArch:      noarch
809452
BuildRequires:  perl(Exporter)
809452
BuildRequires:  perl(ExtUtils::MakeMaker)
809452
BuildRequires:  perl(File::Basename)
809452
# Tests only:
809452
BuildRequires:  perl(Test)
809452
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
809452
Requires:       perl(File::Basename)
809452
Requires:       mailcap
809452
Conflicts:      perl-libwww-perl < 6
809452
809452
%description
809452
This module provides functions for handling media (also known as MIME)
809452
types and encodings. The mapping from file extensions to media types is
809452
defined by the media.types file. If the ~/.media.types file exists it is
809452
used instead. For backwards compatibility we will also look for
809452
~/.mime.types.
809452
809452
%prep
809452
%setup -q -n LWP-MediaTypes-%{version}
809452
# Use system-wide mailcap database
809452
sed -i -e '/my @priv_files = ();/ s|()|("%{_sysconfdir}/mime.types")|' \
809452
    lib/LWP/MediaTypes.pm
809452
809452
%build
809452
perl Makefile.PL INSTALLDIRS=vendor
809452
make %{?_smp_mflags}
809452
809452
%install
809452
make pure_install DESTDIR=%{buildroot}
809452
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
809452
%{_fixperms} %{buildroot}/*
809452
809452
%check
809452
make test
809452
809452
%files
809452
%doc Changes README
809452
%{perl_vendorlib}/*
809452
%{_mandir}/man3/*
809452
809452
%changelog
809452
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.02-2
809452
- Mass rebuild 2013-12-27
809452
809452
* Thu Nov 22 2012 Petr Šabata <contyk@redhat.com> - 6.02-1
809452
- 6.02 bump
809452
- Drop command macros
809452
- Modernize the spec
809452
- Correct the Lincense tag
809452
809452
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-6
809452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
809452
809452
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 6.01-5
809452
- Perl 5.16 rebuild
809452
809452
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-4
809452
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
809452
809452
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 6.01-3
809452
- Perl mass rebuild
809452
809452
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> - 6.01-2
809452
- Use MIME type database from mailcap
809452
809452
* Thu Mar 17 2011 Petr Pisar <ppisar@redhat.com> 6.01-1
809452
- Specfile autogenerated by cpanspec 1.78.
809452
- Remove BuildRoot stuff
809452
- Conflicts with perl-libwww-perl 5* and older