Compare commits
10 Commits
deab918aee
...
96011c4961
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96011c4961 | ||
|
|
e04b847d36 | ||
|
|
efb02f12b5 | ||
|
|
5b9c1b0d9c | ||
|
|
41e066f29d | ||
|
|
0551e99e74 | ||
|
|
7aecb2ede2 | ||
|
|
1bb5f8cfae | ||
|
|
26aed9829a | ||
|
|
bb94013cca |
BIN
MIME-Types-2.24.tar.gz
Normal file
BIN
MIME-Types-2.24.tar.gz
Normal file
Binary file not shown.
79
perl-MIME-Types.spec
Normal file
79
perl-MIME-Types.spec
Normal file
@ -0,0 +1,79 @@
|
||||
Name: perl-MIME-Types
|
||||
Version: 2.24
|
||||
Release: 1
|
||||
Summary: MIME-types module in Perl
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/MIME-Types
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARKOV/MIME-Types-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils findutils make perl-generators perl-interpreter perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(base) perl(Carp) perl(Exporter) perl(File::Basename) perl(File::Spec)
|
||||
BuildRequires: perl(Mojo::Base) perl(List::Util) perl(overload) perl(strict) perl(vars)
|
||||
BuildRequires: perl(lib) perl(Test::More) perl(warnings)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This package provides MIME types which are used in many applications.For instance as
|
||||
part of e-mail and HTTP traffic, to indicate the type of content that is transmitted.
|
||||
|
||||
This object administers a huge list of known mime-types, combined from various sources.
|
||||
For instance, it contains all IANA types and the knowledge of Apache. Probably the most
|
||||
complete table on the net!
|
||||
|
||||
%package -n perl-MojoX-MIME-Types
|
||||
|
||||
Summary: MIME-Types for perl Mojolicious
|
||||
Requires: perl-MIME-Types = %{version}-%{release}
|
||||
|
||||
%description -n perl-MojoX-MIME-Types
|
||||
perl-MojoX-MIME-Types is a replacement for Mojolicious::Types.The best part is it contains
|
||||
a more correct handling plus a complete list of types... a huge list of types.
|
||||
|
||||
%package help
|
||||
Summary: Provides help and manual docs for perl-MIME-Types and perl-MojoX-MIME-Types
|
||||
Requires: perl-MIME-Types = %{version}-%{release} perl-MojoX-MIME-Types = %{version}-%{release}
|
||||
|
||||
%description help
|
||||
This package provides help and manual docs for perl-MIME-Types and perl-MojoX-MIME-Types
|
||||
|
||||
%prep
|
||||
%autosetup -n MIME-Types-%{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 {} \;
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc ChangeLog
|
||||
%{perl_vendorlib}/MIME/
|
||||
|
||||
%files -n perl-MojoX-MIME-Types
|
||||
%{perl_vendorlib}/MojoX/
|
||||
|
||||
%files help
|
||||
%doc README README.md
|
||||
%{_mandir}/man3/MIME::Type.3*
|
||||
%{_mandir}/man3/MIME::Types.3*
|
||||
%{_mandir}/man3/MojoX::MIME::Types.3*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 11 2023 liyanan <thistleslyn@163.com> - 2.24-1
|
||||
- update to 2.24
|
||||
|
||||
* Tue May 23 2023 Jia Chao <jiac13@chinaunicom.cn> - 2.22-2
|
||||
- Fix: find and remove .packlist, not exclude it.
|
||||
|
||||
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 2.22-1
|
||||
- Upgrade to version 2.22
|
||||
|
||||
* Thu Mar 05 2020 sunguoshuai <sunguoshuai@huawei.com> - 2.17-5
|
||||
- Package init.
|
||||
4
perl-MIME-Types.yaml
Normal file
4
perl-MIME-Types.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: metacpan
|
||||
src_repo: MIME-Types
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user