]>
Commit | Line | Data |
---|---|---|
cf545280 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Validate | |
3 | %define _subclass CA | |
4 | %define _status alpha | |
5 | %define _pearname Validate_CA | |
cf545280 | 6 | Summary: %{_pearname} - Validation class for Canada |
44548d9c | 7 | Summary(pl.UTF-8): %{_pearname} - Klasa sprawdzająca poprawność dla Kanady |
cf545280 AG |
8 | Name: php-pear-%{_pearname} |
9 | Version: 0.1.2 | |
538b632e | 10 | Release: 2 |
d92ec2fd | 11 | Epoch: 0 |
cf545280 AG |
12 | License: New BSD |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
15 | # Source0-md5: 8e3b42b51b749f19a21d3c512ea45742 | |
16 | URL: http://pear.php.net/package/Validate_CA/ | |
17 | BuildRequires: php-pear-PEAR | |
18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
a9c7195c | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
538b632e | 20 | Requires: php(pcre) |
cf545280 | 21 | Requires: php-common >= 3:4.2.0 |
d92ec2fd | 22 | Requires: php-pear |
cf545280 AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Package contains locale validation for Canada such as: | |
28 | - Social Insurance Numbers (SIN) | |
29 | - Postal Codes | |
30 | - Regions (Provinces) | |
31 | - Phone Numbers | |
32 | ||
33 | In PEAR status of this package is: %{_status}. | |
34 | ||
44548d9c JR |
35 | %description -l pl.UTF-8 |
36 | Pakiet do sprawdzania poprawności dla Kanady danych takich jak: | |
37 | - numer ubezpieczenia społecznego (SIN) | |
cf545280 AG |
38 | - kod pocztowy |
39 | - region (prowincja) | |
40 | - numer telefonu | |
41 | ||
42 | Ta klasa ma w PEAR status: %{_status}. | |
43 | ||
44 | %package tests | |
45 | Summary: Tests for PEAR::%{_pearname} | |
44548d9c | 46 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
cf545280 AG |
47 | Group: Development |
48 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
49 | AutoReq: no | |
50 | ||
51 | %description tests | |
52 | Tests for PEAR::%{_pearname}. | |
53 | ||
44548d9c | 54 | %description tests -l pl.UTF-8 |
cf545280 AG |
55 | Testy dla PEAR::%{_pearname}. |
56 | ||
57 | %prep | |
58 | %pear_package_setup | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
63 | %pear_package_install | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc install.log | |
71 | %{php_pear_dir}/.registry/*.reg | |
72 | %{php_pear_dir}/Validate/CA.php | |
73 | ||
74 | %files tests | |
75 | %defattr(644,root,root,755) | |
d92ec2fd | 76 | %{php_pear_dir}/tests/Validate_CA |