[php-sabredav-Sabre_VObject] - update to 2.1.4 - sources from github - fix upstream URL

Remi Collet remi at fedoraproject.org
Mon May 26 11:27:57 UTC 2014


commit 4edb0629789b9314e1f4d4f469823cf4c4739339
Author: Remi Collet <remi at fedoraproject.org>
Date:   Mon May 26 13:27:01 2014 +0200

    - update to 2.1.4
    - sources from github
    - fix upstream URL

 php-sabredav-Sabre_VObject.spec |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/php-sabredav-Sabre_VObject.spec b/php-sabredav-Sabre_VObject.spec
index dfe748d..a7d456d 100644
--- a/php-sabredav-Sabre_VObject.spec
+++ b/php-sabredav-Sabre_VObject.spec
@@ -1,20 +1,23 @@
 %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global gh_commit   199b6ec87104b05e3013dfd5b90eafbbe4cf97dc
+%global gh_short    %(c=%{gh_commit}; echo ${c:0:7})
+%global gh_owner    fruux
+%global gh_project  sabre-vobject
 %global pear_name   Sabre_VObject
 %global channelname pear.sabredav.org
-%global mainver     1.7.10
-%global reldate     2014-02-09
+%global reldate     2014-05-16
 
 Name:           php-sabredav-Sabre_VObject
-Version:        2.1.3
+Version:        2.1.4
 Release:        1%{?dist}
 Summary:        An intuitive reader for iCalendar and vCard objects
 
 Group:          Development/Libraries
 License:        BSD
-URL:            http://code.google.com/p/sabredav
+URL:            http://sabre.io/
 # https://github.com/fruux/sabre-dav/issues/336
 # Please update PEAR channel
-Source0:        https://github.com/fruux/sabre-dav/releases/download/%{mainver}/SabreDAV-%{mainver}.zip
+Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
 Source1:        %{name}.xml
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -37,14 +40,12 @@ Provides:       php-pear(%{channelname}/%{pear_name}) = %{version}
 SabreDAV VObject plugin.
 
 %prep
-%setup -q -n SabreDAV
+%setup -q -n %{gh_project}-%{gh_commit}
 
 sed -e 's/@VERSION@/%{version}/' \
     -e 's/@RELDATE@/%{reldate}/' \
     %{SOURCE1} >%{name}.xml
-mv vendor/sabre/vobject/lib/Sabre Sabre
-mv vendor/sabre/vobject/LICENSE .
-mv vendor/sabre/vobject/ChangeLog .
+mv lib/Sabre Sabre
 
 # Check version
 extver=$(sed -n "/VERSION/{s/.* '//;s/'.*$//;p}" Sabre/VObject/Version.php)
@@ -57,11 +58,16 @@ fi
 touch error.lst
 for fic in $(find Sabre/VObject -type f)
 do
-  grep $fic %{name}.xml || echo $fic >> error.lst
+  grep $fic %{name}.xml || echo -$fic >> error.lst
+done
+
+for fic in $(grep '<file' %{name}.xml | sed -e 's/.*name="//' -e 's/".*//')
+do
+  [ -f $fic ] || echo +$fic >> error.lst
 done
 
 if [ -s error.lst ]; then
-  : Missing in %{name}.xml
+  : Error in %{name}.xml
   cat error.lst
   exit 1
 fi
@@ -101,6 +107,11 @@ fi
 
 
 %changelog
+* Thu May 22 2014 Remi Collet <remi at fedoraproject.org> 2.1.4-1
+- update to 2.1.4
+- sources from github
+- fix upstream URL
+
 * Wed Feb 12 2014 Joseph Marrero <jmarrero at fedoraproject.org> 2.1.3-1
 - update to 2.1.3
 * Tue Sep 03 2013 Joseph Marrero <jmarrero at fedoraproject.org> 2.1.0-1


More information about the scm-commits mailing list