summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-10-21 08:55:25 +0200
committerRemi Collet <fedora@famillecollet.com>2012-10-21 08:55:25 +0200
commit7e0156f6c2fedbdc958f342f148a4c5f3f063543 (patch)
tree253f8198a7a5c386958e8872d47b75230e1f1beb
parent84e5281745115a2b604883fe39f98067921d7a85 (diff)
php-pecl-lzf: add conditionnal (fedora < 14 doesn't have liblzf)
-rw-r--r--php-pecl-lzf.spec5
1 files changed, 5 insertions, 0 deletions
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