diff options
-rw-r--r-- | channel.xml | 16 | ||||
-rw-r--r-- | php-channel-guzzle.spec | 62 |
2 files changed, 78 insertions, 0 deletions
diff --git a/channel.xml b/channel.xml new file mode 100644 index 0000000..65ed8d4 --- /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>guzzlephp.org/pear</name> + <summary>Guzzle PEAR channel</summary> + <suggestedalias>guzzle</suggestedalias> + <servers> + <primary> + <rest> + <baseurl type="REST1.0">http://guzzlephp.org/pear/rest/</baseurl> + <baseurl type="REST1.1">http://guzzlephp.org/pear/rest/</baseurl> + <baseurl type="REST1.2">http://guzzlephp.org/pear/rest/</baseurl> + <baseurl type="REST1.3">http://guzzlephp.org/pear/rest/</baseurl> + </rest> + </primary> + </servers> +</channel>
\ No newline at end of file diff --git a/php-channel-guzzle.spec b/php-channel-guzzle.spec new file mode 100644 index 0000000..9df4505 --- /dev/null +++ b/php-channel-guzzle.spec @@ -0,0 +1,62 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} + +%global pear_channel guzzlephp.org/pear + +Name: php-channel-guzzle +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 %{buildroot}%{pear_xmldir} +install -pm 644 %{SOURCE0} %{buildroot}%{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 +* Sat Dec 8 2012 Shawn Iwinski <shawn.iwinski@gmail.com> 1.3-1 +- Initial package (version matches channel REST version) |