]> git.pld-linux.org Git - packages/php-phpoffice-PHPExcel.git/commitdiff
new, version 1.7.9
authorElan Ruusamäe <glen@delfi.ee>
Tue, 12 Nov 2013 23:01:22 +0000 (01:01 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 12 Nov 2013 23:01:22 +0000 (01:01 +0200)
php-phpoffice-PHPExcel.spec [new file with mode: 0644]

diff --git a/php-phpoffice-PHPExcel.spec b/php-phpoffice-PHPExcel.spec
new file mode 100644 (file)
index 0000000..4b4578e
--- /dev/null
@@ -0,0 +1,89 @@
+# TODO
+# - drop PHPExcel/Calculation/Functions.php - php compat functions (find minimum required and use that in .spec)
+# - mbstring used unconditionally in some places: ./PHPExcel/Writer/CSV.php, ./PHPExcel/Calculation.php
+# %define              pkgname PHPExcel
+%define                php_min_version 5.2.1
+%include       /usr/lib/rpm/macros.php
+Summary:       PHPExcel - OpenXML - Create Excel2007 documents in PHP - Spreadsheet engine
+Name:          php-phpoffice-%{pkgname}
+Version:       1.7.9
+Release:       1
+License:       LGPL v2.1
+Group:         Development/Languages/PHP
+Source0:       https://github.com/PHPOffice/PHPExcel/archive/%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5: 3a08fd80a8d77c79c72b2ce6f1d4440c
+URL:           http://phpexcel.codeplex.com/
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.654
+Requires:      php(core) >= %{php_min_version}
+Requires:      php(ctype)
+Requires:      php(date)
+Requires:      php(mbstring)
+Requires:      php(pcre)
+Requires:      php(spl)
+Requires:      php(xml)
+Requires:      php-pear
+Suggests:      php(gd)
+Suggests:      php(iconv)
+Suggests:      php(simplexml)
+Suggests:      php(sqlite)
+Suggests:      php(xmlreader)
+Suggests:      php(zip)
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _noautoreq_pear jpgraph_line.php
+
+# exclude optional php dependencies
+%define                _noautophp      php-gd php-iconv php-mbstring php-simplexml php-sqlite php-xmlreader
+
+# put it together for rpmbuild
+%define                _noautoreq      %{?_noautophp}
+
+%description
+PHPExcel - OpenXML - Read, Write and Create Excel documents in PHP -
+Spreadsheet engine
+
+Project providing a set of classes for the PHP programming language,
+which allow you to write to and read from different spreadsheet file
+formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx,
+CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project
+is built around Microsoft's OpenXML standard and PHP. Checkout the
+Features this class set provides, such as setting spreadsheet meta
+data (author, title, description, ...), multiple worksheets, different
+fonts and font styles, cell borders, fills, gradients, adding images
+to your spreadsheet, calculating formulas, converting between file
+types and much, much more!
+
+%package examples
+Summary:       Examples for %{pkgname}
+Group:         Documentation
+
+%description examples
+Documentation for %{name}.
+
+%description examples -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%undos -f php
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_examplesdir}/%{name}-%{version}}
+cp -a Classes/* $RPM_BUILD_ROOT%{php_data_dir}
+cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc install.txt changelog.txt
+%{php_data_dir}/PHPExcel.php
+%{php_data_dir}/PHPExcel
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
This page took 0.060109 seconds and 4 git commands to generate.