summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-10 07:07:08 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-10 07:07:08 +0200
commit4273757cbde30f5d76da43f9538a38e6989e2ee0 (patch)
tree4507d58afd040406dee136848bc080e28e72230a
repo reorgHEADmaster
-rw-r--r--Makefile4
-rw-r--r--channel.xml16
-rw-r--r--php-channel-pearplex.spec61
3 files changed, 81 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1e65467
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../common/Makefile
+
diff --git a/channel.xml b/channel.xml
new file mode 100644
index 0000000..635acbc
--- /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.pearplex.net</name>
+ <summary>PearPlex PEAR channel</summary>
+ <suggestedalias>pearplex</suggestedalias>
+ <servers>
+ <primary>
+ <rest>
+ <baseurl type="REST1.0">http://pear.pearplex.net//rest/</baseurl>
+ <baseurl type="REST1.1">http://pear.pearplex.net//rest/</baseurl>
+ <baseurl type="REST1.2">http://pear.pearplex.net//rest/</baseurl>
+ <baseurl type="REST1.3">http://pear.pearplex.net//rest/</baseurl>
+ </rest>
+ </primary>
+ </servers>
+</channel> \ No newline at end of file
diff --git a/php-channel-pearplex.spec b/php-channel-pearplex.spec
new file mode 100644
index 0000000..9a67996
--- /dev/null
+++ b/php-channel-pearplex.spec
@@ -0,0 +1,61 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+
+Summary: Adds the PearPlex channel to PEAR
+Name: php-channel-pearplex
+# Use REST version
+Version: 1.3
+Release: 2%{?dist}
+License: Public Domain
+Group: Development/Languages
+URL: http://www.pearplex.net/
+Source: http://pear.pearplex.net/channel.xml
+Requires: php-pear(PEAR)
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+Provides: php-channel(pear.pearplex.net)
+BuildRequires: php-pear >= 1:1.4.9-1.2
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+This package adds the PearPlex channel which allows PEAR packages
+from this channel to be installed.
+
+%prep
+%setup -q -c -T
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -D -p -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/%{name}.xml
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%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.pearplex.net > /dev/null || :
+fi
+
+%files
+%defattr(-,root,root,-)
+%{pear_xmldir}/%{name}.xml
+
+%changelog
+* Sun Aug 21 2011 Remi Collet <RPMS@FamilleCollet.com> 1.3-2
+- rebuild for remi repository
+
+* Sun Jul 31 2011 Robert Scheck <robert@fedoraproject.org> 1.3-2
+- Corrected undefined macro in %%postun scriptlet (#725914 #c1)
+
+* Wed Jul 27 2011 Robert Scheck <robert@fedoraproject.org> 1.3-1
+- Upgrade to 1.3
+- Initial spec file for Fedora and Red Hat Enterprise Linux