initial commit of file from CVS for php-pear-XML-Parser2 on Fri 14 Jul 16:12:27 BST 2023
This commit is contained in:
parent
f4e5de2bc4
commit
1970387a0c
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*.rpm
|
||||||
|
*.log
|
||||||
|
*spec-20*
|
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# Makefile for source rpm: php-pear-XML-Parser2
|
||||||
|
# $Id: Makefile,v 1.1 2016/06/16 14:30:00 unnilennium Exp $
|
||||||
|
NAME := php-pear-XML-Parser2
|
||||||
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
|
define find-makefile-common
|
||||||
|
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||||
|
|
||||||
|
ifeq ($(MAKEFILE_COMMON),)
|
||||||
|
# attept a checkout
|
||||||
|
define checkout-makefile-common
|
||||||
|
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||||
|
endef
|
||||||
|
|
||||||
|
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||||
|
endif
|
||||||
|
|
||||||
|
include $(MAKEFILE_COMMON)
|
@ -1,3 +1,11 @@
|
|||||||
# php-pear-XML-Parser2
|
# php-pear-XML-Parser2
|
||||||
|
|
||||||
3rd Party (Maintained by Koozali) git repo for php-pear-XML-Parser2 smeserver
|
3rd Party (Maintained by Koozali) git repo for php-pear-XML-Parser2 smeserver
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
<br />*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.*
|
||||||
|
*Once it has been checked, then this comment will be deleted*
|
||||||
|
<br />
|
||||||
|
|
||||||
|
The php-pear-XML_Parser2 software package is a PEAR (PHP Extension and Application Repository) package that provides an API for parsing XML documents with PHP. It is a robust, reliable, and fast XML parser that supports the SAX (Simple API for XML) and DOM (Document Object Model) APIs for parsing XML.
|
||||||
|
BIN
XML_Parser2-0.1.0.tgz
(Stored with Git LFS)
Normal file
BIN
XML_Parser2-0.1.0.tgz
(Stored with Git LFS)
Normal file
Binary file not shown.
1
contriborbase
Normal file
1
contriborbase
Normal file
@ -0,0 +1 @@
|
|||||||
|
sme10
|
114
php-pear-XML_Parser2.spec
Normal file
114
php-pear-XML_Parser2.spec
Normal file
@ -0,0 +1,114 @@
|
|||||||
|
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
|
||||||
|
%define xmldir /var/lib/pear
|
||||||
|
%global pear_name XML_Parser2
|
||||||
|
%define name php-pear-XML-Parser2
|
||||||
|
%define version 0.1.0
|
||||||
|
%define release 3
|
||||||
|
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}%{?dist}
|
||||||
|
Summary: XML parsing class based on PHP's bundled expat
|
||||||
|
License: BSD License
|
||||||
|
Group: Development/Libraries
|
||||||
|
Source0: http://pear.php.net/get/XML_Parser2-%{version}.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
||||||
|
URL: http://pear.php.net/package/XML_Parser2
|
||||||
|
|
||||||
|
BuildRequires: php-pear(PEAR) >= 1.4.7
|
||||||
|
Requires: php-pear(PEAR) >= 1.4.0b1
|
||||||
|
Provides: php-pear(%{pear_name}) = %{version}
|
||||||
|
|
||||||
|
#BuildRequires: PEAR::PEAR >= 1.4.7
|
||||||
|
#Requires: PEAR::PEAR
|
||||||
|
#Requires: PEAR::PEAR >= 1.4.0b1
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is an XML parser based on PHPs built-in xml extension.
|
||||||
|
It supports two basic modes of operation: "func" and "event". In "func"
|
||||||
|
mode, it will look for a function named after each element (xmltag_ELEMENT
|
||||||
|
for start tags and xmltag_ELEMENT_ for end tags), and in "event" mode it
|
||||||
|
uses a set of generic callbacks.
|
||||||
|
|
||||||
|
Since version 1.2.0 there's a new XML_Parser_Simple class that makes
|
||||||
|
parsing of most XML documents easier, by automatically providing a stack
|
||||||
|
for the elements.
|
||||||
|
Furthermore its now possible to split the parser from the handler object,
|
||||||
|
so you do not have to extend XML_Parser anymore in order to parse a
|
||||||
|
document with it.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -c -T
|
||||||
|
pear -v -c pearrc \
|
||||||
|
-d php_dir=%{peardir} \
|
||||||
|
-d doc_dir=/docs \
|
||||||
|
-d bin_dir=%{_bindir} \
|
||||||
|
-d data_dir=%{peardir}/data \
|
||||||
|
-d test_dir=%{peardir}/tests \
|
||||||
|
-d ext_dir=%{_libdir} \
|
||||||
|
-s
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
|
||||||
|
|
||||||
|
# Clean up unnecessary files
|
||||||
|
rm pearrc
|
||||||
|
rm -rf %{buildroot}/%{peardir}/.filemap
|
||||||
|
rm -rf %{buildroot}/%{peardir}/.lock
|
||||||
|
rm -rf %{buildroot}/%{peardir}/.registry
|
||||||
|
rm -rf %{buildroot}%{peardir}/.channels
|
||||||
|
rm -rf %{buildroot}/%{xmldir}/.filemap
|
||||||
|
rm -rf %{buildroot}/%{xmldir}/.lock
|
||||||
|
rm -rf %{buildroot}/%{xmldir}/.registry
|
||||||
|
rm -rf %{buildroot}/%{xmldir}/.channels
|
||||||
|
if [[ -f %{buildroot}%{xmldir}/.depdb ]] ;then
|
||||||
|
rm -rf %{buildroot}%{xmldir}/.depdb
|
||||||
|
fi
|
||||||
|
if [[ -f %{buildroot}{xmldir}/.depdblock ]] ;then
|
||||||
|
rm -rf %{buildroot}%{xmldir}/.depdblock
|
||||||
|
fi
|
||||||
|
|
||||||
|
mv %{buildroot}/docs .
|
||||||
|
|
||||||
|
|
||||||
|
# Install XML package description
|
||||||
|
mkdir -p %{buildroot}%{xmldir}
|
||||||
|
tar -xzf %{SOURCE0} package.xml
|
||||||
|
cp -p package.xml %{buildroot}%{xmldir}/XML_Parser2.xml
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
pear install --nodeps --soft --force --register-only %{xmldir}/XML_Parser2.xml >/dev/null || :
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" -eq "0" ]; then
|
||||||
|
pear uninstall --nodeps --ignore-errors --register-only pear.php.net/XML_Parser2 >/dev/null || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc docs/XML_Parser2/*
|
||||||
|
%{peardir}/*
|
||||||
|
%{xmldir}/XML_Parser2.xml
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 14 2023 BogusDateBot
|
||||||
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||||||
|
by assuming the date is correct and changing the weekday.
|
||||||
|
|
||||||
|
* Thu Jun 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.0-3.sme
|
||||||
|
- importing to buildsys pear packages for Horde [SME: 9600]
|
||||||
|
|
||||||
|
* Mon May 6 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.1.0-2
|
||||||
|
- updated spec file requires section, and left original info remarked.
|
||||||
|
|
||||||
|
* Sun May 5 2013 John H. Bennett III <bennettj@johnbennettservices.com> - 0.1.0-1
|
||||||
|
- Original from pear-make-rpm-spec.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user