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