From 8391220e6319a36e05254d64013a9be4c87ade98 Mon Sep 17 00:00:00 2001 From: mpeters Date: Mon, 5 Jun 2006 09:41:19 +0000 Subject: [PATCH] auto-import perl-Spreadsheet-ParseExcel-0.2603-1 on branch devel from perl-Spreadsheet-ParseExcel-0.2603-1.src.rpm --- .cvsignore | 1 + perl-Spreadsheet-ParseExcel.spec | 66 ++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+) create mode 100644 perl-Spreadsheet-ParseExcel.spec diff --git a/.cvsignore b/.cvsignore index e69de29..04662e6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Spreadsheet-ParseExcel-0.2603.tar.gz diff --git a/perl-Spreadsheet-ParseExcel.spec b/perl-Spreadsheet-ParseExcel.spec new file mode 100644 index 0000000..df5c7d7 --- /dev/null +++ b/perl-Spreadsheet-ParseExcel.spec @@ -0,0 +1,66 @@ +# the debuginfo package is empty +%define debug_package %{nil} + +Name: perl-Spreadsheet-ParseExcel +Version: 0.2603 +Release: 1%{?dist} +Summary: Get information from an Excel file + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Spreadsheet-ParseExcel/ +Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWITKNR/Spreadsheet-ParseExcel-%{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)) + +%description +This module allows you to get information from an Excel file. +The module can handle files of Excel95, 97 , 2000 and Excel4 + +%prep +%setup -q -n Spreadsheet-ParseExcel-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%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 -type d -depth -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 + + +%clean +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 + + +%changelog +* Sun May 14 2006 Michael A. Peters - 0.2603-1 +- Install the CP932Excel.map file +- makes package arch dependent + +* Wed May 10 2006 Michael A. Peters - 0.2603-0.2 +- Changed license to GPL or Artistic per the ParseExcel.pm file + +* Wed May 10 2006 Michael A. Peters - 0.2603-0.1 +- Initial packaging diff --git a/sources b/sources index e69de29..3cae859 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6ee6257d4b66cb9e147a0b50603d1387 Spreadsheet-ParseExcel-0.2603.tar.gz