Blob Blame History Raw
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}

Name:		php-channel-phing
Version:	1.0.0
Release:	5%{?dist}
Summary:	Adds phing channel to PEAR

Group:		Development/Languages
License:	LGPLv2
URL:		http://phing.info/
Source0:	http://pear.phing.info/channel.xml
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:	noarch
BuildRequires:	php-pear >= 1:1.4.9-1.2
Requires:	php-cli
Requires:	php-pear(PEAR)

Requires(post): %{__pear}
Requires(postun): %{__pear}

Provides:	php-channel(pear.phing.info)

%description
This package adds the phing channel which allows
PEAR packages from this channel to be installed.


%prep
%setup -q -c -T


%build
# Empty build section, nothing to build


%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__mkdir_p} $RPM_BUILD_ROOT%{pear_xmldir}
%{__install} -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/pear.phing.info.xml


%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post
if [ $1 -eq  1 ] ; then
	%{__pear} channel-add %{pear_xmldir}/pear.phing.info.xml > /dev/null || :
else
	%{__pear} channel-update %{pear_xmldir}/pear.phing.info.xml > /dev/null ||:
fi


%postun
if [ $1 -eq 0 ] ; then
	%{__pear} channel-delete pear.phing.info > /dev/null || :
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/*


%changelog
* Tue Oct 30 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-5
- exchanged correct channel.xml

* Tue Sep 25 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-4
- removed version number in virtual provides
- replaced static commands with macros wherever applicable
- added post/postun requires for pear
- removed redundant version number requirement for php-cli

* Mon Sep  3 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-3
- Added valid license.

* Tue Aug 21 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-2
- Fedora channel naming adaption.

* Thu Jun 28 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-1
- Fedora 7 version bump

* Fri May 25 2007 Alexander Kahl <akahl@iconmobile.com> - 1.0.0-0
- Initial RPM release.