summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-11-09 07:15:00 +0100
committerRemi Collet <fedora@famillecollet.com>2012-11-09 07:15:00 +0100
commitce5d9d7e48f731343762e8ef0a28a6d28cb854d9 (patch)
tree987f355baeee032a45d3ae5afbefc3b720e7ce77
php-channel-pirum: import from rawhide
-rw-r--r--channel.xml16
-rw-r--r--php-channel-pirum.spec61
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@gmail.com> 1.0-1
+- Initial package