summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-13 08:54:22 +0200
committerRemi Collet <fedora@famillecollet.com>2015-10-13 08:54:22 +0200
commit08c9397c107ce28cbcaa5d3e01f6d825e509c03f (patch)
treeb0e45b70c3d9cd1f4ad28e001a02316070f837f4
parentb80d61eba60f6e1eafe7a7cf1cb940783421ca19 (diff)
php-phpoffice-phpexcel: backport
-rw-r--r--Makefile4
-rw-r--r--php-phpoffice-phpexcel.spec16
2 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..91b0fd5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../common/Makefile
+
diff --git a/php-phpoffice-phpexcel.spec b/php-phpoffice-phpexcel.spec
index 1d5119a..414a907 100644
--- a/php-phpoffice-phpexcel.spec
+++ b/php-phpoffice-phpexcel.spec
@@ -1,3 +1,4 @@
+# remirepo spec file for php-phpoffice-phpexcel, from
#
# Fedora spec file for php-phpoffice-phpexcel
#
@@ -44,6 +45,7 @@ Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{githu
# NOTE: Custom patch for 1.8.1 because pull request patch does not apply cleanly
Patch0: %{name}-pr695-1-8-1-custom.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Tests
%if %{with_tests}
@@ -67,7 +69,9 @@ BuildRequires: php-posix
BuildRequires: php-reflection
BuildRequires: php-simplexml
BuildRequires: php-spl
+%if 0%{?rhel} != 5
BuildRequires: php-sqlite3
+%endif
BuildRequires: php-xmlreader
BuildRequires: php-zlib
%endif
@@ -92,7 +96,9 @@ Requires: php-posix
Requires: php-reflection
Requires: php-simplexml
Requires: php-spl
+%if 0%{?rhel} != 5
Requires: php-sqlite3
+%endif
Requires: php-xmlreader
Requires: php-zlib
# Unbundled
@@ -143,6 +149,8 @@ rm -rf Classes/PHPExcel/Shared/PCLZip
%install
+rm -rf %{buildroot}
+
mkdir -p %{buildroot}%{phpdir}
cp -rp Classes/* %{buildroot}%{phpdir}/
@@ -186,7 +194,12 @@ rm -f \
%endif
+%clean
+rm -rf %{buildroot}
+
+
%files -f %{name}.lang
+%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license license.md
%doc Examples
@@ -211,6 +224,9 @@ rm -f \
%changelog
+* Tue Oct 13 2015 Remi Collet <remi@fedoraproject.org> - 1.8.1-1
+- backport for remi repo, add EL-5 stuff
+
* Sun Oct 11 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.8.1-1
- Updated to 1.8.1
- Spec cleanup