3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
5 %define pdir Spreadsheet
6 %define pnam WriteExcel
7 Summary: Spreadsheet::WriteExcel perl module
8 Summary(pl): Modu³ perla Spreadsheet::WriteExcel
9 Name: perl-%{pdir}-%{pnam}
13 Group: Development/Languages/Perl
14 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: rpm-perlprov >= 4.0.2-56
16 BuildRequires: perl >= 5.6.1
17 BuildRequires: perl-modules >= 5.6.1
18 BuildRequires: perl-Parse-RecDescent
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The Spreadsheet::WriteExcel module can be used to create a cross-
24 platform Excel binary file. Multiple worksheets can be added to a
25 workbook and formatting can be applied to cells. Text, numbers,
26 formulas, hyperlinks and images can be written to the cells.
28 The Excel file produced by this module is compatible with Excel 5,
29 95, 97, 2000 and 2002.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33 mv WriteExcel/examples .
34 mv WriteExcel/doc html
39 %{!?_without_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
46 install examples/{README,*.pl,*.bmp} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc CHANGES README html
54 %{perl_sitelib}/Spreadsheet/WriteExcel.pm
55 %{perl_sitelib}/Spreadsheet/WriteExcel/*.pm
57 %{_examplesdir}/%{name}-%{version}