]> git.pld-linux.org Git - packages/perl-Spreadsheet-WriteExcel.git/blob - perl-Spreadsheet-WriteExcel.spec
9d67d313db4b94d160258a02ede5d368f567e6d2
[packages/perl-Spreadsheet-WriteExcel.git] / perl-Spreadsheet-WriteExcel.spec
1 #
2 # Conditional build:
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}
10 Version:        0.38
11 Release:        0.1
12 License:        GPL
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
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
27
28 The Excel file produced by this module is compatible with Excel 5,
29 95, 97, 2000 and 2002.
30                                                                                                 
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33 mv WriteExcel/examples .
34 mv WriteExcel/doc html
35
36 %build
37 perl Makefile.PL
38 %{__make}
39 %{!?_without_tests:%{__make} test}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
44
45 %{__make} install DESTDIR=$RPM_BUILD_ROOT
46 install examples/{README,*.pl,*.bmp} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc CHANGES README html
54 %{perl_sitelib}/Spreadsheet/WriteExcel.pm
55 %{perl_sitelib}/Spreadsheet/WriteExcel/*.pm
56 %{_mandir}/man3/*
57 %{_examplesdir}/%{name}-%{version}
This page took 0.044296 seconds and 3 git commands to generate.