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