summaryrefslogtreecommitdiffstats
path: root/php-pecl-apm.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-03-16 09:23:03 +0100
committerRemi Collet <fedora@famillecollet.com>2015-03-16 09:23:03 +0100
commit7bcfaf8fd433cd7bdff0accaf186a038770c430e (patch)
treea669f04c81e66073c8c7c0a2af727bb92ae0d722 /php-pecl-apm.spec
parenteddd8e5645c6e614b0a079a538ded82a767c327e (diff)
php-pecl-apm: upstream fix + updated config
Diffstat (limited to 'php-pecl-apm.spec')
-rw-r--r--php-pecl-apm.spec17
1 files changed, 12 insertions, 5 deletions
diff --git a/php-pecl-apm.spec b/php-pecl-apm.spec
index 6e4e24f..9f1695a 100644
--- a/php-pecl-apm.spec
+++ b/php-pecl-apm.spec
@@ -39,13 +39,18 @@
Name: %{?scl_prefix}php-pecl-apm
Summary: Alternative PHP Monitor
Version: 2.0.2
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz
# Webserver configuration files
Source1: %{pkg_name}.httpd
Source2: %{pkg_name}.nginx
+# Disable the extension and drivers by default
+Patch0: %{proj_name}-config.patch
+# Upstream patches
+Patch1: %{proj_name}-upstream.patch
+
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{proj_name}
@@ -120,6 +125,8 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
mv %{proj_name}-%{version} NTS
cd NTS
+%patch0 -p0 -b .rpm
+%patch1 -p1 -b .upstream
: Sanity check, really often broken
extver=$(sed -n '/#define PHP_APM_VERSION/{s/.* "//;s/".*$//;p}' php_apm.h)
@@ -127,10 +134,6 @@ if test "x${extver}" != "x%{version}"; then
: Error: Upstream extension version is ${extver}, expecting %{version}.
exit 1
fi
-
-: Disable the ext
-sed -e 's/^extension=/; extension=/' \
- -i apm.ini
cd ..
%if %{with_zts}
@@ -249,6 +252,10 @@ fi
%changelog
+* Tue Mar 10 2015 Remi Collet <remi@fedoraproject.org> - 2.0.2-2
+- upstream patches
+- fix provided configuration
+
* Tue Mar 10 2015 Remi Collet <remi@fedoraproject.org> - 2.0.2-1
- Update to 2.0.2
- drop sub package, apm-web is now a separate project