]>
Commit | Line | Data |
---|---|---|
f63f64c4 ER |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class JSON | |
3 | %define _status stable | |
4 | %define _pearname %{_class} | |
5 | Summary: %{_pearname} - Simple encoder and decoder for JSON notation | |
6 | Name: php-pear-%{_pearname} | |
7 | Version: 0.1 | |
8 | Release: 0.1 | |
9 | License: BSD | |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://mike.teczno.com/JSON.tar.gz | |
12 | # Source0-md5: fc2cec5a87fe3d70ecbe0857f30eac94 | |
13 | URL: http://pear.php.net/pepr/pepr-proposal-show.php?id=198 | |
14 | BuildRequires: php-pear-PEAR | |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | Requires: php-pear | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This package provides a simple encoder and decoder for JSON notation. | |
22 | It is intended for use with client-side Javascript applications that | |
23 | make use of HTTPRequest to perform server communication functions - | |
24 | data can be encoded into JSON notation for use in a client-side | |
25 | javascript, or decoded from incoming Javascript requests. JSON format | |
26 | is native to Javascript, and can be directly eval()'ed with no further | |
27 | parsing overhead. | |
28 | ||
29 | %package tests | |
30 | Summary: Tests for PEAR::%{_pearname} | |
31 | Summary(pl): Testy dla PEAR::%{_pearname} | |
32 | Group: Development/Languages/PHP | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | AutoReq: no | |
35 | AutoProv: no | |
36 | ||
37 | %description tests | |
38 | Tests for PEAR::%{_pearname}. | |
39 | ||
40 | %description tests -l pl | |
41 | Testy dla PEAR::%{_pearname}. | |
42 | ||
43 | %prep | |
44 | %setup -qc | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/tests | |
49 | install JSON.php $RPM_BUILD_ROOT%{php_pear_dir} | |
50 | install Test-JSON.php $RPM_BUILD_ROOT%{php_pear_dir}/tests | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc doc/* | |
58 | %{php_pear_dir}/JSON.php | |
59 | ||
60 | %files tests | |
61 | %defattr(644,root,root,755) | |
62 | %{php_pear_dir}/tests/* |