From ce5d9d7e48f731343762e8ef0a28a6d28cb854d9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Nov 2012 07:15:00 +0100 Subject: php-channel-pirum: import from rawhide --- channel.xml | 16 +++++++++++++ php-channel-pirum.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 channel.xml create mode 100644 php-channel-pirum.spec diff --git a/channel.xml b/channel.xml new file mode 100644 index 0000000..9fe4196 --- /dev/null +++ b/channel.xml @@ -0,0 +1,16 @@ + + + pear.pirum-project.org + Pirum PEAR channel + pirum + + + + http://pear.pirum-project.org/rest/ + http://pear.pirum-project.org/rest/ + http://pear.pirum-project.org/rest/ + http://pear.pirum-project.org/rest/ + + + + \ 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 1.0-1 +- Initial package -- cgit