]> git.pld-linux.org Git - packages/php-pear-Services_JSON.git/blobdiff - 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
index 8cb7a34012b7a09927fef7d9a36876cd06b6aeb4..15294ececed06433c2c630fe08a200188d488aca 100644 (file)
@@ -1,72 +1,53 @@
-%include       /usr/lib/rpm/macros.php
-%define                _class          JSON
 %define                _status         stable
-%define                _pearname       %{_class}
-Summary:       %{_pearname} - Simple encoder and decoder for JSON notation
-Summary(pl.UTF-8):   %{_pearname} - prosty koder i dekoder dla notacji JSON
+%define                _pearname       Services_JSON
+Summary:       %{_pearname} - PHP implementaion of json_encode/decode
+Summary(pl.UTF-8):     %{_pearname} - prosty koder i dekoder dla notacji JSON
 Name:          php-pear-%{_pearname}
-Version:       0.1
-Release:       0.1
+Version:       1.0.3
+Release:       1
 License:       BSD
 Group:         Development/Languages/PHP
-Source0:       http://mike.teczno.com/JSON.tar.gz
-# Source0-md5: fc2cec5a87fe3d70ecbe0857f30eac94
-URL:           http://pear.php.net/pepr/pepr-proposal-show.php?id=198
+Source0:       http://download.pear.php.net/package/Services_JSON-%{version}.tgz
+# Source0-md5: bac7546a08c45d952786ffb8aa0bdb0e
+URL:           http://pear.php.net/package/Services_JSON
 BuildRequires: php-pear-PEAR
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.300
 Requires:      php-pear
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+JSON (JavaScript Object Notation, <http://json.org>) is a lightweight
+data-interchange format. It is easy for humans to read and write. It
+is easy for machines to parse and generate. It is based on a subset of
+the JavaScript Programming Language, Standard ECMA-262 3rd Edition -
+December 1999. This feature can also be found in Python. JSON is a
+text format that is completely language independent but uses
+conventions that are familiar to programmers of the C-family of
+languages, including C, C++, C#, Java, JavaScript, Perl, TCL, and many
+others. These properties make JSON an ideal data-interchange language.
+
 This package provides a simple encoder and decoder for JSON notation.
 It is intended for use with client-side Javascript applications that
 make use of HTTPRequest to perform server communication functions -
 data can be encoded into JSON notation for use in a client-side
-Javascript, or decoded from incoming Javascript requests. JSON format
-is native to Javascript, and can be directly eval()'ed with no further
+JavaScript, or decoded from incoming Javascript requests. JSON format
+is native to JavaScript, and can be directly eval()'ed with no further
 parsing overhead.
 
-%description -l pl.UTF-8
-Ten pakiet udostępnia prosty koder i dekoder dla notacji JSON. Jest
-przeznaczony do używania z aplikacjami w Javascripcie po stronie
-klienta korzystającymi z HTTPRequest do komunikacji z serwerem - dane
-mogą być kodowane w notacji JSON do używania z poziomu Javascriptu po
-stronie klienta lub dekodowane z przychodzących żądań Javascriptu.
-Format JSON jest natywny dla Javascriptu i może być bezpośrednio
-wykonany przez eval() bez dalszego przetwarzania.
-
-%package tests
-Summary:       Tests for PEAR::%{_pearname}
-Summary(pl.UTF-8):   Testy dla PEAR::%{_pearname}
-Group:         Development/Languages/PHP
-Requires:      %{name} = %{version}-%{release}
-AutoReq:       no
-AutoProv:      no
-
-%description tests
-Tests for PEAR::%{_pearname}.
-
-%description tests -l pl.UTF-8
-Testy dla PEAR::%{_pearname}.
-
 %prep
-%setup -qc
+%pear_package_setup
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}/tests
-install JSON.php $RPM_BUILD_ROOT%{php_pear_dir}
-install Test-JSON.php $RPM_BUILD_ROOT%{php_pear_dir}/tests
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/*
-%{php_pear_dir}/JSON.php
-
-%files tests
-%defattr(644,root,root,755)
-%{php_pear_dir}/tests/*
+%{php_pear_dir}/.registry/*.reg
+%{php_pear_dir}/Services/JSON.php
This page took 0.072506 seconds and 4 git commands to generate.