[packages/php-symfony_debug] new, version 2.7.3

glen glen at pld-linux.org
Fri Aug 7 07:53:21 CEST 2015


commit 160d4641f6cbc058625cb951e41db9eb28d29328
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Aug 7 08:49:33 2015 +0300

    new, version 2.7.3

 php-symfony_debug.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 89 insertions(+)
---
diff --git a/php-symfony_debug.spec b/php-symfony_debug.spec
new file mode 100644
index 0000000..983462a
--- /dev/null
+++ b/php-symfony_debug.spec
@@ -0,0 +1,89 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	symfony_debug
+Summary:	Symfony Debug Extension
+Name:		%{php_name}-%{modname}
+Version:	2.7.3
+Release:	1
+License:	MIT
+Group:		Development/Languages/PHP
+Source0:	https://github.com/symfony/Debug/archive/v%{version}/Debug-%{version}.tar.gz
+# Source0-md5:	74b1ec1c41ae362d48b39e424fc78232
+URL:		http://symfony.com/doc/2.7/components/debug/index.html
+%{?with_tests:BuildRequires:    %{php_name}-cli}
+BuildRequires:	%{php_name}-devel
+BuildRequires:	rpmbuild(macros) >= 1.666
+%if %{with tests}
+BuildRequires:	%{php_name}-cli
+BuildRequires:	%{php_name}-pcre
+%endif
+%{?requires_php_extension}
+Provides:	php(symfony_debug) = %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This extension publishes several functions to help building powerful
+debugging tools.
+
+%prep
+%setup -qc
+mv Debug-%{version}/Resources/ext/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%if %{with tests}
+# simple module load test
+%{__php} -n -q \
+	-d extension_dir=modules \
+	-d extension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
+
+cat <<'EOF' > run-tests.sh
+#!/bin/sh
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
+%{__make} test \
+	PHP_EXECUTABLE=%{__php} \
+	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="" \
+	RUN_TESTS_SETTINGS="-q $*"
+EOF
+
+chmod +x run-tests.sh
+./run-tests.sh -w failed.log
+test -f failed.log -a ! -s failed.log
+%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
+
+%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 README.md
+%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-symfony_debug.git/commitdiff/160d4641f6cbc058625cb951e41db9eb28d29328



More information about the pld-cvs-commit mailing list