3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 %define pdir Spreadsheet
7 %define pnam WriteExcel
8 Summary: Spreadsheet::WriteExcel perl module
9 Summary(cs): Modul Spreadsheet::WriteExcel pro Perl
10 Summary(da): Perlmodul Spreadsheet::WriteExcel
11 Summary(de): Spreadsheet::WriteExcel Perl Modul
12 Summary(es): Módulo de Perl Spreadsheet::WriteExcel
13 Summary(fr): Module Perl Spreadsheet::WriteExcel
14 Summary(it): Modulo di Perl Spreadsheet::WriteExcel
15 Summary(ja): Spreadsheet::WriteExcel Perl ¥â¥¸¥å¡¼¥ë
16 Summary(ko): Spreadsheet::WriteExcel ÆÞ ¸ðÁÙ
17 Summary(nb): Perlmodul Spreadsheet::WriteExcel
18 Summary(pl): Modu³ Perla Spreadsheet::WriteExcel
19 Summary(pt): Módulo de Perl Spreadsheet::WriteExcel
20 Summary(pt_BR): Módulo Perl Spreadsheet::WriteExcel
21 Summary(ru): íÏÄÕÌØ ÄÌÑ Perl Spreadsheet::WriteExcel
22 Summary(sv): Spreadsheet::WriteExcel Perlmodul
23 Summary(uk): íÏÄÕÌØ ÄÌÑ Perl Spreadsheet::WriteExcel
24 Summary(zh_CN): Spreadsheet::WriteExcel Perl Ä£¿é
25 Name: perl-Spreadsheet-WriteExcel
29 License: GPL v1+ or Artistic
30 Group: Development/Languages/Perl
31 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
32 # Source0-md5: b59caf9cffb69de9e96827af70824438
33 BuildRequires: rpm-perlprov >= 4.1-13
34 BuildRequires: perl-devel >= 1:5.8.0
35 BuildRequires: perl-modules >= 5.6.1
36 BuildRequires: perl-Parse-RecDescent
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 The Spreadsheet::WriteExcel module can be used to create a cross-
42 platform Excel binary file. Multiple worksheets can be added to a
43 workbook and formatting can be applied to cells. Text, numbers,
44 formulas, hyperlinks and images can be written to the cells.
46 The Excel file produced by this module is compatible with Excel 5, 95,
50 Modu³ Spreadsheet::WriteExcel mo¿e byæ u¿ywany do tworzenia
51 miêdzyplatformowych plików binarnych Excela. Wiele arkuszy mo¿e byæ
52 dodanych do jednej ksiêgi, a w komórkach mo¿na u¿ywaæ formatowania.
53 Tekst, liczby, formu³y, odno¶niki i obrazki mog± byæ wpisywane do
56 Pliki Excela produkowane przez ten modu³ s± kompatybilne z Excelem 5,
60 %setup -q -n %{pdir}-%{pnam}-%{version}
64 %{__perl} Makefile.PL \
68 %{?with_tests:%{__make} test}
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
75 DESTDIR=$RPM_BUILD_ROOT
77 install examples/{README,*.pl,*.bmp} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78 gzip -9 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/README
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc CHANGES README html
86 %{perl_vendorlib}/Spreadsheet/WriteExcel.pm
87 %dir %{perl_vendorlib}/Spreadsheet/WriteExcel
88 %{perl_vendorlib}/Spreadsheet/WriteExcel/*.pm
90 %dir %{_examplesdir}/%{name}-%{version}
91 %{_examplesdir}/%{name}-%{version}/README*
92 %{_examplesdir}/%{name}-%{version}/*.bmp
93 %{_examplesdir}/%{name}-%{version}/mo*.pl
94 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/m[^o]*.pl
95 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/[^m]*.pl