[php-pear-XML-RPC] import from review
Remi Collet
remi at fedoraproject.org
Wed Aug 15 17:54:45 UTC 2012
commit c9895407019eff031331614aec773543d302e5d7
Author: remi <fedora at famillecollet.com>
Date: Wed Aug 15 19:54:39 2012 +0200
import from review
.gitignore | 1 +
php-pear-XML-RPC.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b81298d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XML_RPC-1.5.5.tgz
diff --git a/php-pear-XML-RPC.spec b/php-pear-XML-RPC.spec
new file mode 100644
index 0000000..7f343a1
--- /dev/null
+++ b/php-pear-XML-RPC.spec
@@ -0,0 +1,98 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name XML_RPC
+
+Name: php-pear-XML-RPC
+Version: 1.5.5
+Release: 2%{?dist}
+Summary: PHP implementation of the XML-RPC protocol
+
+Group: Development/Libraries
+# PHP License version 3.0.1
+# http://pear.php.net/bugs/19368 request for License file.
+License: PHP
+URL: http://pear.php.net/package/XML_RPC
+Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: php-pear >= 1:1.9.4-9
+BuildRequires: php-pear(PEAR)
+
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+# previous version have XML_RPC bundled
+Requires: php-pear >= 1:1.9.4-9
+Requires: php-pear(PEAR)
+# extensions detected by phpci
+Requires: php-date, php-mbstring, php-pcre
+# also requires php-xml, which is provided by php-common, not php-xml
+
+Provides: php-pear(%{pear_name}) = %{version}
+
+%description
+A PEAR-ified version of Useful Inc's XML-RPC for PHP.
+
+It has support for HTTP/HTTPS transport, proxies and authentication.
+
+
+%prep
+%setup -q -c
+cd %{pear_name}-%{version}
+# package.xml is V1, package2.xml is V2
+mv ../package2.xml %{name}.xml
+
+
+%build
+cd %{pear_name}-%{version}
+# Empty build section, most likely nothing required.
+
+
+%install
+cd %{pear_name}-%{version}
+rm -rf %{buildroot}
+%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
+
+# Clean up unnecessary files
+rm -rf %{buildroot}%{pear_phpdir}/.??*
+
+# Install XML package description
+mkdir -p %{buildroot}%{pear_xmldir}
+install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+# use posttrans to register after removal of php-pear bundled version
+# and of /usr/share/pear/.registry/xml_rpc.reg
+%posttrans
+%{__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
+
+
+%files
+%defattr(-,root,root,-)
+%{pear_xmldir}/%{name}.xml
+%{pear_phpdir}/XML/RPC
+%{pear_phpdir}/XML/RPC.php
+# these are not real unit tests, can't be run in rpmbuild
+%{pear_testdir}/%{pear_name}
+
+
+%changelog
+* Wed Aug 15 2012 Remi Collet <remi at fedoraproject.org> - 1.5.5-2
+- rebuilt for new pear_testdir
+- fix typo in comment
+- add BR php-pear(PEAR)
+
+* Mon Aug 13 2012 Remi Collet <remi at fedoraproject.org> - 1.5.5-1
+- Version 1.5.5 (stable), API 1.5.0 (stable)
+- Initial RPM
+
diff --git a/sources b/sources
index e69de29..67e9740 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+02f9b1a27636527ddf6661e545799d45 XML_RPC-1.5.5.tgz
More information about the scm-commits
mailing list