]>
Commit | Line | Data |
---|---|---|
f47d64e4 | 1 | %include /usr/lib/rpm/macros.php |
f47d64e4 AG |
2 | %define _status alpha |
3 | %define _pearname Validate_ISPN | |
f47d64e4 | 4 | Summary: %{_pearname} - validation class for ISPN (International Standard Product Numbers) |
a977b658 | 5 | Summary(pl.UTF-8): %{_pearname} - klasa sprawdzania poprawności ISPN (Internation Standard Product Numbers) |
f47d64e4 | 6 | Name: php-pear-%{_pearname} |
f59e2482 | 7 | Version: 0.6.1 |
730db7d6 | 8 | Release: 2 |
f47d64e4 AG |
9 | License: New BSD |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
f59e2482 | 12 | # Source0-md5: e8393a93b0e30a7c44959f0dc08e5533 |
f47d64e4 | 13 | URL: http://pear.php.net/package/Validate_ISPN/ |
730db7d6 | 14 | BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1 |
f47d64e4 | 15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
e2e924eb | 16 | BuildRequires: rpmbuild(macros) >= 1.300 |
f47d64e4 AG |
17 | Requires: php-common >= 3:4.1.0 |
18 | Requires: php-pear | |
f59e2482 | 19 | Requires: php-pear-PEAR-core >= 1:1.4.0 |
f47d64e4 AG |
20 | Requires: php-pear-Validate >= 0.5.0 |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Package containes ISPN (International Standard Product Numbers) | |
26 | validations such as: | |
27 | - ISSN | |
28 | - ISBN | |
29 | - ISMN | |
30 | - ISRC (International Standard Recording Code) | |
31 | - EAN8 | |
32 | - EAN13 | |
33 | - EAN14 | |
34 | - UCC12 | |
35 | - SSCC | |
36 | ||
37 | In PEAR status of this package is: %{_status}. | |
38 | ||
10e8887c JR |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet zawiera metody sprawdzania poprawności ISPN (Internation | |
f47d64e4 AG |
41 | Standard Product Numbers) takich jak: |
42 | - ISSN | |
43 | - ISBN | |
44 | - ISMN | |
45 | - ISRC (International Standard Recording Code) | |
46 | - EAN8 | |
47 | - EAN13 | |
48 | - EAN14 | |
49 | - UCC12 | |
50 | - SSCC | |
51 | ||
52 | Ta klasa ma w PEAR status: %{_status}. | |
53 | ||
f59e2482 ER |
54 | %package tests |
55 | Summary: Tests for PEAR::%{_pearname} | |
56 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
57 | Group: Development/Languages/PHP | |
58 | Requires: %{name} = %{version}-%{release} | |
f59e2482 | 59 | AutoProv: no |
730db7d6 | 60 | AutoReq: no |
f59e2482 ER |
61 | |
62 | %description tests | |
63 | Tests for PEAR::%{_pearname}. | |
64 | ||
65 | %description tests -l pl.UTF-8 | |
66 | Testy dla PEAR::%{_pearname}. | |
67 | ||
f47d64e4 AG |
68 | %prep |
69 | %pear_package_setup | |
70 | ||
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
74 | %pear_package_install | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc install.log docs/%{_pearname}/LICENSE | |
82 | %{php_pear_dir}/.registry/*.reg | |
83 | %{php_pear_dir}/Validate/ISPN.php | |
f59e2482 ER |
84 | |
85 | %files tests | |
86 | %defattr(644,root,root,755) | |
87 | %{php_pear_dir}/tests/* |