2022-10-24 10:55:15 +00:00
|
|
|
%define mod_name LWP-MediaTypes
|
|
|
|
|
Name: perl-%{mod_name}
|
2020-07-25 14:31:42 +08:00
|
|
|
Version: 6.04
|
2022-10-24 10:55:15 +00:00
|
|
|
Release: 4
|
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
|
2022-10-24 10:55:15 +00:00
|
|
|
URL: https://metacpan.org/release/%{mod_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{mod_name}-%{version}.tar.gz
|
2019-11-19 11:52:29 +08:00
|
|
|
BuildArch: noarch
|
2020-07-25 14:31:42 +08:00
|
|
|
BuildRequires: make perl-generators perl-interpreter perl(ExtUtils::MakeMaker) perl(strict) perl(warnings) sed perl(Carp) perl(Exporter) perl(File::Basename) perl(Scalar::Util) perl(File::Spec) perl(overload) perl(Test::Fatal) perl(Test::More)
|
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
|
2022-10-24 10:55:15 +00:00
|
|
|
Summary: Documentation for perl-%{mod_name}
|
2019-11-19 11:52:29 +08:00
|
|
|
|
|
|
|
|
%description help
|
2022-10-24 10:55:15 +00:00
|
|
|
Documentation for perl-%{mod_name}.
|
2019-11-19 11:52:29 +08:00
|
|
|
|
|
|
|
|
%prep
|
2022-10-24 10:55:15 +00:00
|
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
2019-11-19 11:52:29 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-07-25 14:31:42 +08:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
|
|
%{make_build}
|
2019-11-19 11:52:29 +08:00
|
|
|
|
|
|
|
|
%install
|
2020-07-25 14:31:42 +08:00
|
|
|
%{make_install}
|
2019-11-19 11:52:29 +08:00
|
|
|
%{__chmod} -Rf a+rX,u+w,g-w,o-w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
2020-07-25 14:31:42 +08:00
|
|
|
%license LICENSE
|
2019-11-19 11:52:29 +08:00
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%exclude %{_libdir}/perl5/perllocal.pod
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-10-24 10:55:15 +00:00
|
|
|
* Mon Oct 24 2022 yangmingtai <yangmingtai@huawei.com> - 6.04-4
|
|
|
|
|
- define mod_name to opitomize the specfile
|
|
|
|
|
|
2022-04-27 17:32:51 +08:00
|
|
|
* Wed Apr 27 2022 renhongxun <renhongxun@h-partners.com> - 6.04-3
|
|
|
|
|
- rebuild perl-LWP-MediaTypes
|
|
|
|
|
|
2020-07-25 14:31:42 +08:00
|
|
|
* Sat Jul 25 2020 zhanzhimin <zhanzhimin@huawei.com> - 6.04-1
|
|
|
|
|
- 6.04 bump
|
|
|
|
|
|
2019-11-19 11:52:29 +08:00
|
|
|
* Fri Oct 25 2019 Zaiwang Li <lizaiwang1@huawei.com> - 6.02-17
|
|
|
|
|
- Init Package.
|
|
|
|
|
|