You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Spreadsheet-ParseExcel/perl-Spreadsheet-ParseExcel...

67 lines
2.0 KiB

# 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 <mpeters@mac.com> - 0.2603-1
- Install the CP932Excel.map file
- makes package arch dependent
* Wed May 10 2006 Michael A. Peters <mpeters@mac.com> - 0.2603-0.2
- Changed license to GPL or Artistic per the ParseExcel.pm file
* Wed May 10 2006 Michael A. Peters <mpeters@mac.com> - 0.2603-0.1
- Initial packaging