From 7244326951546ac846bf76b997103a5eba6f18f0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 25 Nov 2012 11:58:41 +0100 Subject: php-cloudfiles: import from rawhide --- php-cloudfiles.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 php-cloudfiles.spec diff --git a/php-cloudfiles.spec b/php-cloudfiles.spec new file mode 100644 index 0000000..e4f7a0d --- /dev/null +++ b/php-cloudfiles.spec @@ -0,0 +1,68 @@ +%global commit 930eb8d + +Name: php-cloudfiles +Version: 1.7.11 +Release: 2%{?dist} +Summary: PHP API for the Cloud Files storage system + +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 + + +Requires: php-curl, php-date, php-fileinfo, php-hash, php-json +Requires: php-mbstring, php-pcre, php-spl + +BuildArch: noarch + +%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} + +%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 +%doc README COPYING Changelog AUTHORS +%{_datadir}/php/%{name} + + +%files devel-doc +%{_docdir}/%{name}-devel-%{version}-%{release} + + +%changelog +* Tue Oct 02 2012 Gregor Tätzner - 1.7.11-2 +- added all needed php extensions to Requires + +* Sun Sep 23 2012 Gregor Tätzner - 1.7.11-1 +- Initial packaging + -- cgit