perl-LWP-MediaTypes/perl-LWP-MediaTypes.spec

61 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:52:29 +08:00
Name: perl-LWP-MediaTypes
2020-08-24 16:28:43 +08:00
Version: 6.04
2020-11-24 18:09:17 +08:00
Release: 2
2019-11-19 11:52:29 +08:00
Summary: Guess media type for a file or a URL
License: (GPL+ or Artistic) and Public Domain
URL: https://metacpan.org/release/LWP-MediaTypes
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/LWP-MediaTypes-%{version}.tar.gz
BuildArch: noarch
2020-11-24 18:09:17 +08:00
BuildRequires: perl-generators perl-Test-Fatal perl(Exporter) perl(ExtUtils::MakeMaker) perl(File::Basename) perl(Test)
2019-11-19 11:52:29 +08:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(File::Basename) mailcap
Conflicts: perl-libwww-perl < 6
%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.
%package help
Summary: Documentation for perl-LWP-MediaTypes
%description help
Documentation for perl-LWP-MediaTypes.
%prep
%autosetup -n LWP-MediaTypes-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{__chmod} -Rf a+rX,u+w,g-w,o-w $RPM_BUILD_ROOT/*
%check
make test
%files
%{perl_vendorlib}/*
%exclude %{_libdir}/perl5/perllocal.pod
%files help
%doc Changes README
%{_mandir}/man3/*
%changelog
2020-11-24 18:09:17 +08:00
* Tue Nov 24 2020 shixuantong<shixuantong@huawei.com> - 6.04-2
- add perl-Test-Fatal to BuildRequires
2020-08-24 16:28:43 +08:00
* Mon Aug 24 2020 dingyue<dingyue5@huawei.com> - 6.04-1
- Bump version to 6.04
2019-11-19 11:52:29 +08:00
* Fri Oct 25 2019 Zaiwang Li <lizaiwang1@huawei.com> - 6.02-17
- Init Package.