]>
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} | |
9 | Version: 0.1.0 | |
10 | Release: 1 | |
11 | License: BSD | |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
14 | # Source0-md5: de91b8f00f732c8a7bc993e5d423abb1 | |
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 | |
19 | Requires: php-pear-HTML_Common2 >= 0.3.0 | |
20 | Requires: php-pear-PEAR >= 1.4.3 | |
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 | |
40 | AutoReq: no | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | AutoProv: no | |
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 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
56 | %pear_package_install | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %if 0 | |
62 | %post | |
63 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
64 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
65 | fi | |
66 | %endif | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc install.log docs/HTML_QuickForm2/docs/examples | |
71 | %{php_pear_dir}/.registry/*.reg | |
72 | %{php_pear_dir}/QuickForm2 | |
73 | %{php_pear_dir}/QuickForm2.php | |
74 | ||
75 | %files tests | |
76 | %defattr(644,root,root,755) | |
77 | %{php_pear_dir}/tests/HTML_QuickForm2 |