Author: glen                         Date: Fri May 23 09:16:58 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new, based on 
http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/php-spyc/php-spyc.spec?rev=1.2

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

---- Diffs:

================================================================
Index: SPECS/php-spyc.spec
diff -u /dev/null SPECS/php-spyc.spec:1.1
--- /dev/null   Fri May 23 11:16:59 2008
+++ SPECS/php-spyc.spec Fri May 23 11:16:53 2008
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+Summary:       A simple PHP YAML class
+Name:          php-spyc
+Version:       0.2.5
+Release:       1
+License:       MIT
+Group:         Development/Languages/PHP
+URL:           http://spyc.sourceforge.net/
+Source0:       http://dl.sourceforge.net/spyc/spyc-%{version}.tar.gz
+# Source0-md5: 5b25e949e3c016811b194aff8be50d6b
+Requires:      php-common
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                php_datadir             /usr/share/php
+
+%description
+Spyc is a YAML loader/dumper written in PHP. Given a YAML document,
+Spyc will return an array which you can use however you see fit. Given
+an array, Spyc will return a string which contains a YAML document
+built from your data.
+
+%prep
+%setup -qc
+rm -rf CVS *~
+
+# make version independant wrapper
+mv spyc.php spyc.php4
+cat <<'EOF' > spyc.php
+<?
+if (intval(PHP_VERSION) < 5) {
+       require_once 'spyc.php4';
+} else {
+       require_once 'spyc.php5';
+}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_datadir},%{_examplesdir}/%{name}-%{version}}
+cp -a spyc.php spyc.php4 spyc.php5 $RPM_BUILD_ROOT%{php_datadir}
+cp -a test.* yaml-{dump,load}.php spyc.yaml 
$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{php_datadir}/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-05-23 09:16:53  glen
+- new, based on 
http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/php-spyc/php-spyc.spec?rev=1.2
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to