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