Name:           perl-Spreadsheet-ParseExcel
Version:        0.66
Release:        2
Summary:        Extract information from an Excel file
License:        GPL-1.0-or-later OR Artistic-1.0-Perl
URL:            https://metacpan.org/release/Spreadsheet-ParseExcel
Source0:        https://cpan.metacpan.org/authors/id/D/DO/DOUGW/Spreadsheet-ParseExcel-%{version}.tar.gz
Buildarch:      noarch
BuildRequires:  perl-generators
BuildRequires:  perl(Crypt::RC4)
BuildRequires:  perl(Digest::Perl::MD5)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(IO::Scalar)
BuildRequires:  perl(OLE::Storage_Lite) >= 0.19
BuildRequires:  perl(Scalar::Util)
Requires:       perl(Crypt::RC4)
Requires:       perl(Digest::Perl::MD5)
Requires:       perl(IO::Scalar)
Requires:       perl(OLE::Storage_Lite) >= 0.19
Requires:       perl(Scalar::Util)

%description
The Spreadsheet::ParseExcel module can be used to read information from an
Excel 95-2003 file.

%package help
Summary: Read information from an Excel file
Provides: perl-Spreadsheet-ParseExcel-doc

%description help
The Spreadsheet::ParseExcel module can be used to read information from
Excel 95-2003 binary files.

%prep
%setup -q -n Spreadsheet-ParseExcel-%{version}

%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
%{_fixperms} $RPM_BUILD_ROOT/*
 
%check
make test

%files
%doc Changes CP932Excel.map META.json README README_Japan.htm
%{perl_vendorlib}/*

%files help
%{_mandir}/man?/*

%changelog
* Sun Jan 19 2025 Funda Wang <fundawang@yeah.net> - 0.66-2
- drop useless perl(:MODULE_COMPAT) requirement

* Fri Mar 15 2024 wangshuo <wangshuo@kylinos.cn> - 0.66-1
- Upgrade to version 0.66, fix CVE-2023-7101

* Fri Oct 21 2022 misaka00251 <liuxin@iscas.ac.cn> - 0.65-1
- Specfile autogenerated by Perl_Bot