summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-horde-Horde-Stream-Wrapper.spec21
1 files changed, 14 insertions, 7 deletions
diff --git a/php-horde-Horde-Stream-Wrapper.spec b/php-horde-Horde-Stream-Wrapper.spec
index 1d93af8..0a1d2dd 100644
--- a/php-horde-Horde-Stream-Wrapper.spec
+++ b/php-horde-Horde-Stream-Wrapper.spec
@@ -8,13 +8,18 @@
# Please, preserve the changelog entries
#
%{!?__pear: %global __pear %{_bindir}/pear}
+%global bootstrap 0
%global pear_name Horde_Stream_Wrapper
%global pear_channel pear.horde.org
-# Disable because of circular dependency with Horde_Test
+%if %{bootstrap}
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
+%else
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+%endif
+
Name: php-horde-Horde-Stream-Wrapper
-Version: 2.1.0
+Version: 2.1.1
Release: 1%{?dist}
Summary: Horde Stream wrappers
@@ -41,6 +46,7 @@ Requires: php-pear(PEAR) >= 1.7.0
Requires: php-channel(%{pear_channel})
Provides: php-pear(%{pear_channel}/%{pear_name}) = %{version}
+Provides: php-composer(horde/horde-stream-wrapper) = %{version}
%description
@@ -72,12 +78,8 @@ 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 \
- .
+phpunit .
%else
: Tests disabled, use --with tests to enable them
%endif
@@ -103,6 +105,11 @@ fi
%changelog
+* Fri Jan 09 2015 Remi Collet <remi@fedoraproject.org> - 2.1.1-1
+- Update to 2.1.1
+- add provides php-composer(horde/horde-stream-wrapper)
+- enable test suite
+
* Tue Feb 11 2014 Remi Collet <remi@fedoraproject.org> - 2.1.0-1
- Update to 2.1.0
- Add tests, only run when build --with tests