summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-02-20 10:15:24 +0100
committerRemi Collet <fedora@famillecollet.com>2014-02-20 10:15:24 +0100
commita255ebfcabfd14cde2996fc704ed9e114b0e79dd (patch)
tree4f616ae68c91be69e47ac63cc4e19b5f24c920c3
parentf0b499f74643accc6b8a326d23e02dfbbd006fae (diff)
php-sabredav-Sabre*: revert to 1.7.x (no namespace)HEADmaster
-rw-r--r--php-sabredav-Sabre.patch47
-rw-r--r--php-sabredav-Sabre.spec11
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 autoloader</de
<date>2010-04-28</date>
<time>15:05:53</time>
<version>
- <release>1.0.0</release>
- <api>1.0.0</api>
-+ <release>1.0.1</release>
-+ <api>1.0.1</api>
++ <release>1.0.2</release>
++ <api>1.0.2</api>
</version>
<stability>
<release>stable</release>
-@@ -28,7 +28,7 @@
+@@ -28,7 +28,7 @@ New release. Read the ChangeLog and anno
</notes>
<contents>
<dir name="/">
@@ -34,3 +21,23 @@
<file md5sum="fe15d5f0e285d1f105071b8e7ea97ae1" name="LICENSE" role="doc" />
</dir>
</contents>
+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 <RPMS@FamilleCollet.com> 1.8.5-1
+* Thu Feb 20 2014 Remi Collet <RPMS@FamilleCollet.com> 1.0.2-1
+- update to manage both version (with/without) namespace
+
+* Tue May 7 2013 Remi Collet <RPMS@FamilleCollet.com> 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 <RPMS@FamilleCollet.com> 1.3-3
+* Mon Nov 12 2012 Remi Collet <RPMS@FamilleCollet.com> 1.0.0-6
- backport for remi repo
* Wed Oct 31 2012 Joseph Marrero <jmarrero@fedoraproject.org> - 1.0.0-6