%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} %global pear_name Webdav %global channel components.ez.no Name: php-ezc-Webdav Version: 1.1.4 Release: 1%{?dist} Summary: Set up and run your own WebDAV server Group: Development/Libraries License: BSD URL: http://ezcomponents.org/ Source0: http://components.ez.no/get/%{pear_name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-pear >= 1:1.4.9-1.2 BuildRequires: php-channel(%{channel}) Requires: php-common >= 5.2.1 Requires: php-xml Requires: php-pecl-Fileinfo Requires: php-pear(%{channel}/Base) >= 1.8 Requires(post): %{__pear} Requires(postun): %{__pear} Provides: php-pear(%{channel}/%{pear_name}) = %{version} %description The Webdav component enables you to easily set up a WebDAV-enabled HTTP server. Users can then create and edit site content by uploading and downloading files to and from their desktop. The current implementation is compatible with RFC 2518 and realizes most parts of the changes defined in RFC 4918. It also supports clients that do not conform to the standard and provides an interface to support these clients. The component is intended to support you by providing access to your data through the HTTP 1.1 protocol. The data can be stored in the file system, or any other custom data storage. It is then served as a virtual directory tree to the user. %prep %setup -q -c [ -f package2.xml ] || %{__mv} package.xml package2.xml %{__mv} package2.xml %{pear_name}-%{version}/%{name}.xml cd %{pear_name}-%{version} %build cd %{pear_name}-%{version} # Empty build section, most likely nothing required. %install cd %{pear_name}-%{version} %{__rm} -rf %{buildroot} docdir %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml # Move documentation %{__mv} %{buildroot}%{pear_docdir}/%{pear_name}/docs ./docdir %{__rm} -rf %{buildroot}%{pear_docdir} # Clean up unnecessary files %{__rm} -rf %{buildroot}%{pear_phpdir}/.??* # Install XML package description %{__mkdir} -p %{buildroot}%{pear_xmldir} %{__install} -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} %clean %{__rm} -rf %{buildroot} %post %{__pear} install --nodeps --soft --force --register-only \ %{pear_xmldir}/%{name}.xml >/dev/null || : %postun if [ $1 -eq 0 ] ; then %{__pear} uninstall --nodeps --ignore-errors --register-only \ %{channel}/%{pear_name} >/dev/null || : fi %files %defattr(-,root,root,-) %doc %{pear_name}-%{version}/docdir/* %{pear_xmldir}/%{name}.xml %{pear_phpdir}/data/%{pear_name} %{pear_phpdir}/ezc/%{pear_name} %{pear_phpdir}/ezc/autoload/webdav_autoload.php %changelog * Wed Mar 30 2010 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.1.4-1 - Update to 1.1.4 * Thu Nov 26 2009 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.1.3-1 - Update to 1.1.3 * Mon Oct 12 2009 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.1.2-1 - Update to 1.1.2 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jul 01 2009 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.1.1-1 - Update to 1.1.1 * Sun Jun 14 2009 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.1-2 - php-pecl-Fileinfo is now required * Sat May 02 2009 Guillaume Kulakowski <guillaume DOT kulakowski AT fedoraproject DOT org> - 1.1-1 - Initial packaging