summaryrefslogtreecommitdiffstats
path: root/php-opencloud.spec
blob: a7ed2446dda66c50fed32df2ae0c67f085388287 (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
%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@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