%define modname LWP-MediaTypes Summary: Media types and mailcap processing Name: perl-%{modname} Version: 6.04 Release: 1 License: GPLv2+ or Artistic Group: Development/Perl Url: https://search.cpan.org/dist/%{modname} Source0: https://www.cpan.org/modules/by-module/LWP/LWP-MediaTypes-%{version}.tar.gz BuildArch: noarch BuildRequires: perl(Test) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Fatal) BuildRequires: perl-devel BuildRequires: make %description This module provides functions for handling media (also known as MIME) types and encodings. The mapping from file extensions to media types is defined by the _media.types_ file. If the _~/.media.types_ file exists it is used instead. For backwards compatibility we will also look for _~/.mime.types_. The following functions are exported by default: * guess_media_type( $filename ) %prep %autosetup -p1 -n %{modname}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check %make test %install %make_install %files %doc Changes META.yml README %{perl_vendorlib}/* %{_mandir}/man3/*