From fbe66f16df4aff21fa4a5262752db288d097c34b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 4 Jan 2013 13:40:10 +0100 Subject: php-pecl-xhprof: git snapshot + php 5.5 fix --- php-pecl-xhprof.spec | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) (limited to 'php-pecl-xhprof.spec') diff --git a/php-pecl-xhprof.spec b/php-pecl-xhprof.spec index 02edd69..f339986 100644 --- a/php-pecl-xhprof.spec +++ b/php-pecl-xhprof.spec @@ -1,38 +1,46 @@ %{!?__pecl: %{expand: %%global __pecl %{_bindir}/pecl}} %global pecl_name xhprof +%global gitver b8c76ac5ab Name: php-pecl-xhprof Version: 0.9.2 -Release: 5%{?dist}.1 +Release: 8%{?gitver:.git%{gitver}}%{?dist} + Summary: PHP extension for XHProf, a Hierarchical Profiler Group: Development/Languages License: ASL 2.0 URL: http://pecl.php.net/package/%{pecl_name} +%if 0%{?gitver:1} +# https://github.com/facebook/xhprof/archive/master.tar.gz +Source0: %{pecl_name}-%{gitver}.tgz +%else Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +%endif -# From github -Patch0: %{pecl_name}-arginfo.patch -Patch1: %{pecl_name}-php54.patch +# https://github.com/facebook/xhprof/pull/15 +Patch2: %{pecl_name}-php55.patch # https://bugs.php.net/61262 -ExcludeArch: ppc64 +ExclusiveArch: %{ix86} x86_64 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel >= 5.2.0 -BuildRequires: php-pear >= 1:1.4.0 +BuildRequires: php-pear Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} Requires(post): %{__pecl} Requires(postun): %{__pecl} + +Provides: php-%{pecl_name} = %{version} +Provides: php-%{pecl_name}%{?_isa} = %{version} Provides: php-pecl(%{pecl_name}) = %{version} +Provides: php-pecl(%{pecl_name})%{?_isa} = %{version} -# RPM 4.8 +# Filter private provides %{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} %{?filter_setup} -# RPM 4.9 -%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{_libdir}/.*\\.so$ %description @@ -74,6 +82,10 @@ Documentation : %{_datadir}/doc/%{name}-%{version}/docs/index.html %prep %setup -c -q +%if 0%{?gitver:1} +mv %{pecl_name}-master/package.xml . +mv %{pecl_name}-master %{pecl_name}-%{version} +%endif # Extension configuration file cat >%{pecl_name}.ini < - 0.9.2-8.gitb8c76ac5ab +- git snapshot + php 5.5 fix + https://github.com/facebook/xhprof/pull/15 +- also provides php-xhprof + +* Tue May 22 2012 Remi Collet - 0.9.2-6 +- move from ExcludeArch: ppc64 + to ExclusiveArch: %%{ix86} x86_64 because of cycle_timer() + * Sun May 06 2012 Remi Collet - 0.9.2-5 - make configuration file compatible with apache 2.2 / 2.4 -- cgit