blob: eb8261ab140094a55aa6039a7fdd86bcb44fa6b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
%global vendor OpenCloud
%global commit 7be280fde422651d0966c70b07f6477b37dd4270
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: php-opencloud
Version: 1.6.0
Release: 5%{?dist}
Summary: PHP SDK for OpenStack/Rackspace APIs
Group: Development/Libraries
License: ASL 2.0
URL: http://php-opencloud.com/
Source0: https://github.com/rackspace/php-opencloud/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
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
Group: Development/Libraries
%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
rm -rf %{buildroot}
INSTALL_DIR=%{buildroot}%{_datadir}/php
mkdir -p $INSTALL_DIR
cp -a lib/%{vendor} $INSTALL_DIR
%clean
rm -rf %{buildroot}
%check
phpunit -d date.timezone=UTC .
%files
%defattr(-,root,root,-)
%doc LICENSE README.md TODO.md composer.json CONTRIBUTORS.md TODO.md
%{_datadir}/php/%{vendor}
%files doc
%doc samples docs
%changelog
* Thu Jul 31 2014 Remi Collet <rpms@famillecollet.com> - 1.6.0-5
- don't obsolete php-cloudfiles
* Thu Jan 30 2014 Remi Collet <rpms@famillecollet.com> - 1.6.0-4
- backport 1.6.0 for remi repo
* Thu Jan 30 2014 Gregor Tätzner <brummbq@fedoraproject.org> - 1.6.0-4
- obsolete php-cloudfiles
* Sat Jan 25 2014 Gregor Tätzner <brummbq@fedoraproject.org> - 1.6.0-3
- use commit revision in source url
* Fri Jan 03 2014 Gregor Tätzner <brummbq@fedoraproject.org> - 1.6.0-2
- move lib to psr-0 compliant location
- drop autoloader
* Tue Dec 31 2013 Gregor Tätzner <brummbq@fedoraproject.org> - 1.6.0-1
- initial packaging
|