[packages/php-pecl-tideways_xhprof] New package php-pecl-tideways_xhprof, version 5.0.2

glen glen at pld-linux.org
Sat Jul 11 17:07:49 CEST 2020


commit b7c6c36850397f1727c604c39cb8e9242f197b42
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Sat Jul 11 18:06:57 2020 +0300

    New package php-pecl-tideways_xhprof, version 5.0.2

 php-pecl-tideways_xhprof.spec | 69 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/php-pecl-tideways_xhprof.spec b/php-pecl-tideways_xhprof.spec
new file mode 100644
index 0000000..a430745
--- /dev/null
+++ b/php-pecl-tideways_xhprof.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	tideways_xhprof
+Summary:	%{modname} Tideways XHProf Extension
+Name:		%{php_name}-pecl-%{modname}
+Version:	5.0.2
+Release:	0.1
+License:	Apache v2.0
+Group:		Development/Languages/PHP
+Source0:	https://github.com/tideways/php-xhprof-extension/archive/v%{version}/%{modname}-%{version}.tar.gz
+# Source0-md5:	374cf4ff7ba03401a279777abe94815d
+URL:		https://github.com/tideways/php-xhprof-extension
+BuildRequires:	%{php_name}-cli
+BuildRequires:	%{php_name}-devel >= 4:7.0
+BuildRequires:	rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+Provides:	php(%{modname}) = %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Modern XHProf compatible PHP Profiler.
+
+%prep
+%setup -qc
+mv php-xhprof-extension-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+# simple module load test
+%{__php} -n -q \
+	-d extension_dir=modules \
+	-d extension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
+
+%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 CHANGELOG.md NOTICE
+%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-tideways_xhprof.git/commitdiff/b7c6c36850397f1727c604c39cb8e9242f197b42



More information about the pld-cvs-commit mailing list