[php-dropbox-php-Dropbox] Initial import

brummbq brummbq at fedoraproject.org
Sat Mar 9 08:06:56 UTC 2013


commit ac31c1b414a9623be9cc1247d84df3c42a76b98f
Author: Gregor Tätzner <gregor at freenet.de>
Date:   Sat Mar 9 09:06:48 2013 +0100

    Initial import

 .gitignore                   |    1 +
 php-dropbox-php-Dropbox.spec |   94 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f474634 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Dropbox-1.0.0.tgz
diff --git a/php-dropbox-php-Dropbox.spec b/php-dropbox-php-Dropbox.spec
new file mode 100644
index 0000000..aa31e8a
--- /dev/null
+++ b/php-dropbox-php-Dropbox.spec
@@ -0,0 +1,94 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
+%global pear_name %(echo %{name} | sed -e 's/^php-dropbox-php-//' -e 's/-/_/g')
+%global channelname pear.dropbox-php.com
+
+Name:           php-dropbox-php-Dropbox
+Version:        1.0.0
+Release:        4%{?dist}
+Summary:        Library for integrating dropbox with PHP
+
+License:        MIT
+URL:            http://www.dropbox-php.com/
+Source0:        http://%{channelname}/get/%{pear_name}-%{version}.tgz
+
+BuildArch:      noarch
+
+BuildRequires:  php-pear(PEAR)
+BuildRequires:  php-channel(%{channelname})
+
+Requires:       php-pear(PEAR)
+Requires:       php-channel(%{channelname})
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+
+Requires:       php-spl php-curl php-date php-hash
+Requires:       php-json php-pcre
+
+Requires:       php-pear(HTTP_OAuth)
+Requires:       php-pecl(oauth)
+
+Provides:       php-pear(%{channelname}/%{pear_name}) = %{version}
+
+%description
+This PHP library allows you to easily integrate dropbox with PHP.
+The library makes use of OAuth.
+
+Optional Dependencies:
+Zend framework: Zend_{Oauth,Json,Uri} for OAuth/Zend back-end
+Wordpress: WP_Http for OAuth/Wordpress back-end
+
+
+%prep
+%setup -q -c
+
+mv package.xml %{pear_name}-%{version}/%{name}.xml
+
+
+%build
+
+
+%install
+cd %{pear_name}-%{version}
+rm -rf %{buildroot} docdir
+%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
+
+# Clean up unnecessary files
+rm -rf %{buildroot}%{pear_metadir}/.??*
+
+# Install XML package description
+mkdir -p %{buildroot}%{pear_xmldir}
+install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
+
+
+%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 \
+        %{channelname}/%{pear_name} >/dev/null || :
+fi
+
+
+%files
+%doc %{pear_docdir}/%{pear_name}
+%{pear_xmldir}/%{name}.xml
+%{pear_phpdir}/%{pear_name}
+
+
+%changelog
+* Thu Mar 07 2013 Gregor Tätzner <brummbq at fedoraproject.org> - 1.0.0-4
+- require php-pecl(oauth) instead of php-oauth
+- add note about optional dep to wordpress and zend
+
+* Wed Mar 06 2013 Gregor Tätzner <brummbq at fedoraproject.org> - 1.0.0-3
+- require HTTP_OAuth
+- get source from pear host http://pear.dropbox-php.com
+
+* Wed Feb 27 2013 Gregor Tätzner <brummbq at fedoraproject.org> - 1.0.0-2
+- rename to php-dropbox-php-Dropbox
+
+* Tue Feb 19 2013 Gregor Tätzner <brummbq at fedoraproject.org> - 1.0.0-1
+- Initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..475c377 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b67ae1c71d6bc298308913900f62b470  Dropbox-1.0.0.tgz


More information about the scm-commits mailing list