]> git.pld-linux.org Git - packages/php-pear-Services_JSON.git/blob - php-pear-Services_JSON.spec
- pl
[packages/php-pear-Services_JSON.git] / php-pear-Services_JSON.spec
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 Summary(pl):    %{_pearname} - prosty koder i dekoder dla notacji JSON
7 Name:           php-pear-%{_pearname}
8 Version:        0.1
9 Release:        0.1
10 License:        BSD
11 Group:          Development/Languages/PHP
12 Source0:        http://mike.teczno.com/JSON.tar.gz
13 # Source0-md5:  fc2cec5a87fe3d70ecbe0857f30eac94
14 URL:            http://pear.php.net/pepr/pepr-proposal-show.php?id=198
15 BuildRequires:  php-pear-PEAR
16 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
17 Requires:       php-pear
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
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 %package tests
40 Summary:        Tests for PEAR::%{_pearname}
41 Summary(pl):    Testy dla PEAR::%{_pearname}
42 Group:          Development/Languages/PHP
43 Requires:       %{name} = %{version}-%{release}
44 AutoReq:        no
45 AutoProv:       no
46
47 %description tests
48 Tests for PEAR::%{_pearname}.
49
50 %description tests -l pl
51 Testy dla PEAR::%{_pearname}.
52
53 %prep
54 %setup -qc
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{php_pear_dir}/tests
59 install JSON.php $RPM_BUILD_ROOT%{php_pear_dir}
60 install Test-JSON.php $RPM_BUILD_ROOT%{php_pear_dir}/tests
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(644,root,root,755)
67 %doc doc/*
68 %{php_pear_dir}/JSON.php
69
70 %files tests
71 %defattr(644,root,root,755)
72 %{php_pear_dir}/tests/*
This page took 0.057849 seconds and 4 git commands to generate.