packages: php-atomlib/istext.patch (NEW), php-atomlib/php-atomlib.spec (NEW...
glen
glen at pld-linux.org
Thu May 20 12:07:18 CEST 2010
Author: glen Date: Thu May 20 10:07:18 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/php-atomlib:
istext.patch (NONE -> 1.1) (NEW), php-atomlib.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-atomlib/istext.patch
diff -u /dev/null packages/php-atomlib/istext.patch:1.1
--- /dev/null Thu May 20 12:07:19 2010
+++ packages/php-atomlib/istext.patch Thu May 20 12:07:11 2010
@@ -0,0 +1,11 @@
+--- ./lib/atomlib.php 2010-05-20 13:00:20.000000000 +0300
++++ ./lib/atomlib.php 2010-05-20 12:45:13.000000000 +0300
+@@ -206,7 +244,7 @@
+ if(count($c) == 3) {
+ array_push($newcontent, $c[2]);
+ } else {
+- if($this->is_xhtml) {
++ if($this->is_xhtml || $this->is_text) {
+ array_push($newcontent, $this->xml_escape($c));
+ } else {
+ array_push($newcontent, $c);
================================================================
Index: packages/php-atomlib/php-atomlib.spec
diff -u /dev/null packages/php-atomlib/php-atomlib.spec:1.1
--- /dev/null Thu May 20 12:07:19 2010
+++ packages/php-atomlib/php-atomlib.spec Thu May 20 12:07:11 2010
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+%define pkgname simplepie
+%define php_min_version 5.0.0
+%include /usr/lib/rpm/macros.php
+Summary: atomlib.php - Atom Syndication Format PHP Library
+Name: php-atomlib
+Version: 0.4
+Release: 1
+License: Apache v2.0
+Group: Development/Languages/PHP
+# svn --ignore-externals co http://phpatomlib.googlecode.com/svn/trunk/ phpatomlib
+# tar --exclude-vcs -cjf phpatomlib-$(svnversion phpatomlib).tar.bz2 phpatomlib --exclude=feedvalidator-results
+# ../dropin phpatomlib-$(svnversion phpatomlib).tar.bz2 &
+Source0: phpatomlib-7.tar.bz2
+# Source0-md5: 9dba523c2a8e9d00a1721c079b23ed5e
+Patch0: istext.patch
+URL: http://code.google.com/p/phpatomlib/
+BuildRequires: rpm-build >= 4.4.9-96
+BuildRequires: rpm-php-pearprov
+BuildRequires: rpmbuild(macros) >= 1.461
+Requires: php-common >= 4:%{php_min_version}
+Requires: php-xml
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# exclude optional php dependencies
+%define _noautophp %{nil}
+
+# put it together for rpmbuild
+%define _noautoreq %{?_noautophp} %{?_noautopear}
+
+%description
+This project was created in order to provide a more complete PHP
+library to efficiently parse Atom Feeds.
+
+%prep
+%setup -q -n phpatomlib
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}
+cp -a lib/atomlib.php $RPM_BUILD_ROOT%{php_data_dir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{php_data_dir}/atomlib.php
+
+%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 2010/05/20 10:07:11 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list