%global pkgname Spreadsheet-XLSX Summary: Perl extension for reading Microsoft Excel 2007 files Name: perl-Spreadsheet-XLSX Version: 0.13 Release: 8%{?dist} License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/%{pkgname}/ Source: http://search.cpan.org/CPAN/authors/id/D/DM/DMOW/%{pkgname}-%{version}-withoutworldwriteables.tar.gz Patch0: perl-Spreadsheet-XLSX-0.13-archive-zip.patch Patch1: perl-Spreadsheet-XLSX-0.13-warnings.patch Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(Archive::Zip) >= 1.16, perl(Spreadsheet::ParseExcel) BuildRequires: perl(ExtUtils::MakeMaker), perl(Data::Dumper), perl(Exporter) BuildRequires: perl(Test::More) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The Spreadsheet::XLSX module is a emulation of Spreadsheet::ParseExcel for Excel 2007 (.xlsx) file format in a quick and dirty way. It supports styles and many of the Excel's quirks, but not all. It populates the classes from Spreadsheet::ParseExcel for interoperability; including workbook, worksheet and cell. %prep %setup -q -n %{pkgname}-%{version} %patch0 -p1 %patch1 -p1 # Change strange upstream file permissions chmod 644 Changes README lib/Spreadsheet/{*,*/*}.pm %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$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 ';' chmod -R u+w $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %doc Changes README %{perl_vendorlib}/Spreadsheet/ %{_mandir}/man3/*.3pm* %changelog * Tue Oct 14 2014 Robert Scheck 0.13-8 - Modified existing patch to parse value "0" correct (#1152739) * Fri Aug 29 2014 Jitka Plesnikova - 0.13-7 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 31 2013 Petr Pisar - 0.13-4 - Perl 5.18 rebuild * Wed May 15 2013 Robert Scheck 0.13-3 - Modified the existing patch to suppress further warnings * Thu May 09 2013 Robert Scheck 0.13-2 - Changes to match with Fedora Packaging Guidelines (#952796) * Tue Apr 16 2013 Robert Scheck 0.13-1 - Upgrade to 0.13 - Initial spec file for Fedora and Red Hat Enterprise Linux