diff options
-rw-r--r-- | php-sabredav-Sabre_CalDAV.spec | 65 | ||||
-rw-r--r-- | php-sabredav-Sabre_CalDAV.xml | 122 |
2 files changed, 169 insertions, 18 deletions
diff --git a/php-sabredav-Sabre_CalDAV.spec b/php-sabredav-Sabre_CalDAV.spec index af8e5db..5dfef6d 100644 --- a/php-sabredav-Sabre_CalDAV.spec +++ b/php-sabredav-Sabre_CalDAV.spec @@ -1,16 +1,20 @@ %{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} -%global pear_name %(echo %{name} | sed -e 's/^php-sabredav-//' -e 's/-/_/g') +%global pear_name Sabre_CalDAV %global channelname pear.sabredav.org +%global mainver 1.8.5 Name: php-sabredav-Sabre_CalDAV -Version: 1.6.4 -Release: 3%{?dist} +Version: 1.8.3 +Release: 1%{?dist} Summary: Provides RFC4791 (CalDAV) support to Sabre_DAV Group: Development/Libraries License: BSD URL: http://code.google.com/p/sabredav -Source0: http://pear.sabredav.org/get/%{pear_name}-%{version}.tgz +# https://github.com/fruux/sabre-dav/issues/336 +# Please update PEAR channel +Source0: http://sabredav.googlecode.com/files/SabreDAV-%{mainver}.zip +Source1: %{name}.xml BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -24,10 +28,10 @@ Requires: php-pdo Requires: php-xml Requires: php-pear(PEAR) Requires: php-channel(%{channelname}) -Requires: php-pear(%{channelname}/Sabre) -Requires: php-pear(%{channelname}/Sabre_DAV) -Requires: php-pear(%{channelname}/Sabre_DAVACL) -Requires: php-pear(%{channelname}/Sabre_VObject) +Requires: php-pear(%{channelname}/Sabre) >= 1.0.1 +Requires: php-pear(%{channelname}/Sabre_DAV) >= 1.8.5 +Requires: php-pear(%{channelname}/Sabre_DAVACL) >= 1.8.4 +Requires: php-pear(%{channelname}/Sabre_VObject) >= 2.0.7 Provides: php-pear(%{pear_name}) = %{version} Provides: php-pear(%{channelname}/%{pear_name}) = %{version} @@ -36,29 +40,50 @@ Provides: php-pear(%{channelname}/%{pear_name}) = %{version} CalDAV plugin for Sabre, Adds support for CalDAV in Sabre_DAV. %prep -%setup -q -c -[ -f package2.xml ] || mv package.xml package2.xml -mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml +%setup -q -n SabreDAV + +cp %{SOURCE1} . +mv lib/Sabre Sabre + +# Check version +extver=$(sed -n "/VERSION/{s/.* '//;s/'.*$//;p}" Sabre/CalDAV/Version.php) +if test "x${extver}" != "x%{version}"; then + : Error: Upstream version is ${extver}, expecting %{version}. + exit 1 +fi + +# Check files +touch error.lst +for fic in $(find Sabre/CalDAV -type f) +do + grep $fic %{name}.xml || echo $fic >> error.lst +done + +if [ -s error.lst ]; then + : Missing in %{name}.xml + cat error.lst + exit 1 +fi + %build # Empty build section, most likely nothing required. %install -cd %{pear_name}-%{version} -%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml +%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml # Clean up unnecessary files -rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??* +rm -rf %{buildroot}%{pear_metadir}/.??* # Install XML package description -mkdir -p $RPM_BUILD_ROOT%{pear_xmldir} -install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir} +mkdir -p %{buildroot}%{pear_xmldir} +install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} %post %{__pear} install --nodeps --soft --force --register-only \ - %{pear_xmldir}/%{pear_name}.xml >/dev/null || : + %{pear_xmldir}/%{name}.xml >/dev/null || : %postun if [ $1 -eq 0 ] ; then @@ -70,11 +95,15 @@ fi %files %defattr(-,root,root,-) %doc %{pear_docdir}/%{pear_name} -%{pear_xmldir}/%{pear_name}.xml +%{pear_xmldir}/%{name}.xml %{pear_phpdir}/Sabre/CalDAV %changelog +* Tue May 7 2013 Remi Collet <RPMS@FamilleCollet.com> 1.8.3-1 +- update to 1.8.3 + use our own package.xml as upstream doesn't use pear anymore + * Mon Nov 12 2012 Remi Collet <RPMS@FamilleCollet.com> 1.6.4-3 - backport for remi repo diff --git a/php-sabredav-Sabre_CalDAV.xml b/php-sabredav-Sabre_CalDAV.xml new file mode 100644 index 0000000..e7db793 --- /dev/null +++ b/php-sabredav-Sabre_CalDAV.xml @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0"> + <name>Sabre_CalDAV</name> + <channel>pear.sabredav.org</channel> + <summary>Sabre_CalDAV provides CalDAV extensions to SabreDAV</summary> + <description>Sabre_CalDAV provides RFC4791 (CalDAV) support to Sabre_DAV. + +Feature list: +* Multi-user Calendar Server +* Support for Apple iCal, Evolution, Sunbird, Lightning</description> + <lead> + <name>Evert Pot</name> + <user>Evert Pot</user> + <email>evert@rooftopsolutions.nl</email> + <active>true</active> + </lead> + <date>2012-08-02</date> + <time>17:13:34</time> + <version> + <release>1.8.3</release> + <api>1.8.3</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <license uri="http://code.google.com/p/sabredav/wiki/License">Modified BSD</license> + <notes> +New release. Read the ChangeLog and announcement for more details + </notes> + <contents> + <dir name="/"> + <file name="Sabre/CalDAV/Backend/PDO.php" role="php" /> + <file name="Sabre/CalDAV/Principal/Collection.php" role="php" /> + <file name="Sabre/CalDAV/Principal/ProxyRead.php" role="php" /> + <file name="Sabre/CalDAV/Principal/ProxyWrite.php" role="php" /> + <file name="Sabre/CalDAV/Principal/User.php" role="php" /> + <file name="Sabre/CalDAV/Property/SupportedCalendarComponentSet.php" role="php" /> + <file name="Sabre/CalDAV/Property/SupportedCalendarData.php" role="php" /> + <file name="Sabre/CalDAV/Property/SupportedCollationSet.php" role="php" /> + <file name="Sabre/CalDAV/Schedule/IMip.php" role="php" /> + <file name="Sabre/CalDAV/Schedule/IOutbox.php" role="php" /> + <file name="Sabre/CalDAV/Schedule/Outbox.php" role="php" /> + <file name="Sabre/CalDAV/Calendar.php" role="php" /> + <file name="Sabre/CalDAV/CalendarObject.php" role="php" /> + <file name="Sabre/CalDAV/CalendarQueryParser.php" role="php" /> + <file name="Sabre/CalDAV/CalendarQueryValidator.php" role="php" /> + <file name="Sabre/CalDAV/CalendarRootNode.php" role="php" /> + <file name="Sabre/CalDAV/ICSExportPlugin.php" role="php" /> + <file name="Sabre/CalDAV/ICalendar.php" role="php" /> + <file name="Sabre/CalDAV/ICalendarObject.php" role="php" /> + <file name="Sabre/CalDAV/Plugin.php" role="php" /> + <file name="Sabre/CalDAV/UserCalendars.php" role="php" /> + <file name="Sabre/CalDAV/Version.php" role="php" /> + <file name="examples/sql/mysql.calendars.sql" role="doc" /> + <file name="examples/sql/pgsql.calendars.sql" role="doc" /> + <file name="examples/sql/sqlite.calendars.sql" role="doc" /> + <file name="examples/calendarserver.php" role="doc" /> + <file name="ChangeLog" role="doc" /> + <file name="LICENSE" role="doc" /> + <file name="Sabre/CalDAV/SharingPlugin.php" role="doc" /> + <file name="Sabre/CalDAV/SharedCalendar.php" role="doc" /> + <file name="Sabre/CalDAV/ShareableCalendar.php" role="doc" /> + <file name="Sabre/CalDAV/Property/ScheduleCalendarTransp.php" role="doc" /> + <file name="Sabre/CalDAV/Property/Invite.php" role="doc" /> + <file name="Sabre/CalDAV/Property/AllowedSharingModes.php" role="doc" /> + <file name="Sabre/CalDAV/Principal/IProxyWrite.php" role="doc" /> + <file name="Sabre/CalDAV/Principal/IProxyRead.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/Notification/SystemStatus.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/Notification/InviteReply.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/Notification/Invite.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/Node.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/INotificationType.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/INode.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/ICollection.php" role="doc" /> + <file name="Sabre/CalDAV/Notifications/Collection.php" role="doc" /> + <file name="Sabre/CalDAV/ISharedCalendar.php" role="doc" /> + <file name="Sabre/CalDAV/IShareableCalendar.php" role="doc" /> + <file name="Sabre/CalDAV/Exception/InvalidComponentType.php" role="doc" /> + <file name="Sabre/CalDAV/Backend/SharingSupport.php" role="doc" /> + <file name="Sabre/CalDAV/Backend/NotificationSupport.php" role="doc" /> + <file name="Sabre/CalDAV/Backend/BackendInterface.php" role="doc" /> + <file name="Sabre/CalDAV/Backend/AbstractBackend.php" role="doc" /> + </dir> + </contents> + <dependencies> + <required> + <php> + <min>5.3.1</min> + </php> + <pearinstaller> + <min>1.9</min> + </pearinstaller> + <package> + <name>Sabre</name> + <channel>pear.sabredav.org</channel> + <min>1.0.0</min> + </package> + <package> + <name>Sabre_HTTP</name> + <channel>pear.sabredav.org</channel> + <min>1.6.0</min> + </package> + <package> + <name>Sabre_DAV</name> + <channel>pear.sabredav.org</channel> + <min>1.6.0</min> + </package> + <package> + <name>Sabre_DAVACL</name> + <channel>pear.sabredav.org</channel> + <min>1.6.0</min> + </package> + <package> + <name>Sabre_VObject</name> + <channel>pear.sabredav.org</channel> + <min>1.3.0</min> + </package> + </required> + </dependencies> + <phprelease /> +</package> |