]>
Commit | Line | Data |
---|---|---|
05fc2c25 | 1 | %include /usr/lib/rpm/macros.php |
03a89f2c | 2 | %define _class Text |
3 | %define _subclass Huffman | |
05fc2c25 AG |
4 | %define _status beta |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | ||
7 | Summary: %{_pearname} - lossless compression algorithm | |
b046b243 | 8 | Summary(pl.UTF-8): %{_pearname} - bezstratny algorytm kompresji |
05fc2c25 AG |
9 | Name: php-pear-%{_pearname} |
10 | Version: 0.2.0 | |
e8c6a8ce | 11 | Release: 3 |
8b223e0e | 12 | Epoch: 0 |
05fc2c25 AG |
13 | License: LGPL |
14 | Group: Development/Languages/PHP | |
15 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
16 | # Source0-md5: 6a9030e04735db05f7cacf6b14d0254b | |
17 | URL: http://pear.php.net/package/Text_Huffman/ | |
b28a6a80 | 18 | BuildRequires: php-pear-PEAR |
f723e974 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
0604b1a3 | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
cdb55825 | 21 | Requires: php-common >= 3:5.0.0RC1 |
e900d716 | 22 | Requires: php-pear >= 3:5.0.0 |
05fc2c25 AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Huffman compression is a lossless compression algorithm that is ideal | |
28 | for compressing textual data. | |
29 | ||
30 | In PEAR status of this package is: %{_status}. | |
31 | ||
b046b243 | 32 | %description -l pl.UTF-8 |
b136da81 | 33 | Kompresja Huffmana to bezstratny algorytm kompresji idealny do |
05fc2c25 AG |
34 | kompresji danych tekstowych. |
35 | ||
36 | Ta klasa ma w PEAR status: %{_status}. | |
37 | ||
f723e974 ER |
38 | %package tests |
39 | Summary: Tests for PEAR::%{_pearname} | |
b046b243 | 40 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
e083e85f | 41 | Group: Development/Languages/PHP |
f723e974 ER |
42 | Requires: %{name} = %{epoch}:%{version}-%{release} |
43 | AutoReq: no | |
5db27919 | 44 | AutoProv: no |
f723e974 ER |
45 | |
46 | %description tests | |
47 | Tests for PEAR::%{_pearname}. | |
48 | ||
b046b243 | 49 | %description tests -l pl.UTF-8 |
f723e974 ER |
50 | Testy dla PEAR::%{_pearname}. |
51 | ||
05fc2c25 | 52 | %prep |
f723e974 | 53 | %pear_package_setup |
05fc2c25 AG |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
f723e974 ER |
57 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
58 | %pear_package_install | |
05fc2c25 AG |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
f723e974 ER |
65 | %doc install.log |
66 | %{php_pear_dir}/.registry/*.reg | |
05fc2c25 | 67 | %{php_pear_dir}/%{_class}/*.php |
f723e974 ER |
68 | |
69 | %files tests | |
70 | %defattr(644,root,root,755) | |
71 | %{php_pear_dir}/tests/* |