]> git.pld-linux.org Git - packages/php-pear-Services_JSON.git/commitdiff
- new
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 31 Jul 2006 14:26:49 +0000 (14:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pear-Services_JSON.spec -> 1.1

php-pear-Services_JSON.spec [new file with mode: 0644]

diff --git a/php-pear-Services_JSON.spec b/php-pear-Services_JSON.spec
new file mode 100644 (file)
index 0000000..2fd7fcf
--- /dev/null
@@ -0,0 +1,62 @@
+%include       /usr/lib/rpm/macros.php
+%define                _class          JSON
+%define                _status         stable
+%define                _pearname       %{_class}
+Summary:       %{_pearname} - Simple encoder and decoder for JSON notation
+Name:          php-pear-%{_pearname}
+Version:       0.1
+Release:       0.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
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+Requires:      php-pear
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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
+parsing overhead.
+
+%package tests
+Summary:       Tests for PEAR::%{_pearname}
+Summary(pl):   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
+Testy dla PEAR::%{_pearname}.
+
+%prep
+%setup -qc
+
+%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
+
+%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/*
This page took 0.085506 seconds and 4 git commands to generate.