summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-11-12 11:03:08 +0100
committerRemi Collet <fedora@famillecollet.com>2012-11-12 11:03:08 +0100
commit4514dc037aeb056161f883deb44be99d82bcf968 (patch)
tree7abbabf43d9c197886784d740249cb5893809021
php-sabredav-Sabre_CardDAV: import from rawhide
-rw-r--r--php-sabredav-Sabre_CardDAV.spec87
1 files changed, 87 insertions, 0 deletions
diff --git a/php-sabredav-Sabre_CardDAV.spec b/php-sabredav-Sabre_CardDAV.spec
new file mode 100644
index 0000000..523cb45
--- /dev/null
+++ b/php-sabredav-Sabre_CardDAV.spec
@@ -0,0 +1,87 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name %(echo %{name} | sed -e 's/^php-sabredav-//' -e 's/-/_/g')
+%global channelname pear.sabredav.org
+
+Name: php-sabredav-Sabre_CardDAV
+Version: 1.6.5
+Release: 2%{?dist}
+Summary: Provides CardDAV support to Sabre_DAV
+
+License: BSD
+URL: http://code.google.com/p/sabredav
+Source0: http://pear.sabredav.org/get/%{pear_name}-%{version}.tgz
+
+BuildArch: noarch
+BuildRequires: php-pear(PEAR)
+BuildRequires: php-channel(%{channelname})
+
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+
+Requires: php-common >= 5.1
+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)
+
+Provides: php-pear(%{pear_name}) = %{version}
+Provides: php-pear(%{channelname}/%{pear_name}) = %{version}
+
+%description
+CardDAV plugin for Sabre, Adds support for CardDAV in Sabre_DAV.
+
+%prep
+%setup -q -c
+[ -f package2.xml ] || mv package.xml package2.xml
+mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
+
+%build
+# Empty build section, most likely nothing required.
+
+
+%install
+cd %{pear_name}-%{version}
+%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
+
+# Clean up unnecessary files
+rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+
+# Install XML package description
+mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
+install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+
+
+%post
+%{__pear} install --nodeps --soft --force --register-only \
+ %{pear_xmldir}/%{pear_name}.xml >/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ %{__pear} uninstall --nodeps --ignore-errors --register-only \
+ %{pear_name} >/dev/null || :
+fi
+
+
+%files
+%doc %{pear_docdir}/%{pear_name}
+%{pear_xmldir}/%{pear_name}.xml
+%{pear_phpdir}/Sabre/CardDAV
+
+
+%changelog
+* Wed Oct 31 2012 Joseph Marrero <jmarrero@fedoraproject.org> 1.6.5-2
+- added required deps pointed out by phpci
+* Tue Oct 23 2012 Joseph Marrero <jmarrero@fedoraproject.org> 1.6.5-1
+- update to latest version
+- remove uncesary changes of directory
+- change define to global
+- fix documentation directory
+- Fix description
+* Thu Aug 30 2012 Felix Kaechele <heffer@fedoraproject.org> - 1.6.3-1
+- update
+* Fri Apr 06 2012 Felix Kaechele <heffer@fedoraproject.org> - 1.6.1-1
+- initial package