From 93b59fe5fb7b4829a7d9887dde80b14265d89721 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Mar 2016 13:14:15 +0100 Subject: php-sabre-dav: 2.1.6 (synced with Fedora) --- php-sabre-dav.spec | 138 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 91 insertions(+), 47 deletions(-) (limited to 'php-sabre-dav.spec') diff --git a/php-sabre-dav.spec b/php-sabre-dav.spec index 8f26412..334fd79 100644 --- a/php-sabre-dav.spec +++ b/php-sabre-dav.spec @@ -1,4 +1,4 @@ -# Spec file for php-sabre-dav +# remirepo/fedora spec file for php-sabre-dav # # Copyright (c) 2013-2016 Remi Collet # License: CC-BY-SA @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 78b0a55ae126666b49ec9ac88582d453b971967d +%global gh_commit cab5ab4e9caa00ba12268aa5b35925dc65bd7d63 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner fruux %global gh_project sabre-dav @@ -14,42 +14,82 @@ Name: php-%{gh_project} Summary: WebDAV Framework for PHP -Version: 1.8.12 +Version: 2.1.6 Release: 1%{?dist} URL: https://github.com/%{gh_owner}/%{gh_project} -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz License: BSD Group: Development/Libraries +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz +Source1: %{name}-autoload.php -# replace composer autoloader with trivial PSR-0 one -Patch0: %{gh_project}-autoload.patch +# replace composer autoloader +Patch0: %{name}-autoload.patch + +# Partial cherry pick of 4eff5d4 to fix the zero length event breaking the test +Patch1: %{name}-GetEventsByTimerangeTest-zerolength.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %if %{with_tests} -BuildRequires: php(language) >= 5.3.1 -BuildRequires: %{_bindir}/phpunit -BuildRequires: php-sabre-vobject > 2.1 +BuildRequires: php(language) >= 5.4.1 +BuildRequires: php-composer(phpunit/phpunit) +BuildRequires: php-composer(sabre/vobject) >= 3.3.4 +BuildRequires: php-composer(sabre/event) >= 2.0.0 +BuildRequires: php-composer(sabre/http) >= 3.0.0 +BuildRequires: php-dom +BuildRequires: php-pcre +BuildRequires: php-spl +BuildRequires: php-simplexml +BuildRequires: php-mbstring +BuildRequires: php-ctype +BuildRequires: php-date +BuildRequires: php-iconv +BuildRequires: php-libxml +BuildRequires: php-curl BuildRequires: php-pdo +# Autoloader +BuildRequires: php-composer(symfony/class-loader) +BuildRequires: php-pdo_sqlite %endif -# From composer.json -Requires: php(language) >= 5.3.1 +# From composer.json, "require": { +# "php": ">=5.4.1", +# "sabre/vobject": ">=3.3.4 <4", +# "sabre/event" : "~2.0.0", +# "sabre/http" : "~3.0.0", +# "ext-dom": "*", +# "ext-pcre": "*", +# "ext-spl": "*", +# "ext-simplexml": "*", +# "ext-mbstring" : "*", +# "ext-ctype" : "*", +# "ext-date" : "*", +# "ext-iconv" : "*", +# "ext-libxml" : "*" +Requires: php(language) >= 5.4.1 +Requires: php-composer(sabre/vobject) >= 3.3.4 +Requires: php-composer(sabre/vobject) < 4 +Requires: php-composer(sabre/event) >= 2.0.0 +Requires: php-composer(sabre/event) < 2.1 +Requires: php-composer(sabre/http) >= 3.0.0 +Requires: php-composer(sabre/http) < 3.1 +Requires: php-dom +Requires: php-pcre +Requires: php-spl +Requires: php-simplexml +Requires: php-mbstring Requires: php-ctype Requires: php-date -Requires: php-dom Requires: php-iconv Requires: php-libxml -Requires: php-mbstring -Requires: php-pcre -Requires: php-simplexml -Requires: php-spl -Requires: php-sabre-vobject > 2.1 -# From phpcompatinfo report for version 1.8.7 +# From composer.json, "suggest" : { +# "ext-curl" : "*", +# "ext-pdo" : "*" Requires: php-curl Requires: php-pdo -Requires: php-xml +# Autoloader +Requires: php-composer(symfony/class-loader) %description @@ -76,19 +116,8 @@ Feature list: %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 - -: Create trivial PSR0 autoloader for tests -cat < - 2.1.6-1 +- update to 2.1.6 + +* Wed Feb 24 2016 Remi Collet - 2.1.5-1 +- update to 2.1.5 + * Fri Mar 06 2015 Adam Williamson - 1.8.12-1 - update to 1.8.12 (bugfix release, no bc breaks) @@ -148,4 +192,4 @@ phpunit \ - update to 1.8.8 * Tue Dec 31 2013 Remi Collet - 1.8.7-1 -- Initial packaging \ No newline at end of file +- Initial packaging -- cgit