From 7e0156f6c2fedbdc958f342f148a4c5f3f063543 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 21 Oct 2012 08:55:25 +0200 Subject: php-pecl-lzf: add conditionnal (fedora < 14 doesn't have liblzf) --- php-pecl-lzf.spec | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'php-pecl-lzf.spec') diff --git a/php-pecl-lzf.spec b/php-pecl-lzf.spec index 4d3c0ed..823600f 100644 --- a/php-pecl-lzf.spec +++ b/php-pecl-lzf.spec @@ -17,7 +17,9 @@ Patch0: php-lzf-rm-bundled-libs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: php-devel BuildRequires: php-pear >= 1:1.4.0 +%if 0%{?fedora} >= 14 || 0%{?rhel} >= 5 BuildRequires: liblzf-devel +%endif Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} @@ -48,10 +50,13 @@ slight speed cost. %prep %setup -c -q + +%if 0%{?fedora} >= 14 || 0%{?rhel} >= 5 cd %{pecl_name}-%{version} %patch0 -p1 -b liblzf rm -f lzf_c.c lzf_d.c lzf.h cd .. +%endif cp -r %{pecl_name}-%{version} %{pecl_name}-%{version}-zts -- cgit