[php-pear-Crypt-CHAP] update to 1.5.0

Remi Collet remi at fedoraproject.org
Sun Sep 19 06:25:12 UTC 2010


commit 41b294f29dc0df6a13415b6c828c58f13f0c9f00
Author: remi <fedora at famillecollet.com>
Date:   Sun Sep 19 08:25:05 2010 +0200

    update to 1.5.0

 .gitignore               |    1 +
 php-pear-Crypt-CHAP.spec |   26 +++++++++++++++++---------
 sources                  |    2 +-
 3 files changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dd6696a..6af9882 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 Crypt_CHAP-1.0.2.tgz
 package.xml
+/Crypt_CHAP-1.5.0.tgz
diff --git a/php-pear-Crypt-CHAP.spec b/php-pear-Crypt-CHAP.spec
index 36201a3..18ac35a 100644
--- a/php-pear-Crypt-CHAP.spec
+++ b/php-pear-Crypt-CHAP.spec
@@ -2,8 +2,8 @@
 %global pear_name Crypt_CHAP
 
 Name:           php-pear-Crypt-CHAP
-Version:        1.0.2
-Release:        3%{?dist}
+Version:        1.5.0
+Release:        1%{?dist}
 Summary:        Class to generate CHAP packets
 
 Group:          Development/Languages
@@ -11,18 +11,17 @@ License:        BSD
 URL:            http://pear.php.net/package/Crypt_CHAP
 Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
 
-# Replace use of deprecated mhash functions by hash
-# See http://pear.php.net/bugs/17828
-Patch0:         %{pear_name}-hash.patch
-
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  php-pear >= 1:1.4.9-1.2
-Requires:       php-pear(PEAR) php-mcrypt
+
+Requires:       php-pear(PEAR) 
+Requires:       php-mcrypt >= 5.1.2
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
 Provides:       php-pear(%{pear_name}) = %{version}
 
+
 %description
 This package provides Classes for generating CHAP packets.  
 Currently these types of CHAP are supported: 
@@ -41,8 +40,6 @@ cd %{pear_name}-%{version}
 # package.xml is V2
 mv ../package.xml %{name}.xml
 
-%patch0 -p1 -b .hash
-
 
 %build
 cd %{pear_name}-%{version}
@@ -67,6 +64,13 @@ install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
 rm -rf $RPM_BUILD_ROOT
 
 
+%check
+cd %{pear_name}-%{version}
+PHPRC=../php.ini %{__pear} run-tests \
+   -i "-d include_path=%{buildroot}%{pear_phpdir}:%{pear_phpdir}" \
+   tests
+
+
 %post
 %{__pear} install --nodeps --soft --force --register-only \
     %{pear_xmldir}/%{name}.xml >/dev/null || :
@@ -86,6 +90,10 @@ fi
 
 
 %changelog
+* Sun Sep 19 2010 Remi Collet <Fedora at FamilleCollet.com> - 1.5.0-1
+- upstream 1.5.0 with patches merged
+- run tests during %%check
+
 * Fri Aug 27 2010 Remi Collet <Fedora at FamilleCollet.com> - 1.0.2-3
 - add patch for deprecated mhash extension 
   Upstream bug is http://pear.php.net/bugs/17828
diff --git a/sources b/sources
index de13293..c68ab0d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-4175a1d5486f305831adba517009c253  Crypt_CHAP-1.0.2.tgz
+6706a6aad9a576a2f9a13b2d9c936e93  Crypt_CHAP-1.5.0.tgz


More information about the scm-commits mailing list