[packages/php-phpoffice-PHPExcel] new, version 1.7.9

glen glen at pld-linux.org
Wed Nov 13 00:01:44 CET 2013


commit e3b639713b661f3066465143c3ac9c1775593033
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Nov 13 01:01:22 2013 +0200

    new, version 1.7.9

 php-phpoffice-PHPExcel.spec | 89 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)
---
diff --git a/php-phpoffice-PHPExcel.spec b/php-phpoffice-PHPExcel.spec
new file mode 100644
index 0000000..4b4578e
--- /dev/null
+++ b/php-phpoffice-PHPExcel.spec
@@ -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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-phpoffice-PHPExcel.git/commitdiff/e3b639713b661f3066465143c3ac9c1775593033



More information about the pld-cvs-commit mailing list