[php-pecl-xhprof] update to 0.9.4 (security)

Remi Collet remi at fedoraproject.org
Tue Oct 1 04:33:16 UTC 2013


commit e4ab801a36b546797e01ff70d835f1b9298dc214
Author: Remi Collet <remi at fedoraproject.org>
Date:   Tue Oct 1 06:33:01 2013 +0200

    update to 0.9.4 (security)

 .gitignore           |    1 +
 php-pecl-xhprof.spec |   23 ++++++++++++++++++++---
 sources              |    2 +-
 3 files changed, 22 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4141d94..5315079 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ clog
 /xhprof-0.9.2.tgz
 /xhprof-b8c76ac5ab.tgz
 /xhprof-0.9.3.tgz
+/xhprof-0.9.4.tgz
diff --git a/php-pecl-xhprof.spec b/php-pecl-xhprof.spec
index a71fc27..1d27a10 100644
--- a/php-pecl-xhprof.spec
+++ b/php-pecl-xhprof.spec
@@ -1,10 +1,18 @@
+# spec file for php-pecl-xhprof
+#
+# Copyright (c) 2012-2013 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/3.0/
+#
+# Please, preserve the changelog entries
+#
 %{!?__pecl:         %{expand: %%global __pecl %{_bindir}/pecl}}
 
 %global pecl_name xhprof
 
 Name:           php-pecl-xhprof
-Version:        0.9.3
-Release:        3%{?gitver:.git%{gitver}}%{?dist}
+Version:        0.9.4
+Release:        1%{?dist}
 
 Summary:        PHP extension for XHProf, a Hierarchical Profiler
 Group:          Development/Languages
@@ -75,6 +83,9 @@ Documentation : %{_docdir}/xhprof-%{version}/index.html
 %prep
 %setup -c -q
 
+# All files as src to avoid registration in pear file list
+sed -e 's/role="[a-z]*"/role="src"/' -i package.xml
+
 # Extension configuration file
 cat >%{pecl_name}.ini <<EOF
 ; Enable %{pecl_name} extension module
@@ -90,6 +101,8 @@ cat >httpd.conf <<EOF
 Alias /xhprof /usr/share/xhprof/xhprof_html
 
 <Directory /usr/share/xhprof/xhprof_html>
+   # For security reason, the web interface
+   # is only allowed from the server
    <IfModule mod_authz_core.c>
       # Apache 2.4
       Require local
@@ -152,13 +165,14 @@ cp -pr %{pecl_name}-%{version}/xhprof_lib  %{buildroot}%{_datadir}/xhprof/xhprof
 
 
 %check
-# simple module load test
+: simple module load TEST for NTS extension
 php --no-php-ini \
     --define extension_dir=%{pecl_name}-%{version}/extension/modules \
     --define extension=%{pecl_name}.so \
     --modules | grep %{pecl_name}
 
 %if 0%{?__ztsphp:1}
+: simple module load TEST for ZTS extension
 %{__ztsphp} --no-php-ini \
     --define extension_dir=%{pecl_name}-%{version}/ext-zts/modules \
     --define extension=%{pecl_name}.so \
@@ -195,6 +209,9 @@ fi
 
 
 %changelog
+* Tue Oct  1 2013 Remi Collet <remi at fedoraproject.org> - 0.9.4-1
+- update to 0.9.4
+
 * Tue Aug  6 2013 Remi Collet <remi at fedoraproject.org> - 0.9.3-3
 - fix doc path in package description #994038
 
diff --git a/sources b/sources
index 31afe94..513a95f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-275f15d2986f3b9c501f1867703f3cec  xhprof-0.9.3.tgz
+ab4062a7337e3bdaa2fd7065a7942b8d  xhprof-0.9.4.tgz


More information about the scm-commits mailing list