summaryrefslogtreecommitdiffstats
path: root/php-cloudfiles.spec
blob: 166c003d71b864bd465ab3aff0174e54f1728b31 (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
%global commit   930eb8d

Name:         php-cloudfiles
Version:      1.7.11
Release:      2%{?dist}
Summary:      PHP API for the Cloud Files storage system
Group:        Development/Libraries

License:      MIT
URL:          https://github.com/rackspace/php-cloudfiles
Source0:      https://github.com/rackspace/php-cloudfiles/tarball/v1.7.11/rackspace-%{name}-v%{version}-0-g%{commit}.tar.gz

BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:   noarch

Requires:    php-curl, php-date, php-fileinfo, php-hash, php-json
Requires:    php-mbstring, php-pcre, php-spl


%description
PHP bindings for the Rackspace Cloud Files RESTful API. Features:

  * Enable your application to upload files programmatically
  * Enable Cloud Files CDN integration on any container for public distribution
  * Create Containers programmatically
  * Retrieve lists of containers and files


%package devel-doc
Summary:      Development documentation for %{name}
Group:        Development/Libraries

%description devel-doc
%{summary}.


%prep
%setup -q -n rackspace-%{name}-%{commit}

# all lines should be \n terminated
find . -type f -exec sed -i -e 's/[\r\t ]*$//' '{}' ';'


%build
# Nothing to build


%install
mkdir -p %{buildroot}%{_datadir}/php/%{name}
install -pm 644 cloudfiles*.php %{buildroot}%{_datadir}/php/%{name}

mkdir -p %{buildroot}%{_docdir}/%{name}-devel-%{version}-%{release}
cp -a docs %{buildroot}%{_docdir}/%{name}-devel-%{version}-%{release}


%files
%defattr(-,root,root,-)
%doc README COPYING Changelog AUTHORS
%{_datadir}/php/%{name}


%files devel-doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-devel-%{version}-%{release}


%changelog
* Sun Nov 25 2012 Remi Collet <RPMS@famillecollet.com> - 1.7.11-2
- backport 1.7.11 for remi repo

* Tue Oct 02 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 1.7.11-2
- added all needed php extensions to Requires

* Sun Sep 23 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 1.7.11-1
- Initial packaging