]>
Commit | Line | Data |
---|---|---|
6142c0cb AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Validate | |
3 | %define _subclass NL | |
4 | %define _status alpha | |
5 | %define _pearname Validate_NL | |
6 | ||
7 | Summary: %{_pearname} - Validation class for NL | |
92f1c266 | 8 | Summary(pl.UTF-8): %{_pearname} - Klasa sprawdzająca poprawność dla Holandii |
6142c0cb AG |
9 | Name: php-pear-%{_pearname} |
10 | Version: 0.5.1 | |
11 | Release: 1 | |
77f16c10 | 12 | Epoch: 0 |
6142c0cb AG |
13 | License: New BSD |
14 | Group: Development/Languages/PHP | |
15 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
16 | # Source0-md5: cac0e79fb5753930bd88b0daa3ee2dd1 | |
17 | URL: http://pear.php.net/package/Validate_NL/ | |
18 | BuildRequires: php-pear-PEAR | |
19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
d406e709 | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
6142c0cb | 21 | Requires: php-common >= 3:4.2.0 |
77f16c10 | 22 | Requires: php-pear |
6142c0cb AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Package containes locale validation for NL such as: | |
28 | - SSN | |
29 | - Postal Code | |
30 | - Phone Number | |
31 | - Bank Account Number (based on 11proef) | |
32 | ||
33 | In PEAR status of this package is: %{_status}. | |
34 | ||
92f1c266 JR |
35 | %description -l pl.UTF-8 |
36 | Pakiet do sprawdzania poprawności dla Holandii danych takich jak: | |
37 | - numer ubezpieczenia społecznego (SSN) | |
6142c0cb AG |
38 | - kod pocztowy |
39 | - numer telefonu | |
40 | - numer konta bankowego (na podstawie 11proef) | |
41 | ||
42 | Ta klasa ma w PEAR status: %{_status}. | |
43 | ||
44 | %package tests | |
45 | Summary: Tests for PEAR::%{_pearname} | |
92f1c266 | 46 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
6142c0cb AG |
47 | Group: Development |
48 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
49 | AutoReq: no | |
50 | ||
51 | %description tests | |
52 | Tests for PEAR::%{_pearname}. | |
53 | ||
92f1c266 | 54 | %description tests -l pl.UTF-8 |
6142c0cb 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/NL.php | |
73 | ||
74 | %files tests | |
75 | %defattr(644,root,root,755) | |
77f16c10 | 76 | %{php_pear_dir}/tests/Validate_NL |