From c4e9e10934eb94065752b2daec014d3857209a53 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Pialasse Date: Sun, 24 Mar 2024 22:16:42 -0400 Subject: [PATCH] * Mon Mar 31 2014 Remi Collet 1.1.2-1 - Version 1.1.2 (stable) --- README.md | 11 +- XML_RPC2-1.1.2.tgz | 3 + change-this-to-the-package-name.spec | 55 ---------- php-pear-XML-RPC2.spec | 151 +++++++++++++++++++++++++++ 4 files changed, 163 insertions(+), 57 deletions(-) create mode 100644 XML_RPC2-1.1.2.tgz delete mode 100644 change-this-to-the-package-name.spec create mode 100644 php-pear-XML-RPC2.spec diff --git a/README.md b/README.md index 3fa8cca..18f505e 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,21 @@ SMEServer Koozali local git repo for php-pear-XML-RPC2 ## Documentation -
https://metacpan.org/pod/php-pear-XML-RPC2 +
https://pear.php.net/package/XML_RPC2 ## Bugzilla -CPAN bug report are [here](https://rt.cpan.org/Public/Dist/Display.html?Name=php-pear-XML-RPC2) +Pear bug report are [here](https://pear.php.net/bugs/search.php?cmd=display&package_name[]=XML_RPC2&status=OpenFeedback&bug_type=Bugs) Show list of Koozali outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=php-pear-XML-RPC2&product=SME%20Server%2011.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) ## Description +XML_RPC2 is a pear package providing XML_RPC client and server services. +XML-RPC is a simple remote procedure call protocol built using HTTP as +transport and XML as encoding. +As a client library, XML_RPC2 is capable of creating a proxy class which +exposes the methods exported by the server. As a server library, XML_RPC2 +is capable of exposing methods from a class or object instance, seamlessly +exporting local methods as remotely callable procedures. diff --git a/XML_RPC2-1.1.2.tgz b/XML_RPC2-1.1.2.tgz new file mode 100644 index 0000000..720928d --- /dev/null +++ b/XML_RPC2-1.1.2.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b296888813c400ffb1a8d4fe7f4585d429b5da1e9fc744ee35cc5fcef6288441 +size 67331 diff --git a/change-this-to-the-package-name.spec b/change-this-to-the-package-name.spec deleted file mode 100644 index 1d5289f..0000000 --- a/change-this-to-the-package-name.spec +++ /dev/null @@ -1,55 +0,0 @@ -%define name php-pear-XML-RPC2 -%define version 1.0 -%define release 1 -Summary: This is what php-pear-XML-RPC2 does. -Name: %{name} -Version: %{version} -Release: %{release}%{?dist} -Source: %{name}-%{version}.tar.gz -License: GNU GPL version 2 -Group: SMEserver/addon -BuildRoot: %{_tmppath}/%{name}-buildroot -Prefix: %{_prefix} -BuildArchitectures: noarch -BuildRequires: e-smith-devtools -Requires: e-smith-release >= 10.0 -AutoReqProv: no - -%description - - -%changelog -* Day MMMM DD YYYY 1.0-1.sme -- Initial code - create RPM [SME:99999] - -%prep - -%setup -q - -%build -perl createlinks - -%install -rm -rf $RPM_BUILD_ROOT -(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) -rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ -> %{name}-%{version}-filelist -#echo "%doc COPYING" >> %{name}-%{version}-filelist -#--dir 'attr(755,user,grp)' \ -#--file 'attr(755,root,root)' \ - -%clean -cd .. -rm -rf %{name}-%{version} - -%pre - -%preun - -%post - -%postun -#uninstall -%files -f %{name}-%{version}-filelist -%defattr(-,root,root) diff --git a/php-pear-XML-RPC2.spec b/php-pear-XML-RPC2.spec new file mode 100644 index 0000000..7a264cb --- /dev/null +++ b/php-pear-XML-RPC2.spec @@ -0,0 +1,151 @@ +# spec file for php-pear-XML-RPC2 +# +# Copyright (c) 2011-2014 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/3.0/ +# +# Please, preserve the changelog entries +# +%{!?pear_metadir: %global pear_metadir %{pear_phpdir}} +%{!?__pear: %global __pear %{_bindir}/pear} +%global pear_name XML_RPC2 + +Name: php-pear-XML-RPC2 +Version: 1.1.2 +Release: 1%{?dist} +Summary: XML-RPC client/server library + +Group: Development/Libraries +License: LGPLv2+ +URL: http://pear.php.net/package/XML_RPC2 +Source0: http://pear.php.net/get/XML_RPC2-%{version}.tgz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: php-pear + +Requires(post): %{__pear} +Requires(postun): %{__pear} +# From package.xml +Requires: php-pear(PEAR) +Requires: php-pear(Cache_Lite) >= 1.6.0 +Requires: php-pear(HTTP_Request2) >= 0.6.0 +# From phpcompatinfo report for version 1.1.2 +Requires: php-date +Requires: php-dom +Requires: php-mbstring +Requires: php-pcre +Requires: php-simplexml +Requires: php-xmlrpc + +Provides: php-pear(%{pear_name}) = %{version} + + +# Tests are only run with rpmbuild --with tests +# Can't be run in mock / koji because of network / dns +%global with_tests %{?_with_tests:1}%{!?_with_tests:0} + + +%description +XML_RPC2 is a pear package providing XML_RPC client and server services. +XML-RPC is a simple remote procedure call protocol built using HTTP as +transport and XML as encoding. +As a client library, XML_RPC2 is capable of creating a proxy class which +exposes the methods exported by the server. As a server library, XML_RPC2 +is capable of exposing methods from a class or object instance, seamlessly +exporting local methods as remotely callable procedures. + + +%prep +%setup -q -c + +cd %{pear_name}-%{version} +# package.xml is V2 +mv ../package.xml %{name}.xml + + +%build +cd %{pear_name}-%{version} +# Empty build section, most likely nothing required. + + +%install +rm -rf $RPM_BUILD_ROOT +cd %{pear_name}-%{version} +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml + +# Clean up unnecessary files +rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??* + +# Install XML package description +mkdir -p $RPM_BUILD_ROOT%{pear_xmldir} +install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{name}.xml >/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + pear.php.net/%{pear_name} >/dev/null || : +fi + + +%check +cd %{pear_name}-%{version} +%if %{with_tests} +PHPRC=../php.ini %{__pear} \ + run-tests \ + --recur \ + -i "-d include_path=%{buildroot}%{pear_phpdir}:%{pear_phpdir}" \ + tests | tee ../tests.log +grep "FAILED TESTS" ../tests.log && exit 1 +%else +echo 'Test suite disabled (missing "--with tests" option)' +%endif + + +%files +%defattr(-,root,root,-) +%doc %{pear_docdir}/%{pear_name} +%{pear_xmldir}/%{name}.xml +%{pear_phpdir}/XML +%{pear_testdir}/%{pear_name} + + +%changelog +* Mon Mar 31 2014 Remi Collet 1.1.2-1 +- Version 1.1.2 (stable) + +* Sun Aug 04 2013 Fedora Release Engineering - 1.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Feb 19 2013 Remi Collet - 1.1.1-6 +- fix metadata location + +* Thu Feb 14 2013 Fedora Release Engineering - 1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Aug 14 2012 Remi Collet - 1.1.1-4 +- rebuilt for new pear_testdir + +* Sat Jul 21 2012 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Jul 2 2011 Remi Collet 1.1.1-1 +- Version 1.1.1 (stable) - API 1.0.5 (stable) +- move doc in /usr/share/doc/pear + +* Sun Feb 13 2011 Remi Collet 1.0.6-1 +- initial RPM (from generated and cleaned spec) + +