diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-06-07 06:58:20 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-06-07 06:58:20 +0200 |
commit | 4dcd933023b7c2ef53afb95197feacf50e7736b6 (patch) | |
tree | 99e2ae0e55c35fbf380f6a23ca7feebd5621017d /php-pclzip.spec |
php-pclzip: import from rawhide
Diffstat (limited to 'php-pclzip.spec')
-rw-r--r-- | php-pclzip.spec | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/php-pclzip.spec b/php-pclzip.spec new file mode 100644 index 0000000..dac8259 --- /dev/null +++ b/php-pclzip.spec @@ -0,0 +1,69 @@ +%global libname pclzip + +Name: php-%{libname} +Version: 2.8.2 +Release: 1%{?dist} +Summary: Compression and extraction functions for Zip formatted archives + +Group: Development/Libraries +License: LGPLv2 +URL: http://www.phpconcept.net/%{libname} +# %%{SOURCE0} gets set to "download.php?file=pclzip-2-8-2.tgz" (for example) +# so need to download the source file manually from +# http://www.phpconcept.net/pclzip/pclzip-downloads +# +# http://www.phpconcept.net/download.php?file=pclzip-VERSION_WTIH_DASHES_INSTEAD_OF_DOTS.tgz +Source0: %{libname}-%(echo "%{version}" | sed 's/\./-/g').tgz + +BuildArch: noarch + +Requires: php(language) +# phpcompatinfo (computed from version 2.8.2) +Requires: php-date +Requires: php-pcre +Requires: php-zlib + +%description +PclZip library offers compression and extraction functions for Zip formatted +archives (WinZip, PKZIP). + +PclZip gives you the ability to manipulate zip formatted archives. You can +create an archive, list the content and extract all its content in the file +system. + +PclZip defines an object class which represent a Zip Archive. This class +manages the archive properties and offers access method and actions on +the archive. + + +%prep +%setup -qc + +# Fix wrong-file-end-of-line-encoding +sed -i 's/\r$//' *.* + + +%build +# Empty build section, nothing required + + +%install +mkdir -p %{buildroot}/%{_datadir}/php/%{libname} +cp -p *.php %{buildroot}/%{_datadir}/php/%{libname}/ + + +%check +# No upstream tests + + +%files +%doc *.txt +%{_datadir}/php/%{libname} + + +%changelog +* Fri Jun 06 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 2.8.2-2 +- Conditional %%{?dist} + +* Thu May 29 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 2.8.2-1 +- Initial package |