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