packages: php-pecl-igbinary/apc-modname.patch (NEW), php-pecl-igbinary/igbi...

glen glen at pld-linux.org
Fri Oct 14 08:24:17 CEST 2011


Author: glen                         Date: Fri Oct 14 06:24:17 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on fedora .spec

---- Files affected:
packages/php-pecl-igbinary:
   apc-modname.patch (NONE -> 1.1)  (NEW), igbinary.ini (NONE -> 1.1)  (NEW), php-pecl-igbinary.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/php-pecl-igbinary/apc-modname.patch
diff -u /dev/null packages/php-pecl-igbinary/apc-modname.patch:1.1
--- /dev/null	Fri Oct 14 08:24:17 2011
+++ packages/php-pecl-igbinary/apc-modname.patch	Fri Oct 14 08:24:12 2011
@@ -0,0 +1,11 @@
+--- php-pecl-igbinary-1.1.1/tests/igbinary_045.phpt~	2011-01-17 16:24:32.000000000 +0200
++++ php-pecl-igbinary-1.1.1/tests/igbinary_045.phpt	2011-10-14 09:07:47.665440589 +0300
+@@ -12,7 +12,7 @@
+ }
+ 
+ --INI--
+-extension=apc.so
++extension=APC.so
+ apc.enable_cli=1
+ apc.serializer=igbinary
+ --FILE--

================================================================
Index: packages/php-pecl-igbinary/igbinary.ini
diff -u /dev/null packages/php-pecl-igbinary/igbinary.ini:1.1
--- /dev/null	Fri Oct 14 08:24:17 2011
+++ packages/php-pecl-igbinary/igbinary.ini	Fri Oct 14 08:24:12 2011
@@ -0,0 +1,12 @@
+; Enable igbinary extension module
+extension=igbinary.so
+
+; Enable or disable compacting of duplicate strings
+; The default is On.
+;igbinary.compact_strings=On
+
+; Use igbinary as session serializer
+;session.serialize_handler=igbinary
+
+; Use igbinary as APC serializer
+;apc.serializer=igbinary

================================================================
Index: packages/php-pecl-igbinary/php-pecl-igbinary.spec
diff -u /dev/null packages/php-pecl-igbinary/php-pecl-igbinary.spec:1.1
--- /dev/null	Fri Oct 14 08:24:17 2011
+++ packages/php-pecl-igbinary/php-pecl-igbinary.spec	Fri Oct 14 08:24:12 2011
@@ -0,0 +1,111 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		modname	igbinary
+Summary:	Replacement for the standard PHP serializer
+Name:		php-pecl-%{modname}
+Version:	1.1.1
+Release:	1
+License:	BSD
+Group:		Libraries
+URL:		http://pecl.php.net/package/igbinary
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	4ad53115ed7d1d452cbe50b45dcecdf2
+# http://pecl.php.net/bugs/22598
+# https://github.com/igbinary/igbinary/tree/1.1.1/tests
+Source1:	https://github.com/igbinary/igbinary/tarball/1.1.1/tests#/%{modname}-tests.tgz
+# Source1-md5:	b171ba8b230f6de3e7095500515fc6bb
+Source2:	%{modname}.ini
+Patch0:		apc-modname.patch
+%{?with_tests:BuildRequires:	/usr/bin/php}
+BuildRequires:	php-devel >= 4:5.2.0
+%{?with_tests:BuildRequires:	php-pecl-APC}
+#BuildRequires:	php-pecl-apc-devel >= 3.1.7
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Igbinary is a drop in replacement for the standard PHP serializer.
+
+Instead of time and space consuming textual representation, igbinary
+stores PHP data structures in a compact binary form. Savings are
+significant when using memcached or similar memory based storages for
+serialized data.
+
+%package devel
+Summary:	Igbinary developer files (header)
+Group:		Development/Libraries
+Requires:	php-devel
+# does not require base
+
+%description devel
+These are the files needed to compile programs using Igbinary
+
+%prep
+%setup -qc -a1
+mv %{modname}-%{version}/* .
+mv igbinary-igbinary-bef0aca/tests .
+%patch0 -p1
+
+%build
+phpize
+%configure
+%{__make}
+
+%if %{with tests}
+# APC required for test 045
+
+# simple module load test
+# without APC to ensure than can run without
+%{__php} -n \
+	-dextension_dir=modules \
+	-dextension=%{php_extensiondir}/spl.so \
+	-dextension=%{php_extensiondir}/session.so \
+	-dextension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
+
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
+%{__make} test \
+	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="pcre spl session" \
+	RUN_TESTS_SETTINGS="-q $*"
+EOF
+
+chmod +x run-tests.sh
+./run-tests.sh -w failed.log --show-out
+test -f failed.log -a ! -s failed.log
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+%{__make} install \
+	EXTENSION_DIR=%{php_extensiondir} \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING CREDITS NEWS README
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/php/ext/%{modname}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/10/14 06:24:12  glen
+- new, based on fedora .spec
+
================================================================


More information about the pld-cvs-commit mailing list