Wwoody2918package init
774ccdbd创建于 2024年3月11日历史提交
%global _empty_manifest_terminate_build 0
Name:           perl-File-Type
Version:        0.22
Release:        1
Summary:        determine file type using magic
License:        GPL-1.0-only or Artistic-1.0-Perl
URL:            https://metacpan.org/release/File-Type
Source0:        https://www.cpan.org/modules/by-module/File/File-Type-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(IO::File)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
File::Type uses magic numbers (typically at the start of a file) to determine the MIME type of that file.
File::Type can use either a filename, or file contents, to determine the type of a file.

Bugs will still be fixed, but new features will probably not be added.

%package help
Summary:  determine file type using magic
Provides: perl-File-Type

%description help
File::Type uses magic numbers (typically at the start of a file) to determine the MIME type of that file.
File::Type can use either a filename, or file contents, to determine the type of a file.

Bugs will still be fixed, but new features will probably not be added.

%prep
%setup -q -n File-Type-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete

%check
make test

%files 
%doc Changes META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Wed Feb 28 2024 woody2918 <wudi1@uniontech.com> - 0.22-1
- Package init