From 2a3e062895a07f40346602e05fabed37fe2acb24 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Oct 15 2018 09:41:20 +0000 Subject: add adpated upstream patch for PHP 7.3 --- diff --git a/c533d42e17e058237f0350ca56c7f01903bb035e.patch b/c533d42e17e058237f0350ca56c7f01903bb035e.patch new file mode 100644 index 0000000..88cacc2 --- /dev/null +++ b/c533d42e17e058237f0350ca56c7f01903bb035e.patch @@ -0,0 +1,30 @@ +Adapted for version 3 from upstream + + +From c533d42e17e058237f0350ca56c7f01903bb035e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Thomas=20M=C3=BCller?= + +Date: Tue, 25 Sep 2018 20:42:40 +0200 +Subject: [PATCH] Test with php 7.3 on travis (#424) + +--- + .travis.yml | 13 ++++++++++++- + lib/Component/VCard.php | 2 +- + lib/FreeBusyGenerator.php | 2 +- + tests/VObject/BirthdayCalendarGeneratorTest.php | 4 ++-- + 4 files changed, 16 insertions(+), 5 deletions(-) + +diff --git a/lib/FreeBusyGenerator.php b/lib/FreeBusyGenerator.php +index e30b136c..ca77cb91 100644 +--- a/lib/FreeBusyGenerator.php ++++ b/lib/FreeBusyGenerator.php +@@ -430,7 +430,7 @@ protected function calculateBusy(FreeBusyData $fbData, array $objects) { + // instance. We are skipping this event from the output + // entirely. + unset($this->objects[$key]); +- continue; ++ break; + } + + if ($this->start) { + diff --git a/php-sabre-vobject.spec b/php-sabre-vobject.spec index 682d11f..5375f66 100644 --- a/php-sabre-vobject.spec +++ b/php-sabre-vobject.spec @@ -1,6 +1,6 @@ # remirepo/fedora spec file for php-sabre-vobject # -# Copyright (c) 2013-2017 Remi Collet +# Copyright (c) 2013-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -12,7 +12,7 @@ %global gh_project vobject %global with_tests %{?_without_tests:0}%{!?_without_tests:1} -%if 0%{?fedora} > 25 +%if 0%{?fedora} >= 26 || 0%{?rhel} >= 8 %global with_cmd 0 %else %global with_cmd 1 @@ -21,17 +21,18 @@ Name: php-sabre-vobject Summary: Library to parse and manipulate iCalendar and vCard objects Version: 3.5.3 -Release: 9%{?dist} +Release: 10%{?dist} URL: http://sabre.io/vobject/ License: BSD -Group: Development/Libraries Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz Source1: %{name}-autoload.php # replace composer autloader Patch0: %{name}-bin.patch Patch1: https://patch-diff.githubusercontent.com/raw/sabre-io/vobject/pull/395.patch +# Adapted upstream patch +Patch2: c533d42e17e058237f0350ca56c7f01903bb035e.patch BuildArch: noarch %if %{with_tests} @@ -83,6 +84,7 @@ Autoloader: %{_datadir}/php/Sabre/VObject/autoload.php %patch0 -p1 -b .rpm %patch1 -p1 +%patch2 -p1 cp %{SOURCE1} lib/autoload.php @@ -113,7 +115,7 @@ sed -e 's:@BUILDROOT@:%{buildroot}:' -i bootstrap.php : Run upstream test suite against installed library ret=0 -for cmd in php php56 php70 php71 php72; do +for cmd in php php56 php70 php71 php72 php73; do if which $cmd; then $cmd %{_bindir}/phpunit --verbose || ret=1 fi @@ -137,6 +139,9 @@ exit $ret %changelog +* Mon Oct 15 2018 Remi Collet - 4.1.3-10 +- add adpated upstream patch for PHP 7.3 + * Fri Jul 13 2018 Fedora Release Engineering - 3.5.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild