]> git.pld-linux.org Git - packages/perl-Excel-Writer-XLSX.git/blame - perl-Excel-Writer-XLSX.spec
- up to 0.98
[packages/perl-Excel-Writer-XLSX.git] / perl-Excel-Writer-XLSX.spec
CommitLineData
dc537442
AO
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4
5%define pdir Excel
6%define pnam Writer-XLSX
7%include /usr/lib/rpm/macros.perl
8Summary: Excel::Writer::XLSX - Create a new file in the Excel 2007+ XLSX format
9Name: perl-Excel-Writer-XLSX
e2eb9acf 10Version: 0.98
dc537442
AO
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
e2eb9acf 16# Source0-md5: 10c9bd6bb77fc08da41c385d994ce20d
dc537442
AO
17URL: http://search.cpan.org/dist/Excel-Writer-XLSX/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: perl-modules >= 5.6.1
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The Excel::Writer::XLSX module can be used to create an Excel file in
26the 2007+ XLSX format. The XLSX format is the Office Open XML (OOXML)
27format used by Excel 2007 and later. Multiple worksheets can be added
28to a workbook and formatting can be applied to cells. Text, numbers,
29and formulas can be written to the cells. This module cannot, as yet,
30be used to write to an existing Excel XLSX file.
31
32%prep
33%setup -q -n %{pdir}-%{pnam}-%{version}
34
35%build
36%{__perl} Makefile.PL \
37 INSTALLDIRS=vendor
38%{__make}
39
40%{?with_tests:%{__make} test}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
45
46%{__make} install \
47 DESTDIR=$RPM_BUILD_ROOT
48
49cp -p examples/{README,*.pl} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50gzip -9 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/README
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%attr(755,root,root) %{_bindir}/extract_vba
58%doc Changes README
59%dir %{perl_vendorlib}/Excel
60%dir %{perl_vendorlib}/Excel/Writer
61%{perl_vendorlib}/Excel/Writer/XLSX.pm
62%dir %{perl_vendorlib}/Excel/Writer/XLSX
63%{perl_vendorlib}/Excel/Writer/XLSX/*.pm
64%{perl_vendorlib}/Excel/Writer/XLSX/Chart
65%{perl_vendorlib}/Excel/Writer/XLSX/Package
66%{_mandir}/man?/*
67#dir %{_examplesdir}/%{name}-%{version}
68%{_examplesdir}/%{name}-%{version}
This page took 0.135418 seconds and 4 git commands to generate.