]> git.pld-linux.org Git - packages/php-pear-Services_JSON.git/blob - php-pear-Services_JSON.spec
abf605c1fd129044e7a9483d78c26fe5eb74c6bc
[packages/php-pear-Services_JSON.git] / php-pear-Services_JSON.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Services_JSON
3 %define         _status         stable
4 %define         _pearname       %{_class}
5 Summary:        %{_pearname} - PHP implementaion of json_encode/decode
6 Summary(pl.UTF-8):      %{_pearname} - prosty koder i dekoder dla notacji JSON
7 Name:           php-pear-%{_pearname}
8 Version:        1.0.2
9 Release:        1
10 License:        BSD
11 Group:          Development/Languages/PHP
12 Source0:        http://download.pear.php.net/package/Services_JSON-%{version}.tgz
13 # Source0-md5:  87add4b48ffedebc98ef6eac030e5c4d
14 URL:            http://pear.php.net/package/Services_JSON
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 JSON (JavaScript Object Notation, <http://json.org>) is a lightweight
23 data-interchange format. It is easy for humans to read and write. It
24 is easy for machines to parse and generate. It is based on a subset of
25 the JavaScript Programming Language, Standard ECMA-262 3rd Edition -
26 December 1999. This feature can also be found in Python. JSON is a
27 text format that is completely language independent but uses
28 conventions that are familiar to programmers of the C-family of
29 languages, including C, C++, C#, Java, JavaScript, Perl, TCL, and many
30 others. These properties make JSON an ideal data-interchange language.
31
32 This package provides a simple encoder and decoder for JSON notation.
33 It is intended for use with client-side Javascript applications that
34 make use of HTTPRequest to perform server communication functions -
35 data can be encoded into JSON notation for use in a client-side
36 JavaScript, or decoded from incoming Javascript requests. JSON format
37 is native to JavaScript, and can be directly eval()'ed with no further
38 parsing overhead.
39
40 %prep
41 %pear_package_setup
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{php_pear_dir}
46 %pear_package_install
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %{php_pear_dir}/.registry/*.reg
54 %{php_pear_dir}/Services/JSON.php
This page took 0.023442 seconds and 3 git commands to generate.