From a255ebfcabfd14cde2996fc704ed9e114b0e79dd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 20 Feb 2014 10:15:24 +0100 Subject: php-sabredav-Sabre*: revert to 1.7.x (no namespace) --- php-sabredav-Sabre.patch | 47 +++++++++++++++++++++++++++-------------------- php-sabredav-Sabre.spec | 11 +++++++---- 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/php-sabredav-Sabre.patch b/php-sabredav-Sabre.patch index 6405897..3d67997 100644 --- a/php-sabredav-Sabre.patch +++ b/php-sabredav-Sabre.patch @@ -1,31 +1,18 @@ ---- Sabre/autoload.php 2010-04-28 15:05:53.000000000 +0200 -+++ Sabre/autoload.php 2013-05-07 13:32:38.808004076 +0200 -@@ -15,9 +15,9 @@ - - function Sabre_autoload($className) { - -- if(strpos($className,'Sabre_')===0) { -+ if(strpos($className,'Sabre\\')===0) { - -- include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,6)) . '.php'; -+ include dirname(__FILE__) . '/' . str_replace('\\','/',substr($className,6)) . '.php'; - - } - ---- php-sabredav-Sabre.xml 2010-04-28 15:05:53.000000000 +0200 -+++ php-sabredav-Sabre.xml 2013-05-07 13:35:58.000000000 +0200 -@@ -15,8 +15,8 @@ +diff -up Sabre-1.0.0/php-sabredav-Sabre.xml.orig Sabre-1.0.0/php-sabredav-Sabre.xml +--- Sabre-1.0.0/php-sabredav-Sabre.xml.orig 2010-04-28 15:05:53.000000000 +0200 ++++ Sabre-1.0.0/php-sabredav-Sabre.xml 2014-02-20 09:10:49.971529139 +0100 +@@ -15,8 +15,8 @@ Currently this is only an autoloader2010-04-28 - 1.0.0 - 1.0.0 -+ 1.0.1 -+ 1.0.1 ++ 1.0.2 ++ 1.0.2 stable -@@ -28,7 +28,7 @@ +@@ -28,7 +28,7 @@ New release. Read the ChangeLog and anno @@ -34,3 +21,23 @@ +diff -up Sabre-1.0.0/Sabre/autoload.php.orig Sabre-1.0.0/Sabre/autoload.php +--- Sabre-1.0.0/Sabre/autoload.php.orig 2010-04-28 15:05:53.000000000 +0200 ++++ Sabre-1.0.0/Sabre/autoload.php 2014-02-20 09:12:57.023982422 +0100 +@@ -16,10 +16,15 @@ + function Sabre_autoload($className) { + + if(strpos($className,'Sabre_')===0) { +- ++ # SabreDAV 1.7 don't use namespace + include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,6)) . '.php'; + + } ++ else if(strpos($className,'Sabre\\')===0) { ++ # VObject 2.1.3 use namespace ++ include dirname(__FILE__) . '/' . str_replace('\\','/',substr($className,6)) . '.php'; ++ ++ } + + } + diff --git a/php-sabredav-Sabre.spec b/php-sabredav-Sabre.spec index a142dc8..3e9bf88 100644 --- a/php-sabredav-Sabre.spec +++ b/php-sabredav-Sabre.spec @@ -4,7 +4,7 @@ %global origver 1.0.0 Name: php-sabredav-Sabre -Version: 1.0.1 +Version: 1.0.2 Release: 1%{?dist} Summary: Base for Sabre_DAV packages @@ -44,7 +44,7 @@ cd %{pear_name}-%{origver} mv ../package.xml %{name}.xml # Fix autoload to use namespace and force version -%patch0 -p0 +%patch0 -p1 -b .orig %build @@ -82,11 +82,14 @@ fi %changelog -* Tue May 7 2013 Remi Collet 1.8.5-1 +* Thu Feb 20 2014 Remi Collet 1.0.2-1 +- update to manage both version (with/without) namespace + +* Tue May 7 2013 Remi Collet 1.0.1-1 - update to 1.0.1 (use namespace) use our own package.xml as upstream doesn't use pear anymore -* Mon Nov 12 2012 Remi Collet 1.3-3 +* Mon Nov 12 2012 Remi Collet 1.0.0-6 - backport for remi repo * Wed Oct 31 2012 Joseph Marrero - 1.0.0-6 -- cgit