diff --git a/.gitignore b/.gitignore index e69de29..4be2b63 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/zipstream-php-0.2.2.tar.gz diff --git a/php-zipstream.spec b/php-zipstream.spec new file mode 100644 index 0000000..7d7d22b --- /dev/null +++ b/php-zipstream.spec @@ -0,0 +1,49 @@ +%global shortname zipstream + +Name: php-zipstream +Version: 0.2.2 +Release: 1%{?dist} +Summary: Streaming dynamic zip from PHP without writing to the disk + +Group: Development/Libraries +License: MIT +URL: http://pablotron.org/software/zipstream-php/ +Source0: http://pablotron.org/files/%{shortname}-php-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: php-common >= 5.1.2 + + +%description +ZipStream is a library for dynamically streaming dynamic zip files from PHP +without writing to the disk at all on the server. + + +%prep +%setup -qn %{shortname}-php-%{version} + + +%build +# empty build section, nothing required + + +%install +rm -rf %{buildroot} +install -d %{buildroot}%{_datadir}/php/%{shortname} +cp -a *.php %{buildroot}%{_datadir}/php/%{shortname} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc COPYING extras README +%{_datadir}/php/%{shortname} + + +%changelog +* Sat Jun 25 2011 Guillaume Kulakowski - 0.2.2-1 +- Initial packaging diff --git a/sources b/sources index e69de29..70fc24f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ef9de52d725c642f13e27a6c975d0774 zipstream-php-0.2.2.tar.gz