[packages/php-pecl-msgpack] new, version 0.5.5

glen glen at pld-linux.org
Wed Jan 21 14:50:43 CET 2015


commit 1637b07850d20d396ab5da80aa63a623590754e4
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 21 15:50:06 2015 +0200

    new, version 0.5.5
    
    crated from template php-pecl.spec

 php-pecl-msgpack.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 91 insertions(+)
---
diff --git a/php-pecl-msgpack.spec b/php-pecl-msgpack.spec
new file mode 100644
index 0000000..91f713e
--- /dev/null
+++ b/php-pecl-msgpack.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	msgpack
+Summary:	PHP extension for interfacing with MessagePack
+Name:		%{php_name}-pecl-%{modname}
+Version:	0.5.5
+Release:	1
+License:	PHP 3.01
+Group:		Development/Languages/PHP
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	adc8d9ea5088bdb83e7cc7c2f535d858
+URL:		http://pecl.php.net/package/msgpack/
+BuildRequires:	%{php_name}-devel
+BuildRequires:	rpmbuild(macros) >= 1.666
+%if %{with tests}
+BuildRequires:	%{php_name}-cli
+BuildRequires:	%{php_name}-session
+BuildRequires:	%{php_name}-spl
+%endif
+%{?requires_php_extension}
+Requires:	%{php_name}-session
+Provides:	php(msgpack) = %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This extension provide API for communicating with MessagePack
+serialization.
+
+MessagePack is a binary-based efficient object serialization library.
+It enables to exchange structured objects between many languages like
+JSON. But unlike JSON, it is very fast and small.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%if %{with tests}
+# simple module load test
+%{__php} -n -q \
+	-d extension_dir=modules \
+	-d extension=%{php_extensiondir}/spl.so \
+	-d extension=%{php_extensiondir}/session.so \
+	-d extension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
+
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
+%{__make} test \
+	PHP_EXECUTABLE=%{__php} \
+	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="spl session"
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	EXTENSION_DIR=%{php_extensiondir} \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
+EOF
+
+# no -devel package yet
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/php/ext/msgpack/php_msgpack.h
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+	%php_webserver_restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS EXPERIMENTAL
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-msgpack.git/commitdiff/1637b07850d20d396ab5da80aa63a623590754e4



More information about the pld-cvs-commit mailing list