%define _use_internal_dependency_generator 0 Summary: Write formatted text and numbers to a cross-platform Excel binary file. Name: perl-Spreadsheet-WriteExcel Version: 2.12 Release: 2 License: Artistic or GPL Group: Development/Libraries Source0: Spreadsheet-WriteExcel-%{version}.tar.gz Url: http://www.cpan.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.00503, perl-Parse-RecDescent Requires: perl >= 0:5.00503 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description The Spreadsheet::WriteExcel module can be used to create a cross- platform Excel binary file. Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells. The Excel file produced by this module is compatible with 97, 2000, 2002 and 2003. The module will work on the majority of Windows, UNIX and Macintosh platforms. Generated files are also compatible with the spreadsheet applications Gnumeric and OpenOffice.org. This module cannot be used to read an Excel file. See Spreadsheet::ParseExcel or look at the main documentation for some suggestions. This module cannot be uses to write to an existing Excel file. # Provide perl-specific find-{provides,requires}. %define __find_provides /usr/lib/rpm/find-provides.perl %define __find_requires /usr/lib/rpm/find-requires.perl %prep %setup -q -n Spreadsheet-WriteExcel-%{version} %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor make make test %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v perllocal.pod | grep -v "\.packlist" > %{name}-%{version}-filelist if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi %files -f %{name}-%{version}-filelist %defattr(-,root,root) %changelog * Thu Apr 14 2005 Tom "spot" Callaway 2.12-2 - Add MODULE_COMPAT requires line * Fri Apr 1 2005 Tom "spot" Callaway 2.12-1 - initial package