From ed2298831b77a8c44aaf315285a01da9e144875c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Nov 2012 07:14:52 +0100 Subject: php-channel-drush: import from rawhide --- channel.xml | 16 +++++++++++++ php-channel-drush.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 channel.xml create mode 100644 php-channel-drush.spec diff --git a/channel.xml b/channel.xml new file mode 100644 index 0000000..4d783c5 --- /dev/null +++ b/channel.xml @@ -0,0 +1,16 @@ + + + pear.drush.org + Drush's PEAR Channel Server + drush + + + + http://pear.drush.org/rest/ + http://pear.drush.org/rest/ + http://pear.drush.org/rest/ + http://pear.drush.org/rest/ + + + + \ No newline at end of file diff --git a/php-channel-drush.spec b/php-channel-drush.spec new file mode 100644 index 0000000..84cbe40 --- /dev/null +++ b/php-channel-drush.spec @@ -0,0 +1,62 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} + +%global pear_channel pear.drush.org + +Name: php-channel-drush +Version: 1.3 +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}) + +%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 required + + +%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 +* Thu Nov 8 2012 Shawn Iwinski 1.3-1 +- Initial package (version matches channel REST version) -- cgit