]> git.pld-linux.org Git - SPECS.git/blob - php-pear-JSON.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / php-pear-JSON.spec
1 %define         _class          JSON
2 %define         _status         stable
3 %define         _pearname       %{_class}
4 Summary:        %{_pearname} - Simple encoder and decoder for JSON notation
5 Summary(pl.UTF-8):      %{_pearname} - prosty koder i dekoder dla notacji JSON
6 Name:           php-pear-%{_pearname}
7 Version:        0.1
8 Release:        3
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 Obsoletes:      php-pear-JSON-tests
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 This package provides a simple encoder and decoder for JSON notation.
23 It is intended for use with client-side Javascript applications that
24 make use of HTTPRequest to perform server communication functions -
25 data can be encoded into JSON notation for use in a client-side
26 Javascript, or decoded from incoming Javascript requests. JSON format
27 is native to Javascript, and can be directly eval()'ed with no further
28 parsing overhead.
29
30 %description -l pl.UTF-8
31 Ten pakiet udostępnia prosty koder i dekoder dla notacji JSON. Jest
32 przeznaczony do używania z aplikacjami w Javascripcie po stronie
33 klienta korzystającymi z HTTPRequest do komunikacji z serwerem - dane
34 mogą być kodowane w notacji JSON do używania z poziomu Javascriptu po
35 stronie klienta lub dekodowane z przychodzących żądań Javascriptu.
36 Format JSON jest natywny dla Javascriptu i może być bezpośrednio
37 wykonany przez eval() bez dalszego przetwarzania.
38
39 %prep
40 %setup -qc
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{php_pear_dir}/tests
45 install JSON.php $RPM_BUILD_ROOT%{php_pear_dir}
46 install Test-JSON.php $RPM_BUILD_ROOT%{php_pear_dir}/tests
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc doc/*
54 %{php_pear_dir}/JSON.php
This page took 0.035044 seconds and 3 git commands to generate.