diff --git a/.cvsignore b/.cvsignore index 04662e6..804aa85 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -Spreadsheet-ParseExcel-0.2603.tar.gz +Spreadsheet-ParseExcel-0.27.tar.gz diff --git a/perl-Spreadsheet-ParseExcel.spec b/perl-Spreadsheet-ParseExcel.spec index 0477e25..244542d 100644 --- a/perl-Spreadsheet-ParseExcel.spec +++ b/perl-Spreadsheet-ParseExcel.spec @@ -1,47 +1,49 @@ # the debuginfo package is empty %define debug_package %{nil} +# Avoid Epoch inflation +%define module_version 0.27 + Name: perl-Spreadsheet-ParseExcel -Version: 0.2603 -Release: 3%{?dist} +Version: 0.2700 +Release: 1%{?dist} Summary: Get information from an Excel file - -Group: Development/Libraries License: GPL or Artistic +Group: Development/Libraries URL: http://search.cpan.org/dist/Spreadsheet-ParseExcel/ -Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWITKNR/Spreadsheet-ParseExcel-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/S/SZ/SZABGAB/Spreadsheet-ParseExcel-%{module_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: perl -BuildRequires: perl(OLE::Storage_Lite) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(IO::Scalar) +BuildRequires: perl(Module::Build) +BuildRequires: perl(OLE::Storage_Lite) >= 0.08 +BuildRequires: perl(Unicode::Map) +BuildRequires: perl(Jcode) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module allows you to get information from an Excel file. -The module can handle files of Excel95, 97 , 2000 and Excel4 +The module can handle files of Excel95, 97, 2000, and Excel4. %prep -%setup -q -n Spreadsheet-ParseExcel-%{version} - +%setup -q -n Spreadsheet-ParseExcel-%{module_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} - +%{__perl} Build.PL installdirs=vendor +./Build %install 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 -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' + +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + install -d $RPM_BUILD_ROOT%{perl_vendorarch}/Unicode/Map/MS/WIN install -m644 CP932Excel.map $RPM_BUILD_ROOT%{perl_vendorarch}/Unicode/Map/MS/WIN/ -chmod -R u+w $RPM_BUILD_ROOT/* -%check -make test +%{_fixperms} $RPM_BUILD_ROOT/* +%check +./Build test %clean rm -rf $RPM_BUILD_ROOT @@ -49,12 +51,17 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README README_Japan.htm sample/ -%{perl_vendorlib}/Spreadsheet/ -%{_mandir}/man3/*.3* %{perl_vendorarch}/Unicode/Map/MS/WIN/CP932Excel.map - +%{perl_vendorlib}/* +%{_mandir}/man3/* %changelog +* Tue Jan 18 2007 Steven Pritchard 0.2700-1 +- Update to 0.27. +- Cleanup to more closely match cpanspec output. +- Switch to Module::Build-based build. +- BR: IO::Scalar, Unicode::Map, and Jcode. + * Thu Oct 05 2006 Christian Iseli 0.2603-3 - rebuilt for unwind info generation, broken in gcc-4.1.1-21 diff --git a/sources b/sources index 3cae859..e93bbc4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6ee6257d4b66cb9e147a0b50603d1387 Spreadsheet-ParseExcel-0.2603.tar.gz +6ad3e92de49f009b479c08026a43ed2d Spreadsheet-ParseExcel-0.27.tar.gz