[php-pear-Net-DNS2] php-mhash is optionnal and not available on RHEL-6

Remi Collet remi at fedoraproject.org
Sun Sep 23 05:30:01 UTC 2012


commit bd283b4d87f755048f9858884f0b43e79a39e77f
Author: Remi Collet <remi at fedoraproject.org>
Date:   Sun Sep 23 07:29:47 2012 +0200

    php-mhash is optionnal and not available on RHEL-6

 php-pear-Net-DNS2.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/php-pear-Net-DNS2.spec b/php-pear-Net-DNS2.spec
index 87d9eef..8ac075b 100644
--- a/php-pear-Net-DNS2.spec
+++ b/php-pear-Net-DNS2.spec
@@ -3,7 +3,7 @@
 
 Name:           php-pear-Net-DNS2
 Version:        1.2.4
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        PHP Resolver library used to communicate with a DNS server
 
 Group:          Development/Libraries
@@ -22,8 +22,12 @@ Requires(post): %{__pear}
 Requires(postun): %{__pear}
 Requires:       php-pear(PEAR)
 # extensions detected by phpci (+ php-filter, not yet available in EL)
-Requires:       php-ctype, php-date, php-json, php-openssl, php-mhash
+Requires:       php-ctype, php-date, php-json, php-openssl
 Requires:       php-pcre, php-shmop, php-sockets, php-spl
+# Optional dependency
+%if 0%{?fedora} || 0%{?rhel} > 6
+Requires:       php-mhash
+%endif
 
 Provides:       php-pear(%{pear_name}) = %{version}
 
@@ -108,6 +112,9 @@ fi
 
 
 %changelog
+* Sun Sep 23 2012 Remi Collet <remi at fedoraproject.org> - 1.2.4-2
+- php-mhash is optionnal and not available on RHEL-6
+
 * Thu Sep 20 2012 Remi Collet <remi at fedoraproject.org> - 1.2.4-1
 - Version 1.2.4 (stable)
 


More information about the scm-commits mailing list