summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-02-22 17:03:50 +0100
committerRemi Collet <fedora@famillecollet.com>2017-02-22 17:03:50 +0100
commit02aba8acf44c4e72bc21246361ca9936754f11e5 (patch)
tree8ff3790f7ffd2c132f486b0bb410564051e732cc
php-maennchen-zipstream-php; import from Fedora
-rw-r--r--php-maennchen-zipstream-php.spec69
1 files changed, 69 insertions, 0 deletions
diff --git a/php-maennchen-zipstream-php.spec b/php-maennchen-zipstream-php.spec
new file mode 100644
index 0000000..264c445
--- /dev/null
+++ b/php-maennchen-zipstream-php.spec
@@ -0,0 +1,69 @@
+Name: php-maennchen-zipstream-php
+Version: 0.4.1
+Release: 2%{?dist}
+BuildArch: noarch
+
+License: MIT
+Summary: A fast and simple streaming zip file downloader for PHP
+URL: https://github.com/maennchen/ZipStream-PHP
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires: php-composer(fedora/autoloader)
+BuildRequires: php-fedora-autoloader-devel
+BuildRequires: php-zip
+BuildRequires: phpunit
+
+Requires: php(language) >= 5.6.0
+Requires: php-date
+Requires: php-hash
+Requires: php-mbstring
+Requires: php-pcre
+Requires: php-reflection
+Requires: php-spl
+Requires: php-zip
+Requires: php-zlib
+
+Requires: php-composer(fedora/autoloader)
+Provides: php-composer(maennchen/zipstream-php) = %{version}
+
+
+%description
+A fork of pablotron's zip streaming library, a fast and simple streaming
+zip file downloader for PHP.
+
+
+%prep
+%autosetup -n ZipStream-PHP-%{version}
+
+
+%build
+%{_bindir}/phpab --format fedora --output src/autoload.php src
+
+
+%install
+install -d -p -m 0755 %{buildroot}/%{_datadir}/php
+install -d -p -m 0755 %{buildroot}/%{_datadir}/php/ZipStream
+
+cp -ar src/* %{buildroot}/%{_datadir}/php/ZipStream
+
+
+%check
+sed -i "s:require.*:require('%{buildroot}/%{_datadir}/php/ZipStream/autoload.php');:" test/bootstrap.php
+
+phpunit --no-coverage
+
+
+%files
+%license LICENSE.md
+%doc composer.json
+%doc README.md
+%{_datadir}/php/ZipStream
+
+
+%changelog
+* Mon Feb 20 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.4.1-2
+- Use ZipStream instead of maennchen/zipstream-php for the package location.
+- Use --no-coverage on phpunit and drop --bootstrap.
+
+* Sat Feb 18 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.4.1-1
+- Initial release.