2 # - drop PHPExcel/Calculation/Functions.php - php compat functions (find minimum required and use that in .spec)
3 # - mbstring used unconditionally in some places: ./PHPExcel/Writer/CSV.php, ./PHPExcel/Calculation.php
4 # %define pkgname PHPExcel
5 %define php_min_version 5.2.1
6 %include /usr/lib/rpm/macros.php
7 Summary: PHPExcel - OpenXML - Create Excel2007 documents in PHP - Spreadsheet engine
8 Name: php-phpoffice-%{pkgname}
12 Group: Development/Languages/PHP
13 Source0: https://github.com/PHPOffice/PHPExcel/archive/%{version}/%{pkgname}-%{version}.tar.gz
14 # Source0-md5: 3a08fd80a8d77c79c72b2ce6f1d4440c
15 URL: http://phpexcel.codeplex.com/
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.654
18 Requires: php(core) >= %{php_min_version}
21 Requires: php(mbstring)
28 Suggests: php(simplexml)
30 Suggests: php(xmlreader)
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _noautoreq_pear jpgraph_line.php
38 # exclude optional php dependencies
39 %define _noautophp php-gd php-iconv php-mbstring php-simplexml php-sqlite php-xmlreader
41 # put it together for rpmbuild
42 %define _noautoreq %{?_noautophp}
45 PHPExcel - OpenXML - Read, Write and Create Excel documents in PHP -
48 Project providing a set of classes for the PHP programming language,
49 which allow you to write to and read from different spreadsheet file
50 formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx,
51 CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project
52 is built around Microsoft's OpenXML standard and PHP. Checkout the
53 Features this class set provides, such as setting spreadsheet meta
54 data (author, title, description, ...), multiple worksheets, different
55 fonts and font styles, cell borders, fills, gradients, adding images
56 to your spreadsheet, calculating formulas, converting between file
57 types and much, much more!
60 Summary: Examples for %{pkgname}
64 Documentation for %{name}.
66 %description examples -l pl.UTF-8
67 Dokumentacja do %{name}.
70 %setup -q -n %{pkgname}-%{version}
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_examplesdir}/%{name}-%{version}}
76 cp -a Classes/* $RPM_BUILD_ROOT%{php_data_dir}
77 cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %doc install.txt changelog.txt
85 %{php_data_dir}/PHPExcel.php
86 %dir %{php_data_dir}/PHPExcel
87 %{php_data_dir}/PHPExcel/*.php
88 %{php_data_dir}/PHPExcel/CachedObjectStorage
89 %{php_data_dir}/PHPExcel/CalcEngine
90 %{php_data_dir}/PHPExcel/Calculation
91 %{php_data_dir}/PHPExcel/Cell
92 %{php_data_dir}/PHPExcel/Chart
93 %{php_data_dir}/PHPExcel/Reader
94 %{php_data_dir}/PHPExcel/RichText
95 %{php_data_dir}/PHPExcel/Shared
96 %{php_data_dir}/PHPExcel/Style
97 %{php_data_dir}/PHPExcel/Worksheet
98 %{php_data_dir}/PHPExcel/Writer
100 %dir %{php_data_dir}/PHPExcel/locale
101 %lang(cs) %{php_data_dir}/PHPExcel/locale/cs
102 %lang(da) %{php_data_dir}/PHPExcel/locale/da
103 %lang(de) %{php_data_dir}/PHPExcel/locale/de
104 %lang(en_GB) %dir %{php_data_dir}/PHPExcel/locale/en
105 %lang(en_GB) %{php_data_dir}/PHPExcel/locale/en/uk
106 %lang(es) %{php_data_dir}/PHPExcel/locale/es
107 %lang(fi) %{php_data_dir}/PHPExcel/locale/fi
108 %lang(fr) %{php_data_dir}/PHPExcel/locale/fr
109 %lang(hu) %{php_data_dir}/PHPExcel/locale/hu
110 %lang(it) %{php_data_dir}/PHPExcel/locale/it
111 %lang(nb) %{php_data_dir}/PHPExcel/locale/no
112 %lang(nl) %{php_data_dir}/PHPExcel/locale/nl
113 %lang(pl) %{php_data_dir}/PHPExcel/locale/pl
114 %lang(pt_BR) %dir %{php_data_dir}/PHPExcel/locale/pt
115 %lang(pt_BR) %{php_data_dir}/PHPExcel/locale/pt/br
116 %lang(pt_BR) %{php_data_dir}/locale/pt/config
117 %lang(pt_BR) %{php_data_dir}/locale/pt/functions
118 %lang(ru) %{php_data_dir}/PHPExcel/locale/ru
119 %lang(sv) %{php_data_dir}/PHPExcel/locale/sv
120 %lang(tr) %{php_data_dir}/PHPExcel/locale/tr
123 %defattr(644,root,root,755)
124 %{_examplesdir}/%{name}-%{version}