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