From 4273757cbde30f5d76da43f9538a38e6989e2ee0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 10 Jun 2012 07:07:08 +0200 Subject: repo reorg --- Makefile | 4 ++++ channel.xml | 16 +++++++++++++ php-channel-pearplex.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 Makefile create mode 100644 channel.xml create mode 100644 php-channel-pearplex.spec 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 @@ + + + pear.pearplex.net + PearPlex PEAR channel + pearplex + + + + http://pear.pearplex.net//rest/ + http://pear.pearplex.net//rest/ + http://pear.pearplex.net//rest/ + http://pear.pearplex.net//rest/ + + + + \ 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 1.3-2 +- rebuild for remi repository + +* Sun Jul 31 2011 Robert Scheck 1.3-2 +- Corrected undefined macro in %%postun scriptlet (#725914 #c1) + +* Wed Jul 27 2011 Robert Scheck 1.3-1 +- Upgrade to 1.3 +- Initial spec file for Fedora and Red Hat Enterprise Linux -- cgit