[php-channel-pirum] Initial import (#832830)

Shawn Iwinski siwinski at fedoraproject.org
Sun Aug 19 17:32:59 UTC 2012


commit f0eff20cdea45822f0724ce4a377a860a24ad135
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Aug 19 13:32:24 2012 -0400

    Initial import (#832830)

 channel.xml            |   16 ++++++++++++
 php-channel-pirum.spec |   61 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/channel.xml b/channel.xml
new file mode 100644
index 0000000..9fe4196
--- /dev/null
+++ b/channel.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<channel version="1.0" xmlns="http://pear.php.net/channel-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/channel-1.0 http://pear.php.net/dtd/channel-1.0.xsd">
+    <name>pear.pirum-project.org</name>
+    <summary>Pirum PEAR channel</summary>
+    <suggestedalias>pirum</suggestedalias>
+    <servers>
+        <primary>
+            <rest>
+                <baseurl type="REST1.0">http://pear.pirum-project.org/rest/</baseurl>
+                <baseurl type="REST1.1">http://pear.pirum-project.org/rest/</baseurl>
+                <baseurl type="REST1.2">http://pear.pirum-project.org/rest/</baseurl>
+                <baseurl type="REST1.3">http://pear.pirum-project.org/rest/</baseurl>
+            </rest>
+        </primary>
+    </servers>
+</channel>
\ No newline at end of file
diff --git a/php-channel-pirum.spec b/php-channel-pirum.spec
new file mode 100644
index 0000000..5f9a9e0
--- /dev/null
+++ b/php-channel-pirum.spec
@@ -0,0 +1,61 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_channel pear.pirum-project.org
+
+Name:             php-channel-pirum
+Version:          1.0
+Release:          1%{?dist}
+Summary:          Adds %{pear_channel} channel to PEAR
+
+Group:            Development/Libraries
+License:          Public Domain
+URL:              http://%{pear_channel}
+Source0:          http://%{pear_channel}/channel.xml
+
+BuildArch:        noarch
+BuildRequires:    php-pear(PEAR)
+
+Requires:         php-pear(PEAR)
+Requires(post):   %{__pear}
+Requires(postun): %{__pear}
+
+Provides:         php-channel(%{pear_channel}) = %{version}
+
+%description
+This package adds the %{pear_channel} channel which allows PEAR packages
+from this channel to be installed.
+
+
+%prep
+%setup -q -c -T
+
+
+%build
+# Empty build section, nothing to build
+
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
+install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/%{name}.xml
+
+
+%post
+if [ $1 -eq  1 ] ; then
+   %{__pear} channel-add %{pear_xmldir}/%{name}.xml > /dev/null || :
+else
+   %{__pear} channel-update %{pear_xmldir}/%{name}.xml > /dev/null || :
+fi
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+   %{__pear} channel-delete %{pear_channel} > /dev/null || :
+fi
+
+
+%files
+%{pear_xmldir}/%{name}.xml
+
+
+%changelog
+* Sun Jun 17 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0-1
+- Initial package


More information about the scm-commits mailing list