perl-Spreadsheet-ParseExcel/perl-Spreadsheet-ParseExcel.spec
2022-10-21 19:23:14 +08:00

89 lines
2.4 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: perl-Spreadsheet-ParseExcel
Version: 0.65
Release: 1
Summary: Extract information from an Excel file
License: GPL+ or Artistic
URL: https://metacpan.org/release/Spreadsheet-ParseExcel
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOUGW/Spreadsheet-ParseExcel-%{version}.tar.gz
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)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%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 %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes CP932Excel.map META.json README README_Japan.htm
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Fri Oct 21 2022 misaka00251 <liuxin@iscas.ac.cn> 0.65-1
- Specfile autogenerated by Perl_Bot