SPECS: php-pear-JSON.spec (NEW) - new

glen glen at pld-linux.org
Mon Jul 31 16:26:54 CEST 2006


Author: glen                         Date: Mon Jul 31 14:26:54 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   php-pear-JSON.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/php-pear-JSON.spec
diff -u /dev/null SPECS/php-pear-JSON.spec:1.1
--- /dev/null	Mon Jul 31 16:26:54 2006
+++ SPECS/php-pear-JSON.spec	Mon Jul 31 16:26:49 2006
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+%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/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/07/31 14:26:49  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list