]>
Commit | Line | Data |
---|---|---|
4f15d3c1 | 1 | %include /usr/lib/rpm/macros.php |
4f15d3c1 AG |
2 | %define _status alpha |
3 | %define _pearname HTML_QuickForm2 | |
4 | Summary: %{_pearname} - PHP5 rewrite of HTML_QuickForm package | |
5 | Summary(pl.UTF-8): %{_pearname} - przepisany do PHP5 pakiet HTML_QuickForm | |
6 | Name: php-pear-%{_pearname} | |
3a0459f1 | 7 | Version: 0.4.0 |
034361b9 | 8 | Release: 2 |
4f15d3c1 AG |
9 | License: BSD |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
3a0459f1 | 12 | # Source0-md5: 4060974d226f7024a7231079b6c124c5 |
4f15d3c1 AG |
13 | URL: http://pear.php.net/package/HTML_QuickForm2/ |
14 | BuildRequires: php-pear-PEAR | |
034361b9 | 15 | BuildRequires: php-pear-PEAR >= 1:1.5.4 |
4f15d3c1 AG |
16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
17 | Requires: php-pear | |
3a0459f1 | 18 | Requires: php-pear-HTML_Common2 >= 2.0.0-0.beta1 |
4f15d3c1 AG |
19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | The package is expected to offer at least the same functionality as | |
24 | HTML_QuickForm and work with PHP5 E_STRICT setting. | |
25 | ||
26 | In PEAR status of this package is: %{_status}. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Pakiet ten w zamierzeniu ma dostarczyć taką samą funkcjonalność jak | |
30 | pakiet HTML_QuickForm oraz działać z ustawieniem E_STRICT PHP5. | |
31 | ||
32 | a klasa ma w PEAR status: %{_status}. | |
33 | ||
34 | %package tests | |
35 | Summary: Tests for PEAR::%{_pearname} | |
36 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
37 | Group: Development/Languages/PHP | |
4f15d3c1 AG |
38 | Requires: %{name} = %{version}-%{release} |
39 | AutoProv: no | |
3a0459f1 | 40 | AutoReq: no |
4f15d3c1 AG |
41 | |
42 | %description tests | |
43 | Tests for PEAR::%{_pearname}. | |
44 | ||
45 | %description tests -l pl.UTF-8 | |
46 | Testy dla PEAR::%{_pearname}. | |
47 | ||
48 | %prep | |
49 | %pear_package_setup | |
50 | ||
3a0459f1 ER |
51 | mv docs/HTML_QuickForm2/examples . |
52 | ||
4f15d3c1 AG |
53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
56 | %pear_package_install | |
57 | ||
3a0459f1 ER |
58 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
59 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
60 | ||
4f15d3c1 AG |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
4f15d3c1 AG |
64 | %files |
65 | %defattr(644,root,root,755) | |
3a0459f1 | 66 | %doc install.log |
4f15d3c1 | 67 | %{php_pear_dir}/.registry/*.reg |
015c31a4 AG |
68 | %{php_pear_dir}/HTML/QuickForm2 |
69 | %{php_pear_dir}/HTML/QuickForm2.php | |
4f15d3c1 | 70 | |
3a0459f1 ER |
71 | %{php_pear_dir}/data/%{_pearname} |
72 | ||
73 | %{_examplesdir}/%{name}-%{version} | |
74 | ||
4f15d3c1 AG |
75 | %files tests |
76 | %defattr(644,root,root,755) | |
77 | %{php_pear_dir}/tests/HTML_QuickForm2 |