[php-horde-Horde-SyncMl] update to 2.0.4

Remi Collet remi at fedoraproject.org
Fri Jul 25 05:22:12 UTC 2014


commit cde2246e42ae3b1ee406b55e68494c50043af5be
Author: Remi Collet <remi at fedoraproject.org>
Date:   Fri Jul 25 07:21:57 2014 +0200

    update to 2.0.4

 .gitignore                  |    1 +
 php-horde-Horde-SyncMl.spec |   38 +++++++++++++++++++++++++++++++++-----
 sources                     |    2 +-
 3 files changed, 35 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 47c2a54..2971746 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Horde_SyncMl-2.0.3.tgz
+/Horde_SyncMl-2.0.4.tgz
diff --git a/php-horde-Horde-SyncMl.spec b/php-horde-Horde-SyncMl.spec
index 834e64b..9c79b42 100644
--- a/php-horde-Horde-SyncMl.spec
+++ b/php-horde-Horde-SyncMl.spec
@@ -1,13 +1,22 @@
+# spec file for php-horde-Horde-Date
+#
+# Copyright (c) 2012-2014 Nick Bebout, Remi Collet
+#
+# License: MIT
+# https://fedoraproject.org/wiki/Licensing:MIT#Modern_Style_with_sublicense
+#
+# Please, preserve the changelog entries
+#
+%{!?__pear:       %global __pear       %{_bindir}/pear}
 %{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
-%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
 %global pear_name    Horde_SyncMl
 %global pear_channel pear.horde.org
-
 # No run of unit tests - because tests are not ready (oudated)
+%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
 
 Name:           php-horde-Horde-SyncMl
-Version:        2.0.3
-Release:        4%{?dist}
+Version:        2.0.4
+Release:        1%{?dist}
 Summary:        Horde_SyncMl provides an API for processing SyncML requests
 
 Group:          Development/Libraries
@@ -46,7 +55,7 @@ Conflicts:      php-pear(%{pear_channel}/Horde_Translation) >= 3.0.0
 # Optional
 Requires:       php-pear(%{pear_channel}/Horde_Auth) >= 2.0.0
 Conflicts:      php-pear(%{pear_channel}/Horde_Auth) >= 3.0.0
-# Keep optional : Horde_Core, MDB2
+# Keep optional : Horde_Core
 
 Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
 
@@ -54,6 +63,7 @@ Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
 %description
 Classes for implementing a SyncML server.
 
+
 %prep
 %setup -q -c
 cd %{pear_name}-%{version}
@@ -63,6 +73,7 @@ cd %{pear_name}-%{version}
 sed -e '/%{pear_name}.po/d' \
     -e '/%{pear_name}.mo/s/md5sum=.*name=/name=/' \
     ../package.xml >%{name}.xml
+touch -r ../package.xml %{name}.xml
 
 
 %build
@@ -101,6 +112,20 @@ do
 done
 
 
+%check
+%if %{with_tests}
+src=$(pwd)/%{pear_name}-%{version}
+cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
+
+phpunit \
+    --include-path=$src/lib \
+    -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 || :
@@ -124,6 +149,9 @@ fi
 
 
 %changelog
+* Fri Jul 25 2014 Remi Collet <remi at fedoraproject.org> - 2.0.4-1
+- Update to 2.0.4
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 4d02085..46df696 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-bf24da748d8022064fa0fa50af337ce6  Horde_SyncMl-2.0.3.tgz
+c9a4b2acb163f374fa81a7575e50fe64  Horde_SyncMl-2.0.4.tgz


More information about the scm-commits mailing list