[php-horde-Horde-Lock] update to 2.0.2

Remi Collet remi at fedoraproject.org
Thu Mar 7 09:34:25 UTC 2013


commit 52d37da61088cf284a0be9b107d678e6044ea3ea
Author: Remi Collet <remi at fedoraproject.org>
Date:   Thu Mar 7 10:34:20 2013 +0100

    update to 2.0.2

 .gitignore                |    1 +
 php-horde-Horde-Lock.spec |   30 ++++++++++++++++++++++++++++--
 sources                   |    2 +-
 3 files changed, 30 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 192a5f5..2e214cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Horde_Lock-2.0.1.tgz
+/Horde_Lock-2.0.2.tgz
diff --git a/php-horde-Horde-Lock.spec b/php-horde-Horde-Lock.spec
index 845cad6..b022576 100644
--- a/php-horde-Horde-Lock.spec
+++ b/php-horde-Horde-Lock.spec
@@ -3,9 +3,12 @@
 %global pear_name    Horde_Lock
 %global pear_channel pear.horde.org
 
+# Can run test because of circular dependency with Horde_Test
+%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
+
 Name:           php-horde-Horde-Lock
-Version:        2.0.1
-Release:        3%{?dist}
+Version:        2.0.2
+Release:        1%{?dist}
 Summary:        Horde Resource Locking System
 
 Group:          Development/Libraries
@@ -14,8 +17,13 @@ URL:            http://pear.horde.org
 Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
 
 BuildArch:      noarch
+BuildRequires:  php-common >= 5.3.0
 BuildRequires:  php-pear(PEAR) >= 1.7.0
 BuildRequires:  php-channel(%{pear_channel})
+%if %{with_tests}
+BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
+BuildRequires:  php-pear(%{pear_channel}/Horde_Db) >= 2.0.0
+%endif
 
 Requires(post): %{__pear}
 Requires(postun): %{__pear}
@@ -64,6 +72,19 @@ mkdir -p %{buildroot}%{pear_xmldir}
 install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
 
 
+%check
+%if %{with_tests}
+src=$(pwd)/%{pear_name}-%{version}
+cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
+phpunit \
+    -d include_path=$src/lib:.:%{pear_phpdir} \
+    -d date.timezone=UTC \
+    .
+%else
+: Test disabled, missing '--with tests' option.
+%endif
+
+
 %post
 %{__pear} install --nodeps --soft --force --register-only \
     %{pear_xmldir}/%{name}.xml >/dev/null || :
@@ -81,9 +102,14 @@ fi
 %{pear_phpdir}/Horde/Lock
 %{pear_phpdir}/Horde/Lock.php
 %{pear_datadir}/%{pear_name}
+%{pear_testdir}/%{pear_name}
 
 
 %changelog
+* Wed Mar 06 2013 Remi Collet <remi at fedoraproject.org> - 2.0.2-1
+- Update to 2.0.2
+- run test when build with --with tests options
+
 * Wed Feb 6 2013 Nick Bebout <nb at fedoraproject.org> - 2.0.1-3
 - Update for review
 
diff --git a/sources b/sources
index ba35be7..69088b3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f21c065bd8e0e23620ff755ab0a6b661  Horde_Lock-2.0.1.tgz
+772337a1fa5228fab6a919911c18016d  Horde_Lock-2.0.2.tgz


More information about the scm-commits mailing list