Blame php-channel-bartlett.spec

928d334
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
928d334
928d334
%global channel bartlett.laurent-laville.org
928d334
928d334
Name:           php-channel-bartlett
928d334
# Use REST version
928d334
Version:        1.3
1970933
Release:        2%{?dist}
928d334
Summary:        Adds bartlett channel to PEAR
928d334
928d334
Group:          Development/Languages
928d334
License:        BSD
928d334
URL:            http://%{channel}/
928d334
Source0:        http://%{channel}/channel.xml
928d334
928d334
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
928d334
BuildArch:      noarch
928d334
BuildRequires:  php-pear >= 1:1.4.9-1.2
928d334
928d334
Requires:       php-pear(PEAR)
928d334
Requires(post): %{__pear}
928d334
Requires(postun): %{__pear}
928d334
Provides:       php-channel(%{channel})
928d334
928d334
%description
928d334
This package adds the bartlett channel which allows PEAR packages
928d334
from this channel to be installed.
928d334
928d334
928d334
%prep
928d334
%setup -q -c -T
928d334
928d334
928d334
%build
928d334
# Empty build section, nothing to build
928d334
928d334
928d334
%install
928d334
rm -rf $RPM_BUILD_ROOT
928d334
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
928d334
install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{pear_xmldir}/%{name}.xml
928d334
928d334
928d334
%clean
928d334
rm -rf $RPM_BUILD_ROOT
928d334
928d334
928d334
%post
928d334
if [ $1 -eq  1 ] ; then
928d334
   %{__pear} channel-add %{pear_xmldir}/%{name}.xml > /dev/null || :
928d334
else
928d334
   %{__pear} channel-update %{pear_xmldir}/%{name}.xml > /dev/null ||:
928d334
fi
928d334
928d334
928d334
%postun
928d334
if [ $1 -eq 0 ] ; then
928d334
   %{__pear} channel-delete %{channel} > /dev/null || :
928d334
fi
928d334
928d334
928d334
%files
928d334
%defattr(-,root,root,-)
928d334
%{pear_xmldir}/%{name}.xml
928d334
928d334
928d334
%changelog
1970933
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
1970933
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1970933
928d334
* Wed Feb 25 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.3-1
928d334
- Initial Release
928d334