%global gitver 930eb8d Name: php-cloudfiles Version: 1.7.11 Release: 1%{?dist} Summary: Rackspace Cloud Files PHP API License: MIT # get it from https://github.com/rackspace/php-cloudfiles/tarball/v1.7.11 URL: https://github.com/rackspace/php-cloudfiles Source0: rackspace-%{name}-v%{version}-0-g%{gitver}.tar.gz Requires: php BuildArch: noarch %description The Rackspace Cloud Files™ is an affordable, redundant, scalable, and dynamic storage service offering. The core storage system is designed to provide a safe, secure, automatically re-sizing and network accessible way to store data. You can store an unlimited quantity of files and each one can be as large as 5 gigabytes. Users can store as much as they want and pay only for storage space they actually use. . This is the official API for PHP. %prep %setup -q -n rackspace-%{name}-%{gitver} %build # Nothing to build %install rm -rf $RPM_BUILD_ROOT install -dm 755 $RPM_BUILD_ROOT%{_datadir}/php dos2unix docs/media/style.css cp -p cloudfiles.php cloudfiles_exceptions.php cloudfiles_http.php \ $RPM_BUILD_ROOT%{_datadir}/php %files %doc docs/* %doc AUTHORS Changelog COPYING README %{_datadir}/php/cloudfiles.php %{_datadir}/php/cloudfiles_exceptions.php %{_datadir}/php/cloudfiles_http.php %changelog * Sun Jun 03 2012 Felix Kaechele - 1.7.11-1 - initial package