summaryrefslogtreecommitdiffstats
path: root/php-pclzip.spec
blob: dac8259bc61f08c3d6bf529e73d7cbb25833aef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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