Alexander Kahl 26a3276
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Name:		php-channel-phing
Alexander Kahl 26a3276
Version:	1.0.0
Alexander Kahl 83db799
Release:	5%{?dist}
Alexander Kahl 26a3276
Summary:	Adds phing channel to PEAR
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Group:		Development/Languages
Alexander Kahl 26a3276
License:	LGPLv2
Alexander Kahl 26a3276
URL:		http://phing.info/
Alexander Kahl 26a3276
Source0:	http://pear.phing.info/channel.xml
Alexander Kahl 26a3276
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Alexander Kahl 26a3276
Alexander Kahl 26a3276
BuildArch:	noarch
Alexander Kahl 26a3276
BuildRequires:	php-pear >= 1:1.4.9-1.2
Alexander Kahl 26a3276
Requires:	php-cli
Alexander Kahl 26a3276
Requires:	php-pear(PEAR)
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Requires(post): %{__pear}
Alexander Kahl 26a3276
Requires(postun): %{__pear}
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Provides:	php-channel(pear.phing.info)
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%description
Alexander Kahl 26a3276
This package adds the phing channel which allows
Alexander Kahl 26a3276
PEAR packages from this channel to be installed.
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%prep
Alexander Kahl 26a3276
%setup -q -c -T
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%build
Alexander Kahl 26a3276
# Empty build section, nothing to build
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%install
Alexander Kahl 26a3276
%{__rm} -rf $RPM_BUILD_ROOT
Alexander Kahl 26a3276
%{__mkdir_p} $RPM_BUILD_ROOT%{pear_xmldir}
Alexander Kahl 26a3276
%{__install} -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/pear.phing.info.xml
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%clean
Alexander Kahl 26a3276
%{__rm} -rf $RPM_BUILD_ROOT
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%post
Alexander Kahl 26a3276
if [ $1 -eq  1 ] ; then
Alexander Kahl 26a3276
	%{__pear} channel-add %{pear_xmldir}/pear.phing.info.xml > /dev/null || :
Alexander Kahl 26a3276
else
Alexander Kahl 26a3276
	%{__pear} channel-update %{pear_xmldir}/pear.phing.info.xml > /dev/null ||:
Alexander Kahl 26a3276
fi
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%postun
Alexander Kahl 26a3276
if [ $1 -eq 0 ] ; then
Alexander Kahl 26a3276
	%{__pear} channel-delete pear.phing.info > /dev/null || :
Alexander Kahl 26a3276
fi
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%files
Alexander Kahl 26a3276
%defattr(-,root,root,-)
Alexander Kahl 26a3276
%{pear_xmldir}/*
Alexander Kahl 26a3276
Alexander Kahl 26a3276
Alexander Kahl 26a3276
%changelog
Alexander Kahl 83db799
* Tue Oct 30 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-5
Alexander Kahl 83db799
- exchanged correct channel.xml
Alexander Kahl 83db799
Alexander Kahl 26a3276
* Tue Sep 25 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-4
Alexander Kahl 26a3276
- removed version number in virtual provides
Alexander Kahl 26a3276
- replaced static commands with macros wherever applicable
Alexander Kahl 26a3276
- added post/postun requires for pear
Alexander Kahl 26a3276
- removed redundant version number requirement for php-cli
Alexander Kahl 26a3276
Alexander Kahl 26a3276
* Mon Sep  3 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-3
Alexander Kahl 26a3276
- Added valid license.
Alexander Kahl 26a3276
Alexander Kahl 26a3276
* Tue Aug 21 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-2
Alexander Kahl 26a3276
- Fedora channel naming adaption.
Alexander Kahl 26a3276
Alexander Kahl 26a3276
* Thu Jun 28 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-1
Alexander Kahl 26a3276
- Fedora 7 version bump
Alexander Kahl 26a3276
Alexander Kahl 26a3276
* Fri May 25 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-0
Alexander Kahl 26a3276
- Initial RPM release.