%define _class XML %define _subclass XPath %define upstream_name %{_class}_%{_subclass} %global __requires_exclude pear\\(XML/XPath.php\\) Name: php-pear-%{upstream_name} Version: 1.2.4 Release: %mkrel 16 Summary: XPath/DOM XML manipulation, maneuvering and query interface License: PHP License Group: Development/PHP URL: https://pear.php.net/package/XML_XPath/ Source0: https://pear.php.net/get/%{upstream_name}-%{version}.tgz Patch0: XML_XPath-1.2.4-fix-path.patch Requires(post): php-pear Requires(preun): php-pear Requires: php-pear BuildRequires: php-pear BuildArch: noarch %description The PEAR::XML_XPath class provides an XPath/DOM XML manipulation, maneuvering and query interface. The class allows for easy manipulation, maneuvering and querying of a DOMXML tree using both XPath queries and DOM walk functions. It uses an internal pointer for all methods on which the action is performed. Results from an DOM/XPath query are returned as an XPath_Result object, which contains an internal array of DOM nodes and which extends the common DOM class and hence contains all the DOM functions from the main object to run on each of the elements in the internal array. This class tries to hold as close as possible to the DOM Recommendation. You MUST have the domxml extension to use this class. The XML_XPath class was inspired by a class maintained by Nigel Swinson called phpxpath. The phpxpath class does not rely on PHP xmldom functions and is therefore a sibling to this class: https://sourceforge.net/projects/phpxpath/. %prep %setup -q -c mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml # What is this patch for? # %patch0 -p0 %install cd %{upstream_name}-%{version} pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml rm -rf %{buildroot}%{_datadir}/pear/.??* rm -rf %{buildroot}%{_datadir}/pear/doc rm -rf %{buildroot}%{_datadir}/pear/test install -d %{buildroot}%{_datadir}/pear/packages install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages %files %doc %{upstream_name}-%{version}/docs/* %{_datadir}/pear/%{_class} %{_datadir}/pear/packages/%{upstream_name}.xml %changelog * Tue Mar 22 2022 umeabot <umeabot> 1.2.4-16.mga9 + Revision: 1818284 - Mageia 9 Mass Rebuild + danf <danf> - Switch URLs from http: to https: * Wed Feb 12 2020 umeabot <umeabot> 1.2.4-15.mga8 + Revision: 1499244 - Mageia 8 Mass Rebuild * Wed Sep 19 2018 umeabot <umeabot> 1.2.4-14.mga7 + Revision: 1274173 - Mageia 7 Mass Rebuild * Wed Feb 17 2016 umeabot <umeabot> 1.2.4-13.mga6 + Revision: 964775 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 1.2.4-12.mga5 + Revision: 749355 - Second Mageia 5 Mass Rebuild * Wed Oct 01 2014 tv <tv> 1.2.4-11.mga5 + Revision: 734217 - rebuild for pear deps * Tue Sep 16 2014 umeabot <umeabot> 1.2.4-10.mga5 + Revision: 687527 - Mageia 5 Mass Rebuild + tv <tv> - use %%global for req/prov exclude - autoconvert to new prov/req excludes * Fri Oct 18 2013 umeabot <umeabot> 1.2.4-9.mga4 + Revision: 517347 - Mageia 4 Mass Rebuild * Sun Jan 13 2013 umeabot <umeabot> 1.2.4-8.mga3 + Revision: 377487 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Mar 27 2011 spuhler <spuhler> 1.2.4-7.mga1 + Revision: 77895 - commented %%patch0 -p0 to get the files in * Sat Mar 26 2011 spuhler <spuhler> 1.2.4-6.mga1 + Revision: 77749 - changed _requires_exceptions pear(../XPath.php) to _requires_exceptions pear(XML/XPath.php) increase rel for rebuild * Mon Feb 07 2011 spuhler <spuhler> 1.2.4-5.mga1 + Revision: 48401 - increased rel to 4 for rebuild * Sat Feb 05 2011 spuhler <spuhler> 1.2.4-4.mga1 + Revision: 47556 - removed buildroot definition from .spec - imported package php-pear-XML_XPath * Tue Dec 07 2010 Oden Eriksson <oeriksson@mandriva.com> 1.2.4-4mdv2011.0 + Revision: 613801 - the mass rebuild of 2010.1 packages * Sun Nov 15 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.2.4-3mdv2010.1 + Revision: 466308 - spec cleanup - use pear installer - don't ship tests, even in documentation - own all directories - use rpm filetriggers starting from mandriva 2010.1 * Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 1.2.4-2mdv2010.0 + Revision: 441770 - rebuild * Sun Mar 15 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.2.4-1mdv2009.1 + Revision: 355266 - new version - don't recompress tarball - don't duplicate spec-helper job - spec cleanup * Thu Jan 01 2009 Oden Eriksson <oeriksson@mandriva.com> 1.2.3-3mdv2009.1 + Revision: 323000 - rebuild * Thu Jul 17 2008 Oden Eriksson <oeriksson@mandriva.com> 1.2.3-2mdv2009.0 + Revision: 237174 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sat Nov 11 2006 Oden Eriksson <oeriksson@mandriva.com> 1.2.3-1mdv2007.0 + Revision: 82964 - Import php-pear-XML_XPath * Fri Feb 10 2006 Oden Eriksson <oeriksson@mandriva.com> 1.2.3-1mdk - 1.2.3 - new group (Development/PHP) * Fri Aug 26 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-6mdk - rebuilt to fix auto deps * Wed Aug 10 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-5mdk - rebuilt to use new pear auto deps/reqs from pld * Sun Jul 31 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-4mdk - fix deps * Thu Jul 21 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-3mdk - reworked the %%post and %%preun stuff, like in conectiva - fix deps * Wed Jul 20 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-2mdk - fix deps * Tue Jul 19 2005 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-1mdk - initial Mandriva package (PLD import)