[php-opencloud] import php-opencloud

brummbq brummbq at fedoraproject.org
Thu Jan 30 09:35:17 UTC 2014


commit e73c8ed243a027e5ed399104e655491fa1044564
Author: Gregor Tätzner <gregor at freenet.de>
Date:   Thu Jan 30 10:35:16 2014 +0100

    import php-opencloud

 .gitignore         |    1 +
 php-opencloud.spec |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a59b1f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/php-opencloud-1.6.0-7be280f.tar.gz
diff --git a/php-opencloud.spec b/php-opencloud.spec
new file mode 100644
index 0000000..a7ed244
--- /dev/null
+++ b/php-opencloud.spec
@@ -0,0 +1,81 @@
+%global vendor OpenCloud
+%global commit 7be280fde422651d0966c70b07f6477b37dd4270
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name:           php-opencloud
+Version:        1.6.0
+Release:        4%{?dist}
+Summary:        PHP SDK for OpenStack/Rackspace APIs
+
+License:        ASL 2.0 
+URL:            http://php-opencloud.com/
+Source0:        https://github.com/rackspace/php-opencloud/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+
+BuildRequires:  php-phpunit-PHPUnit
+
+Requires:       php-spl php-curl php-date php-fileinfo php-hash php-json
+Requires:       php-pcre
+
+BuildArch:      noarch
+
+Obsoletes:      php-cloudfiles
+
+
+%description
+The PHP SDK should work with most OpenStack-based cloud deployments, though it
+specifically targets the Rackspace public cloud. In general, whenever a
+Rackspace deployment is substantially different than a pure OpenStack one, a
+separate Rackspace subclass is provided so that you can still use the SDK with
+a pure OpenStack instance (for example, see the OpenStack class (for OpenStack)
+and the Rackspace subclass).
+
+%package doc
+Summary:       Documentation for OpenStack/Rackspace APIs PHP SDK
+
+%description doc
+%{summary}
+
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+# EOL encoding
+sed -i 's/\r$//' docs/api/css/jquery.treeview.css
+
+
+%build
+# nothing to build
+
+
+%install
+INSTALL_DIR=%{buildroot}%{_datadir}/php
+mkdir -p $INSTALL_DIR
+cp -a lib/%{vendor} $INSTALL_DIR
+
+
+%check
+phpunit -d date.timezone=UTC .
+
+
+%files
+%doc LICENSE README.md TODO.md composer.json CONTRIBUTORS.md TODO.md
+%{_datadir}/php/%{vendor}
+
+%files doc
+%doc samples docs
+
+
+%changelog
+* Thu Jan 30 2014 Gregor Tätzner <brummbq at fedoraproject.org> - 1.6.0-4
+- obsolete php-cloudfiles
+
+* Sat Jan 25 2014 Gregor Tätzner <brummbq at fedoraproject.org> - 1.6.0-3
+- use commit revision in source url
+
+* Fri Jan 03 2014 Gregor Tätzner <brummbq at fedoraproject.org> - 1.6.0-2
+- move lib to psr-0 compliant location
+- drop autoloader
+
+* Tue Dec 31 2013 Gregor Tätzner <brummbq at fedoraproject.org> - 1.6.0-1
+- initial packaging
+
diff --git a/sources b/sources
index e69de29..85f9776 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f2bbc17897a95c67cf50a1c9547da7f5  php-opencloud-1.6.0-7be280f.tar.gz


More information about the scm-commits mailing list