epel9
Petr Šabata 10 years ago
parent 882957395c
commit 1011e5446d

@ -2,31 +2,51 @@
%define debug_package %{nil} %define debug_package %{nil}
# Avoid Epoch inflation # Avoid Epoch inflation
%define module_version 0.59 %define module_version 0.65
Name: perl-Spreadsheet-ParseExcel Name: perl-Spreadsheet-ParseExcel
Version: 0.5900 Version: 0.6500
Release: 10%{?dist} Release: 10%{?dist}
Summary: Extract information from an Excel file Summary: Extract information from an Excel file
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Spreadsheet-ParseExcel/ URL: http://search.cpan.org/dist/Spreadsheet-ParseExcel/
Source0: http://www.cpan.org/authors/id/J/JM/JMCNAMARA/Spreadsheet-ParseExcel-%{module_version}.tar.gz Source0: http://www.cpan.org/authors/id/D/DO/DOUGW/Spreadsheet-ParseExcel-%{module_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Build
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(constant)
BuildRequires: perl(Crypt::RC4) BuildRequires: perl(Crypt::RC4)
BuildRequires: perl(Digest::Perl::MD5) BuildRequires: perl(Digest::Perl::MD5)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Encode)
BuildRequires: perl(IO::Scalar) BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
BuildRequires: perl(IO::File)
# Unusued BuildRequires: perl(IO::Scalar)
BuildRequires: perl(Jcode) BuildRequires: perl(Jcode)
BuildRequires: perl(OLE::Storage_Lite) >= 0.19 BuildRequires: perl(OLE::Storage_Lite) >= 0.19
BuildRequires: perl(Proc::ProcessTable) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Spreadsheet::WriteExcel) BuildRequires: perl(Spreadsheet::WriteExcel)
BuildRequires: perl(Test::CPAN::Meta) # Unused BuildRequires: perl(Text::CSV_XS)
BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Unicode::Map) BuildRequires: perl(Unicode::Map)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(utf8)
BuildRequires: perl(vars)
# Tests only
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::More)
# Optional tests
BuildRequires: perl(Perl::MinimumVersion) >= 1.20
BuildRequires: perl(Pod::Simple) >= 3.07
BuildRequires: perl(Test::CPAN::Meta) >= 0.12
BuildRequires: perl(Test::MinimumVersion) >= 0.008
BuildRequires: perl(Test::Pod) >= 1.26
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Text::CSV_XS)
%description %description
The Spreadsheet::ParseExcel module can be used to read information from an The Spreadsheet::ParseExcel module can be used to read information from an
@ -34,23 +54,19 @@ Excel 95-2003 file.
%prep %prep
%setup -q -n Spreadsheet-ParseExcel-%{module_version} %setup -q -n Spreadsheet-ParseExcel-%{module_version}
chmod -c a-x Changes examples/*.pl sample/*.pl
# Fix line-endings of sample files # Fix line-endings of sample files
for file in README sample/* ; do for file in sample/* ; do
[ -f "$file" ] && %{__perl} -pi -e 's/\r\n/\n/' "$file" [ -f "$file" ] && %{__perl} -pi -e 's/\r\n/\n/' "$file"
done done
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot} %{_fixperms} %{buildroot}
# For Spreadsheet::ParseExcel::FmtJapan2; see README for details # For Spreadsheet::ParseExcel::FmtJapan2; see README for details
install -D -m 644 -p CP932Excel.map \ install -D -m 644 -p CP932Excel.map \
%{buildroot}%{perl_vendorarch}/Unicode/Map/MS/WIN/CP932Excel.map %{buildroot}%{perl_vendorarch}/Unicode/Map/MS/WIN/CP932Excel.map
@ -58,11 +74,7 @@ install -D -m 644 -p CP932Excel.map \
%check %check
make test AUTOMATED_TESTING=1 make test AUTOMATED_TESTING=1
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-)
%doc Changes README README_Japan.htm examples/ sample/ %doc Changes README README_Japan.htm examples/ sample/
%{perl_vendorarch}/Unicode/ %{perl_vendorarch}/Unicode/
%{perl_vendorlib}/Spreadsheet/ %{perl_vendorlib}/Spreadsheet/
@ -83,6 +95,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/Spreadsheet::ParseExcel::Worksheet.3pm* %{_mandir}/man3/Spreadsheet::ParseExcel::Worksheet.3pm*
%changelog %changelog
* Mon Dec 08 2014 Petr Šabata <contyk@redhat.com> - 0.6500-10
- 0.65 bump
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.5900-10 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.5900-10
- Perl 5.20 rebuild - Perl 5.20 rebuild

@ -1 +1 @@
7ed6487d09135a9ee6ae9c290dad3a5e Spreadsheet-ParseExcel-0.59.tar.gz 4b8857e3a391d86501c1b742b459ac9e Spreadsheet-ParseExcel-0.65.tar.gz

Loading…
Cancel
Save